Commit ef5c651c authored by Lukas Burgey's avatar Lukas Burgey

Rename project

parent 4671af1c
Installation
====
......@@ -10,7 +9,7 @@ Installation
- su feudal
- git clone git.scc.kit.edu/fum/fum_backend ~/backend
- Configure your database in ~/.my.cnf
- Configure django in ~/backend/django_backend/settings.py
- Configure django in ~/backend/feudal/settings.py
- cd ~/backend
- ./generate-secret
- virtualenv -p /usr/bin/python3
......
......@@ -5,8 +5,8 @@ from django.contrib import auth
from django.contrib.auth.models import Group
from django.test import TestCase
from django_backend.backend import models
from django_backend.backend.auth.v1 import models as auth_models
from feudal.backend import models
from feudal.backend.auth.v1 import models as auth_models
LOGGER = logging.getLogger(__name__)
......
"""
Django settings for django_backend project.
Django settings for feudal project.
Generated by 'django-admin startproject' using Django 1.11.7.
......@@ -50,7 +50,7 @@ INSTALLED_APPS = [
'django.contrib.messages',
'django.contrib.staticfiles',
'rest_framework',
'django_backend.backend',
'feudal.backend',
'corsheaders',
'django_mysql',
]
......@@ -66,7 +66,7 @@ MIDDLEWARE = [
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]
ROOT_URLCONF = 'django_backend.urls'
ROOT_URLCONF = 'feudal.urls'
TEMPLATES = [
{
......@@ -84,7 +84,7 @@ TEMPLATES = [
},
]
WSGI_APPLICATION = 'django_backend.wsgi.application'
WSGI_APPLICATION = 'feudal.wsgi.application'
# Database
......@@ -114,13 +114,13 @@ CORS_ORIGIN_ALLOW_ALL = True
# AUTHENTICATION AND AUTHORIZATION
AUTHENTICATION_BACKENDS = [
'django_backend.backend.auth.v1.models.OIDCTokenAuthBackend',
'feudal.backend.auth.v1.models.OIDCTokenAuthBackend',
'django.contrib.auth.backends.ModelBackend',
]
REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': [
'django_backend.backend.auth.v1.auth_class.CsrfExemptSessionAuthentication',
'feudal.backend.auth.v1.auth_class.CsrfExemptSessionAuthentication',
],
'DEFAULT_PERMISSION_CLASSES': [
'rest_framework.permissions.IsAuthenticated',
......@@ -204,7 +204,7 @@ LOGGING = {
},
},
'loggers': {
'django_backend': {
'feudal': {
'handlers': ['debug', 'info', 'error'],
'level': 'DEBUG',
},
......
"""
WSGI config for django_backend project.
WSGI config for feudal project.
It exposes the WSGI callable as a module-level variable named ``application``.
......@@ -11,7 +11,7 @@ import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django_backend.settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "feudal.settings")
# pylint: disable=invalid-name
application = get_wsgi_application()
......@@ -3,7 +3,7 @@ import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django_backend.settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "feudal.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
......
Markdown is supported
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