Skip to content

Commit 5efca65

Browse files
committed
updated setting and prepare for upload app to heroku
1 parent b825053 commit 5efca65

File tree

1,090 files changed

+135789
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,090 files changed

+135789
-0
lines changed

Procfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web: sh -c "cd AppChatPython && gunicorn AppChatPython.wsgi"

blog_channels/settings.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,4 +128,15 @@
128128

129129
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
130130

131+
# Static files (CSS, JavaScript, Images)
132+
# https://docs.djangoproject.com/en/1.9/howto/static-files/
133+
134+
PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__))
135+
136+
STATIC_ROOT = os.path.join(PROJECT_ROOT, 'staticfiles')
131137
STATIC_URL = '/static/'
138+
139+
# Extra places for collectstatic to find static files.
140+
STATICFILES_DIRS = (
141+
os.path.join(PROJECT_ROOT, 'static'),
142+
)

requirements

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
appdirs==1.4.0
2+
Django==1.10.5
3+
gunicorn==19.6.0
4+
packaging==16.8
5+
pyparsing==2.1.10
6+
six==1.10.0
7+
whitenoise==3.3.0

0 commit comments

Comments
 (0)