SHARE
TWEET

Untitled

a guest Jun 15th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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())
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top