add login function

This commit is contained in:
2017-02-04 06:20:46 +01:00
parent 47ba4b0b67
commit 19719a68b9
4 changed files with 24 additions and 1 deletions

View File

@@ -37,6 +37,7 @@ INSTALLED_APPS = [
'django.contrib.staticfiles',
'rest_framework',
'rest_framework.authtoken',
'crispy_forms',
'billard',
]
@@ -131,6 +132,11 @@ REST_FRAMEWORK = {
),
}
CRISPY_TEMPLATE_PACK = 'bootstrap3'
LOGIN_URL = 'login'
LOGOUT_URL = 'logout'
LOGIN_REDIRECT_URL = 'carom_index'
STATIC_ROOT = "/srv/carom/carom-server/static/"
try: