Showing
3 changed files
with
10 additions
and
1 deletions
api/migrations/__init__.py
deleted
100644 → 0
File mode changed
requirements.txt
0 → 100644
... | @@ -10,6 +10,7 @@ For the full list of settings and their values, see | ... | @@ -10,6 +10,7 @@ For the full list of settings and their values, see |
10 | https://docs.djangoproject.com/en/3.1/ref/settings/ | 10 | https://docs.djangoproject.com/en/3.1/ref/settings/ |
11 | """ | 11 | """ |
12 | 12 | ||
13 | +import json | ||
13 | from pathlib import Path | 14 | from pathlib import Path |
14 | 15 | ||
15 | # Build paths inside the project like this: BASE_DIR / 'subdir'. | 16 | # Build paths inside the project like this: BASE_DIR / 'subdir'. |
... | @@ -25,7 +26,7 @@ SECRET_KEY = '%n@_477ih_b6%(5zf34kuggj(50jc-cob$*#8$sse%1)^x#=(t' | ... | @@ -25,7 +26,7 @@ SECRET_KEY = '%n@_477ih_b6%(5zf34kuggj(50jc-cob$*#8$sse%1)^x#=(t' |
25 | # SECURITY WARNING: don't run with debug turned on in production! | 26 | # SECURITY WARNING: don't run with debug turned on in production! |
26 | DEBUG = True | 27 | DEBUG = True |
27 | 28 | ||
28 | -ALLOWED_HOSTS = [] | 29 | +ALLOWED_HOSTS = ['*'] |
29 | 30 | ||
30 | 31 | ||
31 | # Application definition | 32 | # Application definition |
... | @@ -38,6 +39,8 @@ INSTALLED_APPS = [ | ... | @@ -38,6 +39,8 @@ INSTALLED_APPS = [ |
38 | 'django.contrib.messages', | 39 | 'django.contrib.messages', |
39 | 'django.contrib.staticfiles', | 40 | 'django.contrib.staticfiles', |
40 | 'api', | 41 | 'api', |
42 | + 'rest_framework', | ||
43 | + 'corsheaders', | ||
41 | ] | 44 | ] |
42 | 45 | ||
43 | MIDDLEWARE = [ | 46 | MIDDLEWARE = [ |
... | @@ -48,6 +51,7 @@ MIDDLEWARE = [ | ... | @@ -48,6 +51,7 @@ MIDDLEWARE = [ |
48 | 'django.contrib.auth.middleware.AuthenticationMiddleware', | 51 | 'django.contrib.auth.middleware.AuthenticationMiddleware', |
49 | 'django.contrib.messages.middleware.MessageMiddleware', | 52 | 'django.contrib.messages.middleware.MessageMiddleware', |
50 | 'django.middleware.clickjacking.XFrameOptionsMiddleware', | 53 | 'django.middleware.clickjacking.XFrameOptionsMiddleware', |
54 | + 'corsheaders.middleware.CorsMiddleware', | ||
51 | ] | 55 | ] |
52 | 56 | ||
53 | ROOT_URLCONF = 'src.urls' | 57 | ROOT_URLCONF = 'src.urls' | ... | ... |
-
Please register or login to post a comment