Toggle navigation
Toggle navigation
This project
Loading...
Sign in
cse437_e
/
smartdoorlock-backend
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
최지우
2020-10-05 16:36:53 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7df1db9ee0c8ebebf69972ff181b6e6947292a4f
7df1db9e
1 parent
9166703a
add requirement
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletions
api/migrations/__init__.py
requirements.txt
src/settings.py
api/migrations/__init__.py
deleted
100644 → 0
View file @
9166703
File mode changed
requirements.txt
0 → 100644
View file @
7df1db9
Django==3.1.2
djangorestframework==3.12.1
sqlparse==0.3.1
pytz==2020.1
django-cors-headers==3.5.0
src/settings.py
View file @
7df1db9
...
...
@@ -10,6 +10,7 @@ For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
import
json
from
pathlib
import
Path
# 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'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG
=
True
ALLOWED_HOSTS
=
[]
ALLOWED_HOSTS
=
[
'*'
]
# Application definition
...
...
@@ -38,6 +39,8 @@ INSTALLED_APPS = [
'django.contrib.messages'
,
'django.contrib.staticfiles'
,
'api'
,
'rest_framework'
,
'corsheaders'
,
]
MIDDLEWARE
=
[
...
...
@@ -48,6 +51,7 @@ MIDDLEWARE = [
'django.contrib.auth.middleware.AuthenticationMiddleware'
,
'django.contrib.messages.middleware.MessageMiddleware'
,
'django.middleware.clickjacking.XFrameOptionsMiddleware'
,
'corsheaders.middleware.CorsMiddleware'
,
]
ROOT_URLCONF
=
'src.urls'
...
...
Please
register
or
login
to post a comment