question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Voice Gate: Enable the metricity database for the site

See original GitHub issue

Currently, our site only uses the main site database in our postgres. For the Voice Gate project, we will need to be able to retrieve data from another database in the same postgres server - the metricity database.

Django happily supports multiple databases, so let’s take the steps necessary to enable access to this database for the site.

What you need to do

  • Add the database to settings.py
  • Figure out how this will affect local dev, and make any necessary changes. We will probably need to add a line somewhere so that the metricity database (and maybe some dummy data?) will be added to the local docker postgres, or I imagine it will complain.
  • Ensure an appropriate postgres image setup allows for multiple database creation on new deployments, possibly through a single SQL file within /docker-entrypoint-initdb.d.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
lemonsauruscommented, Sep 27, 2020

Okay. So it supports it just fine, it just has to be approached in a particular way. I got a bit worried when you said it doesn’t support it, because it sounded like it was the postgres itself that didn’t support it, not environment variables or whatever.

Okay yeah, we should add this to the issue specification. Would you mind just editing my OP?

0reactions
jb3commented, Oct 18, 2020

Done.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Contributing to Bot - Python Discord
Metricity is our home-grown bot for collecting metrics on activity within the server, such as what users are present, and IDs of the...
Read more >
Untitled
Hartlepool male voice choir christmas, Software test labs swindon review, Sunno e buke, ... Umtiti pes 2013 database, Vecizeler fatih sultan mehmet.
Read more >
Communication reduction on Apache Giraph. Graphs in the x ...
In this paper, we leverage the concept of the metric backbone to improve the efficiency of large-scale graph analytics. The metric backbone is...
Read more >
SoundSpaces: Audio-Visual Navigation in 3D Environments
Our audio-enabled agent gets rich directional information about the goal, since the audio intensity variation is correlated with the shortest path distance.
Read more >
Delhi - Wikipedia
Delhi, officially the National Capital Territory (NCT) of Delhi, is a city and a union territory of India containing New Delhi, the capital...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found