Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.idea/
venv/
1 change: 1 addition & 0 deletions requirments.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ coreschema==0.0.4
defusedxml==0.6.0
Django==2.2.3
django-allauth==0.39.1
django-cors-headers==3.0.2
django-filter==2.1.0
django-nopassword==5.0.0
django-rest-auth==0.9.5
Expand Down
12 changes: 10 additions & 2 deletions scriptslide/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
'allauth.account',
'allauth.socialaccount',
'drf_yasg',

'corsheaders'
]

MIDDLEWARE = [
Expand All @@ -59,6 +59,7 @@
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'corsheaders.middleware.CorsMiddleware'
]

ROOT_URLCONF = 'scriptslide.urls'
Expand Down Expand Up @@ -179,4 +180,11 @@

ACCOUNT_EMAIL_REQUIRED = False
ACCOUNT_USERNAME_REQUIRED = True #우선은 USERNAME으로만 로그인
SITE_ID = 1 # rest auth 사용 시 DB 위치 명시localhost에서
SITE_ID = 1 # rest auth 사용 시 DB 위치 명시localhost에서


CORS_ORIGIN_ALLOW_ALL = True
CORS_ALLOW_CREDENTIALS = True