- Settings angepasst
This commit is contained in:
parent
4b51d757e3
commit
a15134cd89
Binary file not shown.
Binary file not shown.
|
|
@ -26,7 +26,7 @@ SECRET_KEY = '_qv2t2lmsctjxpbb4rrp=op%_20_hxzonv^mvty1o85c)l$s^q'
|
||||||
# SECURITY WARNING: don't run with debug turned on in production!
|
# SECURITY WARNING: don't run with debug turned on in production!
|
||||||
DEBUG = True
|
DEBUG = True
|
||||||
|
|
||||||
ALLOWED_HOSTS = []
|
ALLOWED_HOSTS = ['digitale-agentur.com', 'www.digitale-agentur.com']
|
||||||
|
|
||||||
|
|
||||||
# Application definition
|
# Application definition
|
||||||
|
|
@ -124,17 +124,7 @@ DATABASES = {
|
||||||
'PORT' : 3306
|
'PORT' : 3306
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
'''
|
|
||||||
DATABASES = {
|
|
||||||
'default': {
|
|
||||||
'ENGINE': 'django.db.backends.mysql',
|
|
||||||
'NAME' : 'digitaleagentur',
|
|
||||||
'USER' : 'root',
|
|
||||||
'PASSWORD' : '',
|
|
||||||
'PORT' : 3306
|
|
||||||
}
|
|
||||||
}
|
|
||||||
'''
|
|
||||||
# Password validation
|
# Password validation
|
||||||
# https://docs.djangoproject.com/en/2.2/ref/settings/#auth-password-validators
|
# https://docs.djangoproject.com/en/2.2/ref/settings/#auth-password-validators
|
||||||
|
|
||||||
|
|
@ -171,13 +161,20 @@ USE_TZ = True
|
||||||
LOGIN_REDIRECT_URL = 'users-dashboard'
|
LOGIN_REDIRECT_URL = 'users-dashboard'
|
||||||
|
|
||||||
# LOGIN PAGE FOR LOGIN-REDIRECT
|
# LOGIN PAGE FOR LOGIN-REDIRECT
|
||||||
LOGIN_URL = 'login'
|
#LOGIN_URL = 'login'
|
||||||
|
|
||||||
|
|
||||||
# Static files (CSS, JavaScript, Images)
|
# Static files (CSS, JavaScript, Images)
|
||||||
# https://docs.djangoproject.com/en/2.2/howto/static-files/
|
# https://docs.djangoproject.com/en/2.2/howto/static-files/
|
||||||
|
import os
|
||||||
STATIC_URL = '/static/'
|
STATIC_URL = 'users/static/'
|
||||||
|
#SITE_ROOT = os.path.dirname(os.path.realpath(__file__))
|
||||||
|
#SITE_ROOT = '/var/www/digitale-agentur.com/digitaleagentur/digitaleagentur/../'
|
||||||
|
#STATIC_ROOT = (os.path.join(SITE_ROOT, 'static/'))
|
||||||
|
SITE_ROOT = os.path.dirname(os.path.realpath(__file__)) + '/..'
|
||||||
|
STATIC_ROOT = (os.path.join(SITE_ROOT, 'users/static/'))
|
||||||
|
STATICFILES_DIRS = (
|
||||||
|
os.path.join(SITE_ROOT, 'users/static/'),
|
||||||
|
)
|
||||||
|
|
||||||
# CRISPY
|
# CRISPY
|
||||||
CRISPY_TEMPLATE_PACK = 'bootstrap4'
|
CRISPY_TEMPLATE_PACK = 'bootstrap4'
|
||||||
|
|
|
||||||
|
|
@ -9,12 +9,18 @@ from ckeditor_uploader.views import upload
|
||||||
from django.contrib.auth.decorators import login_required
|
from django.contrib.auth.decorators import login_required
|
||||||
|
|
||||||
'''
|
'''
|
||||||
ADMINPAGE - Verwaltung der Super-User
|
|
||||||
- LOGIN-Page
|
Main URLS
|
||||||
dashboard/ --> Nach Login werden hier die URLS aus der Users-App eingebunden und dort alle URLS eingeladen
|
|
||||||
|
Apps:
|
||||||
|
areas
|
||||||
|
tasks
|
||||||
|
standards
|
||||||
|
orga
|
||||||
|
|
||||||
|
-> Rest ist von Django
|
||||||
|
|
||||||
'''
|
'''
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path('', auth_views.LoginView.as_view(template_name='users/login.html'), name='login'),
|
path('', auth_views.LoginView.as_view(template_name='users/login.html'), name='login'),
|
||||||
path('admin/', admin.site.urls),
|
path('admin/', admin.site.urls),
|
||||||
|
|
@ -29,7 +35,7 @@ urlpatterns = [
|
||||||
path('password-reset-complete/', auth_views.PasswordResetCompleteView.as_view(template_name='users/password_reset_complete.html'), name='password_reset_complete'),
|
path('password-reset-complete/', auth_views.PasswordResetCompleteView.as_view(template_name='users/password_reset_complete.html'), name='password_reset_complete'),
|
||||||
path('register/', AgencyCreateView.as_view(template_name='users/register.html'), name='register'),
|
path('register/', AgencyCreateView.as_view(template_name='users/register.html'), name='register'),
|
||||||
path('register/done', views.registerdone, name='register-done')
|
path('register/done', views.registerdone, name='register-done')
|
||||||
]
|
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
|
||||||
if settings.DEBUG:
|
if settings.DEBUG:
|
||||||
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
<!-- Base-Template einbinden -->
|
<!-- Base-Template einbinden -->
|
||||||
{% extends "users/publicbase.html" %}
|
{% extends "users/publicbase.html" %}
|
||||||
|
|
||||||
{% load crispy_forms_tags %}
|
|
||||||
<!-- BLOCK NAME START -->
|
<!-- BLOCK NAME START -->
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="alert alert-info">Es wurde eine E-Mail mit einem Link verschickt.</div>
|
<div class="alert alert-info">Es wurde eine E-Mail mit einem Link verschickt.</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue