Fakultas Ilmu Komputer UI

Commit 3c759810 authored by addffa's avatar addffa
Browse files

[CHORES] update cors in settings and fix path migrations in .gitignore

parent dc7526a8
......@@ -67,7 +67,7 @@ coverage.xml
staticfiles/
# migrations file
*/migrations/
/**/migrations/
# Jupyter Notebook
.ipynb_checkpoints
......
......@@ -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 = [
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment