Skip to content

Commit 272f77d

Browse files
committed
Updated code
1 parent 034a60e commit 272f77d

File tree

6 files changed

+23
-6
lines changed

6 files changed

+23
-6
lines changed

.vscode/launch.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "runserver",
9+
"type": "python",
10+
"request": "launch",
11+
"program": "manage.py",
12+
"args": ["runserver"],
13+
"console": "integratedTerminal",
14+
"justMyCode": true
15+
}
16+
]
17+
}

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ USER user
2424

2525
EXPOSE 8000
2626
ENTRYPOINT ./manage.py migrate \
27-
&& gunicorn app.wsgi:application --bind 0.0.0.0:8000 --workers 1
27+
&& gunicorn config.wsgi:application --bind 0.0.0.0:8000 --workers 1

config/celery.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from celery.schedules import crontab
55
from django.conf import settings
66

7-
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'app.settings')
7+
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings')
88
app = Celery('app-tasks')
99
app.config_from_object('django.conf:settings', namespace='CELERY')
1010
# It is here because setting it through settings.py doesn't work

config/settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
'django.middleware.clickjacking.XFrameOptionsMiddleware',
6868
]
6969

70-
ROOT_URLCONF = 'app.urls'
70+
ROOT_URLCONF = 'config.urls'
7171

7272
TEMPLATES = [
7373
{
@@ -85,7 +85,7 @@
8585
},
8686
]
8787

88-
WSGI_APPLICATION = 'app.wsgi.application'
88+
WSGI_APPLICATION = 'config.wsgi.application'
8989

9090

9191
# Database

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', 'app.settings')
14+
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings')
1515

1616
application = get_wsgi_application()

manage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
def main():
8-
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'app.settings')
8+
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings')
99
try:
1010
from django.core.management import execute_from_command_line
1111
except ImportError as exc:

0 commit comments

Comments
 (0)