Skip to content

Commit 596802a

Browse files
#1 Created development settings file and fix conflicts it raises
1 parent 4e313c7 commit 596802a

File tree

5 files changed

+9
-4
lines changed

5 files changed

+9
-4
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
__pycache__/
2+
db.sqlite3
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
'django.middleware.clickjacking.XFrameOptionsMiddleware',
5050
]
5151

52-
ROOT_URLCONF = 'pythonph.urls'
52+
ROOT_URLCONF = 'config.urls'
5353

5454
TEMPLATES = [
5555
{
@@ -67,7 +67,7 @@
6767
},
6868
]
6969

70-
WSGI_APPLICATION = 'pythonph.wsgi.application'
70+
WSGI_APPLICATION = 'config.wsgi.application'
7171

7272

7373
# Database

config/settings/development.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from .base import *
2+
3+
ALLOWED_HOSTS = ['*']

config/wsgi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111

1212
from django.core.wsgi import get_wsgi_application
1313

14-
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pythonph.settings")
14+
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.development")
1515

1616
application = get_wsgi_application()

manage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import sys
44

55
if __name__ == "__main__":
6-
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pythonph.settings")
6+
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.development")
77
try:
88
from django.core.management import execute_from_command_line
99
except ImportError as exc:

0 commit comments

Comments
 (0)