File tree 9 files changed +13
-13
lines changed
9 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -22,4 +22,4 @@ exec gunicorn --pythonpath "%(DEPLOY_DIR)s" \
22
22
--group " %(GROUP)s" \
23
23
--log-level " info" \
24
24
--log-file " $LOG_FILE " \
25
- steepshot_io.config. wsgi:application
25
+ steepshot_io.wsgi:application
Original file line number Diff line number Diff line change @@ -233,7 +233,7 @@ def migrate():
233
233
with cd (DEPLOY_DIR ):
234
234
with settings (sudo_user = DEPLOYMENT_USER ,
235
235
sudo_prefix = SUDO_PREFIX ), prefix ('workon steepshot_io' ):
236
- sudo ('python steepshot_io/ manage.py migrate' )
236
+ sudo ('python manage.py migrate' )
237
237
238
238
239
239
def config_celery (remote_conf_path ):
@@ -417,8 +417,8 @@ def deploy_static():
417
417
with settings (sudo_user = DEPLOYMENT_USER ,
418
418
sudo_prefix = SUDO_PREFIX ), cd (DEPLOY_DIR ):
419
419
with prefix ('workon %s' % ENV_NAME ):
420
- sudo ('python steepshot_io/ manage.py collectstatic --noinput --settings %s'
421
- % env .settings_module . replace ( 'steepshot_io.' , '' ) )
420
+ sudo ('python manage.py collectstatic --noinput --settings %s'
421
+ % env .settings_module )
422
422
423
423
424
424
@task
@@ -435,7 +435,7 @@ def createsuperuser():
435
435
with settings (sudo_user = DEPLOYMENT_USER ,
436
436
sudo_prefix = SUDO_PREFIX ):
437
437
with prefix ('workon %s' % ENV_NAME ):
438
- sudo ('python steepshot_io/ manage.py createsuperuser '
438
+ sudo ('python manage.py createsuperuser '
439
439
'--settings ' + env .settings_module )
440
440
441
441
Original file line number Diff line number Diff line change 3
3
import sys
4
4
5
5
if __name__ == "__main__" :
6
- os .environ .setdefault ("DJANGO_SETTINGS_MODULE" , "config. prod_settings" )
6
+ os .environ .setdefault ("DJANGO_SETTINGS_MODULE" , "prod_settings" )
7
7
try :
8
8
from django .core .management import execute_from_command_line
9
9
except ImportError :
Original file line number Diff line number Diff line change 7
7
from django .conf import settings
8
8
9
9
# Indicate Celery to use the default Django settings module
10
- os .environ .setdefault ('DJANGO_SETTINGS_MODULE' , 'config. prod_settings' )
10
+ os .environ .setdefault ('DJANGO_SETTINGS_MODULE' , 'prod_settings' )
11
11
12
12
app = Celery ('steepshot_io' )
13
13
app .config_from_object ('django.conf:settings' )
Original file line number Diff line number Diff line change 73
73
GUNI_TIMEOUT = 60
74
74
GUNI_GRACEFUL_TIMEOUT = 180
75
75
76
- SETTINGS_MODULE = 'steepshot_io.config. prod_settings'
77
- GOLOS_SETTINGS_MODULE = 'steepshot_io.config. golos_prod_settings'
76
+ SETTINGS_MODULE = 'steepshot_io.prod_settings'
77
+ GOLOS_SETTINGS_MODULE = 'steepshot_io.golos_prod_settings'
78
78
79
79
80
80
ENVIRONMENTS = {
Original file line number Diff line number Diff line change 14
14
import dj_database_url
15
15
16
16
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
17
- BASE_DIR = os .path .dirname (os .path .dirname (os .path .dirname ( os . path . abspath (__file__ ) )))
17
+ BASE_DIR = os .path .dirname (os .path .dirname (os .path .abspath (__file__ )))
18
18
19
19
20
20
# Quick-start development settings - unsuitable for production
34
34
else :
35
35
LOCAL = False
36
36
37
- PROJECT_PATH = os .path .dirname (os .path .dirname ( os . path . abspath (__file__ ) ))
37
+ PROJECT_PATH = os .path .dirname (os .path .abspath (__file__ ))
38
38
39
39
if DEBUG :
40
40
ALLOWED_HOSTS = ['*' ]
80
80
'django.middleware.clickjacking.XFrameOptionsMiddleware' ,
81
81
]
82
82
83
- ROOT_URLCONF = 'config. urls'
83
+ ROOT_URLCONF = 'urls'
84
84
85
85
TEMPLATES = [
86
86
{
106
106
},
107
107
]
108
108
109
- WSGI_APPLICATION = 'config. wsgi.application'
109
+ WSGI_APPLICATION = 'wsgi.application'
110
110
111
111
112
112
# Database
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments