최지우

add requirement

1 +Django==3.1.2
2 +djangorestframework==3.12.1
3 +sqlparse==0.3.1
4 +pytz==2020.1
5 +django-cors-headers==3.5.0
...@@ -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'
......