Created
February 9, 2018 11:17
-
-
Save filipgorczynski/b21e07e1e1b010bc380e0d2bb7d6f8ea to your computer and use it in GitHub Desktop.
Updated settings.py for project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Zmieniamy | |
| INSTALLED_APPS = [ | |
| # ... | |
| 'django.contrib.staticfiles', | |
| 'corsheaders', | |
| 'movies' | |
| ] | |
| # Zmieniamy | |
| MIDDLEWARE = [ | |
| # ... | |
| 'django.contrib.sessions.middleware.SessionMiddleware', | |
| 'corsheaders.middleware.CorsMiddleware', | |
| 'django.middleware.common.CommonMiddleware', | |
| # ... | |
| ] | |
| # A to coś nowego | |
| CORS_ORIGIN_WHITELIST = ( | |
| '127.0.0.1:8080' | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment