|
|
|
@ -40,6 +40,7 @@ INSTALLED_APPS = [
|
|
|
|
|
'django.contrib.sessions',
|
|
|
|
|
'django.contrib.messages',
|
|
|
|
|
'django.contrib.staticfiles',
|
|
|
|
|
'corsheaders',
|
|
|
|
|
'rest_framework',
|
|
|
|
|
'rest_framework.authtoken',
|
|
|
|
|
'journal.apps.JournalConfig',
|
|
|
|
@ -48,6 +49,7 @@ INSTALLED_APPS = [
|
|
|
|
|
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',
|
|
|
|
@ -130,3 +132,6 @@ STATIC_URL = '/static/'
|
|
|
|
|
JOURNAL_API_PERMISSIONS = (
|
|
|
|
|
'rest_framework.permissions.IsAuthenticated',
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
# Cors
|
|
|
|
|
CORS_ORIGIN_ALLOW_ALL = True
|
|
|
|
|