Advertisement
Guest User

Untitled

a guest
Jun 15th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. MIDDLEWARE = [
  2. 'django.middleware.security.SecurityMiddleware',
  3. 'whitenoise.middleware.WhiteNoiseMiddleware',
  4. 'django.contrib.sessions.middleware.SessionMiddleware',
  5. 'django.middleware.common.CommonMiddleware',
  6. 'django.middleware.csrf.CsrfViewMiddleware',
  7. 'django.contrib.auth.middleware.AuthenticationMiddleware',
  8. 'django.contrib.messages.middleware.MessageMiddleware',
  9. 'django.middleware.clickjacking.XFrameOptionsMiddleware',
  10. ]
  11.  
  12. ...
  13.  
  14. STATIC_URL = '/static/'
  15. STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
  16. STATICFILES_DIRS = [
  17. os.path.join(BASE_DIR, 'static')
  18. ]
  19.  
  20. STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
  21.  
  22.  
  23. MEDIA_URL = '/media/'
  24. MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
  25.  
  26. CKEDITOR_BASEPATH = '/static/ckeditor/'
  27.  
  28. import django_heroku
  29. django_heroku.settings(locals())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement