File tree 6 files changed +23
-6
lines changed
6 files changed +23
-6
lines changed Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change @@ -24,4 +24,4 @@ USER user
24
24
25
25
EXPOSE 8000
26
26
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
Original file line number Diff line number Diff line change 4
4
from celery .schedules import crontab
5
5
from django .conf import settings
6
6
7
- os .environ .setdefault ('DJANGO_SETTINGS_MODULE' , 'app .settings' )
7
+ os .environ .setdefault ('DJANGO_SETTINGS_MODULE' , 'config .settings' )
8
8
app = Celery ('app-tasks' )
9
9
app .config_from_object ('django.conf:settings' , namespace = 'CELERY' )
10
10
# It is here because setting it through settings.py doesn't work
Original file line number Diff line number Diff line change 67
67
'django.middleware.clickjacking.XFrameOptionsMiddleware' ,
68
68
]
69
69
70
- ROOT_URLCONF = 'app .urls'
70
+ ROOT_URLCONF = 'config .urls'
71
71
72
72
TEMPLATES = [
73
73
{
85
85
},
86
86
]
87
87
88
- WSGI_APPLICATION = 'app .wsgi.application'
88
+ WSGI_APPLICATION = 'config .wsgi.application'
89
89
90
90
91
91
# Database
Original file line number Diff line number Diff line change 11
11
12
12
from django .core .wsgi import get_wsgi_application
13
13
14
- os .environ .setdefault ('DJANGO_SETTINGS_MODULE' , 'app .settings' )
14
+ os .environ .setdefault ('DJANGO_SETTINGS_MODULE' , 'config .settings' )
15
15
16
16
application = get_wsgi_application ()
Original file line number Diff line number Diff line change 5
5
6
6
7
7
def main ():
8
- os .environ .setdefault ('DJANGO_SETTINGS_MODULE' , 'app .settings' )
8
+ os .environ .setdefault ('DJANGO_SETTINGS_MODULE' , 'config .settings' )
9
9
try :
10
10
from django .core .management import execute_from_command_line
11
11
except ImportError as exc :
You can’t perform that action at this time.
0 commit comments