This commit is contained in:
parent
e95268486c
commit
d6bd3adf5c
@ -27,8 +27,14 @@ SECRET_KEY = "django-insecure-ztiqj957k(j*@ms=-^9j+=j7wd+cyo*+9g&hkfh1bji-@#&6(e
|
||||
# SECURITY WARNING: don't run with debug turned on in production!
|
||||
DEBUG = True
|
||||
|
||||
ALLOWED_HOSTS = ['izaac.izaac.pl', 'localhost', '127.0.0.1']
|
||||
ALLOWED_HOSTS = ['izaac.izaac.pl', 'localhost', '127.0.0.1',]
|
||||
|
||||
CORS_ALLOWED_ORIGIN = [
|
||||
"http://localhost:8000",
|
||||
"http://izaac.izaac.pl",
|
||||
"http://izaac-frontend.izaac.pl",
|
||||
"http://izaac-backend.izaac.pl",
|
||||
]
|
||||
|
||||
REST_FRAMEWORK = {
|
||||
'DEFAULT_AUTHENTICATION_CLASSES': [
|
||||
@ -50,6 +56,7 @@ INSTALLED_APPS = [
|
||||
"django.contrib.messages",
|
||||
"django.contrib.staticfiles",
|
||||
'django.contrib.sites',
|
||||
"corsheaders",
|
||||
"rest_framework",
|
||||
"rest_framework.authtoken",
|
||||
"dj_rest_auth",
|
||||
@ -70,6 +77,7 @@ ACCOUNT_EMAIL_VERIFICATION = 'none' # Lub 'mandatory' jeśli chcesz wymagać we
|
||||
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",
|
||||
|
||||
@ -3,4 +3,5 @@ gunicorn
|
||||
djangorestframework
|
||||
psycopg2-binary
|
||||
django-allauth
|
||||
dj-rest-auth
|
||||
dj-rest-auth
|
||||
django-cors-headers
|
||||
Loading…
x
Reference in New Issue
Block a user