Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.2.0 fails to run; returns ImproperlyConfigured #1576

Closed
jeremystretch opened this issue Oct 12, 2017 · 1 comment
Closed

v2.2.0 fails to run; returns ImproperlyConfigured #1576

jeremystretch opened this issue Oct 12, 2017 · 1 comment
Labels
type: bug A confirmed report of unexpected behavior in the application

Comments

@jeremystretch
Copy link
Member

Issue type

[ ] Feature request
[x] Bug report
[ ] Documentation

Environment

  • Python version: 3.4.3
  • NetBox version: 2.2.0

Description

The NetBox WSGI service fails to start, returning the following error:

ImproperlyConfigured: Requested setting DATABASES, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.

This issue has been traced to code intended to verify the PostgreSQL database version during initialization. However, the required settings variable is not available at the time of execution.

This issues does not affect the development server (manage.py runserver).

@jeremystretch jeremystretch added the type: bug A confirmed report of unexpected behavior in the application label Oct 12, 2017
@jeremystretch
Copy link
Member Author

The logic which validates the PostgreSQL database version has been moved out of the main code and into the relevant migration (extras.0008_reports), which will run only when the migration is applied.

lampwins pushed a commit to lampwins/netbox that referenced this issue Oct 13, 2017
@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

1 participant