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.

Instructions (Documentation) on using non-default database

See original GitHub issue

Is your feature request related to a problem? Please describe. I have a default database as the sqlite type and would like to use a PostgreSQL database specifically setup for django-helpdesk. I did not find instructions to accomplish this goal and was unsuccessful trying to solve on my own.

Describe the solution you’d like Add instructions into the docs on how to setup a non-default database and routers to properly configure django-helpdesk for this scenario.

Additional context I attempted to setup a router that would route any helpdesk traffic to my non-default database with label helpdesk (PostgreSQL database) and the closest I got was while trying to migrate received the following errors. My setup did not properly create tables, and so some instructions would be valuable to me and others.

python manage.py migrate helpdesk 
Operations to perform:
Apply all migrations: helpdesk
Running migrations:
Applying helpdesk.0003_initial_data_import...Traceback (most recent call last):
File "virtualenv/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)
psycopg2.errors.UndefinedTable: relation "helpdesk_emailtemplate" does not exist
LINE 1: UPDATE "helpdesk_emailtemplate" SET "template_name" = 'assig...
^

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
alligatorbaitcommented, Oct 7, 2020

And for posterity, I made a suggestion to the Dango Project to improve the documentation: https://code.djangoproject.com/ticket/32083#ticket

0reactions
alligatorbaitcommented, Oct 7, 2020

I did more research and had a couple of problems, none of which are helpdesk and all were Django. The main problem, even when I had all the routers setup properly, was that Django requires a migrate command to be run for each database with the database specified on the command line, the Django documentation does not tell you this in the section that explains Multiple Databases.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Accessing Table in Non-Default Database in Teradata Vantage
Learn how to access tables in non-default database in Vantage , with an example.
Read more >
Starting Up a Database
Starting Up a Database. When you start up a database, you create an instance of that database and you determine the state of...
Read more >
Multiple databases | Django documentation
The first step to using more than one database with Django is to tell Django ... two non-default databases, with the default entry...
Read more >
Prepare your Web Help Desk database
Prepare your Web Help Desk database. HDM supports the following databases: Embedded PostgreSQL; MySQL; Microsoft SQL Server Standard or Enterprise Edition.
Read more >
User Manual - Documentation
This full user manual provides detailed information on all aspects of Ekran System, including deploying, configuring, maintaining and using the whole system ...
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