ppsirg

Untitled

Mar 5th, 2015
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. INSTALLED_APPS = (
  2. 'django.contrib.admin',
  3. 'django.contrib.auth',
  4. 'django.contrib.contenttypes',
  5. 'django.contrib.sessions',
  6. 'django.contrib.messages',
  7. 'django.contrib.staticfiles',
  8. 'corsheaders',
  9. 'django_extensions',
  10. 'Prices',
  11. )
  12.  
  13. MIDDLEWARE_CLASSES = (
  14. 'django.contrib.sessions.middleware.SessionMiddleware',
  15. 'corsheaders.middleware.CorsMiddleware',
  16. 'django.middleware.common.CommonMiddleware',
  17. 'django.middleware.csrf.CsrfViewMiddleware',
  18. 'django.contrib.auth.middleware.AuthenticationMiddleware',
  19. 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
  20. 'django.contrib.messages.middleware.MessageMiddleware',
  21. 'django.middleware.clickjacking.XFrameOptionsMiddleware',
  22. )
  23.  
  24. ...
  25.  
  26. #CORS captabilities
  27. CORS_ORIGIN_ALLOW_ALL = True
  28. CORS_ALLOW_CREDENTIALS = False
  29. CORS_ALLOW_METHODS = ('GET')
Advertisement
Add Comment
Please, Sign In to add comment