Fakultas Ilmu Komputer UI
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Sistem Informasi Zakat
Sizakat 5.0 (Refactoring)
Sizakat Backend
Commits
3c759810
Commit
3c759810
authored
Jul 17, 2020
by
addffa
Browse files
[CHORES] update cors in settings and fix path migrations in .gitignore
parent
dc7526a8
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
3c759810
...
...
@@ -67,7 +67,7 @@ coverage.xml
staticfiles/
# migrations file
*/migrations/
/*
*/migrations/
# Jupyter Notebook
.ipynb_checkpoints
...
...
sizakat/settings.py
View file @
3c759810
...
...
@@ -38,6 +38,7 @@ INSTALLED_APPS = [
'django.contrib.messages'
,
'django.contrib.staticfiles'
,
'graphene_django'
,
'corsheaders'
,
'sizakat.apps.mustahik'
]
...
...
@@ -48,6 +49,7 @@ GRAPHENE = {
MIDDLEWARE
=
[
'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'
,
...
...
@@ -55,6 +57,8 @@ MIDDLEWARE = [
'django.middleware.clickjacking.XFrameOptionsMiddleware'
,
]
CORS_ORIGIN_WHITELIST
=
os
.
environ
.
get
(
'CORS_ORIGIN_WHITELIST'
).
split
()
ROOT_URLCONF
=
'sizakat.urls'
TEMPLATES
=
[
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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