Skip to content

Commit

Permalink
Default WSGI/Manage.py to PROD settings
Browse files Browse the repository at this point in the history
  • Loading branch information
dennissiemensma committed Jan 9, 2025
1 parent 7209c23 commit bb84ba2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/dsmrreader/config/production.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from dsmrreader.config.defaults import *

print('Using PRODUCTION configuration:', __name__)

CACHES["default"]["TIMEOUT"] = 60

Expand Down
2 changes: 1 addition & 1 deletion src/dsmrreader/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@

from django.core.wsgi import get_wsgi_application

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "dsmrreader.settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "dsmrreader.config.production")

application = get_wsgi_application()
2 changes: 1 addition & 1 deletion src/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import sys

if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "dsmrreader.settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "dsmrreader.config.production")

from django.core.management import execute_from_command_line

Expand Down

0 comments on commit bb84ba2

Please sign in to comment.