Browse Source

Make development-specific settings file

Danielle McLean 1 year ago
parent
commit
fc848546dc
Signed by: Danielle McLean <dani@00dani.me> GPG Key ID: 5A5D2D1AFF12EEC5
4 changed files with 4 additions and 1 deletions
  1. 0
    0
      lemoncurry/settings/__init__.py
  2. 0
    0
      lemoncurry/settings/base.py
  3. 3
    0
      lemoncurry/settings/dev.py
  4. 1
    1
      manage.py

+ 0
- 0
lemoncurry/settings/__init__.py View File


lemoncurry/settings.py → lemoncurry/settings/base.py View File


+ 3
- 0
lemoncurry/settings/dev.py View File

@@ -0,0 +1,3 @@
1
+from .base import *
2
+
3
+ALLOWED_HOSTS = ['*']

+ 1
- 1
manage.py View File

@@ -3,7 +3,7 @@ import os
3 3
 import sys
4 4
 
5 5
 if __name__ == "__main__":
6
-    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "lemoncurry.settings")
6
+    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "lemoncurry.settings.dev")
7 7
     try:
8 8
         from django.core.management import execute_from_command_line
9 9
     except ImportError:

Loading…
Cancel
Save