Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
knowledge_graph
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sun Long
knowledge_graph
Commits
e461447f
Commit
e461447f
authored
Apr 25, 2022
by
lyh3024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
Change-Id: I196cc06fb97dcc69d38af3621f775ad67374bceb
parent
14171a52
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
settings.py
knowledge_graph/settings.py
+6
-1
No files found.
knowledge_graph/settings.py
View file @
e461447f
...
...
@@ -12,6 +12,7 @@ https://docs.djangoproject.com/en/3.2/ref/settings/
from
pathlib
import
Path
from
neomodel
import
config
from
corsheaders.defaults
import
default_headers
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR
=
Path
(
__file__
)
.
resolve
()
.
parent
.
parent
...
...
@@ -46,9 +47,9 @@ INSTALLED_APPS = [
]
MIDDLEWARE
=
[
'corsheaders.middleware.CorsMiddleware'
,
'django.middleware.security.SecurityMiddleware'
,
'django.contrib.sessions.middleware.SessionMiddleware'
,
'corsheaders.middleware.CorsMiddleware'
,
'django.middleware.common.CommonMiddleware'
,
'django.middleware.csrf.CsrfViewMiddleware'
,
'django.contrib.auth.middleware.AuthenticationMiddleware'
,
...
...
@@ -59,6 +60,10 @@ MIDDLEWARE = [
CORS_ORIGIN_ALLOW_ALL
=
True
CORS_ALLOW_CREDENTIALS
=
True
CORS_ALLOW_HEADERS
=
list
(
default_headers
)
+
[
'token'
,
]
ROOT_URLCONF
=
'knowledge_graph.urls'
TEMPLATES
=
[
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment