Skip to content

Commit 5b83d04

Browse files
committed
Fixes for deploy
1 parent fc23e2e commit 5b83d04

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

fabfile.py

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

3434

3535
env.user = "deployer"
36-
env.hosts = ["event-test.nendazfreeride.ch"]
36+
env.hosts = ["dev.python.ru"]
3737
env.forward_agent = False
3838

3939
env.roledefs = {

python_ru/settings/base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
# Quick-start development settings - unsuitable for production
2424
# See https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/
2525

26-
SECRET_KEY = config('DJANGO_SECRET_KEY')
26+
SECRET_KEY = config('DJANGO_SECRET_KEY', default='wgEWT$#WAGWAG@$#HJ4haw')
2727

2828
ALLOWED_HOSTS = ['python.ru', '.python.ru', '127.0.0.1']
2929

@@ -132,10 +132,10 @@
132132
# https://docs.djangoproject.com/en/1.8/howto/static-files/
133133

134134

135-
STATIC_ROOT = os.path.join(BASE_DIR, '../staticfiles')
135+
STATIC_ROOT = os.path.join(BASE_DIR, '../../staticfiles')
136136

137137
STATICFILES_DIRS = (
138-
os.path.join(BASE_DIR, '../../assets'),
138+
os.path.join(BASE_DIR, '../assets'),
139139
)
140140
STATIC_URL = '/static/'
141141

python_ru/settings/development.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
DATABASES = {
88
'default': {
9-
'ENGINE': config('DATABASES_ENGINE'),
10-
'NAME': os.path.join(BASE_DIR, config('DATABASES_NAME', cast=str)),
9+
'ENGINE': config('DATABASES_ENGINE', default='django.db.backends.sqlite3'),
10+
'NAME': os.path.join(BASE_DIR, config('DATABASES_NAME', default='../../db.sqlite3', cast=str)),
1111
}
1212
}
1313
db_from_env = dj_database_url.config(conn_max_age=500)

python_ru/settings/stage.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@
99
DATABASES = {
1010
'default': {
1111
'ENGINE': config('DATABASES_ENGINE'),
12-
'NAME': os.path.join(BASE_DIR, config('DATABASES_NAME')),
12+
'NAME': config('DATABASES_NAME'),
13+
'USER': config('DATABASES_USER'),
14+
'PASSWORD': config('DATABASES_PASSWORD'),
15+
'HOST': config('DATABASES_HOST'),
16+
'PORT': config('DATABASES_PORT', cast=int, default=5432),
1317
}
1418
}
1519
db_from_env = dj_database_url.config(conn_max_age=500)

0 commit comments

Comments
 (0)