|
|
@ -40,6 +40,7 @@ INSTALLED_APPS = [
|
|
|
|
'django.contrib.sessions',
|
|
|
|
'django.contrib.sessions',
|
|
|
|
'django.contrib.messages',
|
|
|
|
'django.contrib.messages',
|
|
|
|
'django.contrib.staticfiles',
|
|
|
|
'django.contrib.staticfiles',
|
|
|
|
|
|
|
|
'corsheaders',
|
|
|
|
'rest_framework',
|
|
|
|
'rest_framework',
|
|
|
|
'rest_framework.authtoken',
|
|
|
|
'rest_framework.authtoken',
|
|
|
|
'journal.apps.JournalConfig',
|
|
|
|
'journal.apps.JournalConfig',
|
|
|
@ -48,6 +49,7 @@ INSTALLED_APPS = [
|
|
|
|
MIDDLEWARE = [
|
|
|
|
MIDDLEWARE = [
|
|
|
|
'django.middleware.security.SecurityMiddleware',
|
|
|
|
'django.middleware.security.SecurityMiddleware',
|
|
|
|
'django.contrib.sessions.middleware.SessionMiddleware',
|
|
|
|
'django.contrib.sessions.middleware.SessionMiddleware',
|
|
|
|
|
|
|
|
'corsheaders.middleware.CorsMiddleware',
|
|
|
|
'django.middleware.common.CommonMiddleware',
|
|
|
|
'django.middleware.common.CommonMiddleware',
|
|
|
|
'django.middleware.csrf.CsrfViewMiddleware',
|
|
|
|
'django.middleware.csrf.CsrfViewMiddleware',
|
|
|
|
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
|
|
|
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
|
|
@ -130,3 +132,6 @@ STATIC_URL = '/static/'
|
|
|
|
JOURNAL_API_PERMISSIONS = (
|
|
|
|
JOURNAL_API_PERMISSIONS = (
|
|
|
|
'rest_framework.permissions.IsAuthenticated',
|
|
|
|
'rest_framework.permissions.IsAuthenticated',
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Cors
|
|
|
|
|
|
|
|
CORS_ORIGIN_ALLOW_ALL = True
|
|
|
|