diff --git a/digitaleagentur/__pycache__/settings.cpython-38.pyc b/digitaleagentur/__pycache__/settings.cpython-38.pyc index 0d03a12..a7b3c66 100644 Binary files a/digitaleagentur/__pycache__/settings.cpython-38.pyc and b/digitaleagentur/__pycache__/settings.cpython-38.pyc differ diff --git a/digitaleagentur/settings.py b/digitaleagentur/settings.py index 9a0b236..c252e32 100644 --- a/digitaleagentur/settings.py +++ b/digitaleagentur/settings.py @@ -24,7 +24,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = '_qv2t2lmsctjxpbb4rrp=op%_20_hxzonv^mvty1o85c)l$s^q' # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True +DEBUG = False ALLOWED_HOSTS = ['digitale-agentur.com', 'www.digitale-agentur.com', 'localhost'] @@ -169,18 +169,16 @@ LOGIN_REDIRECT_URL = 'users-dashboard' #SITE_ROOT = '/var/www/digitale-agentur.com/digitaleagentur/digitaleagentur/../' #STATIC_ROOT = (os.path.join(SITE_ROOT, 'static/')) - - -STATIC_URL = 'users/static/' -#STATIC_URL = '/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/'), -) - +if DEBUG: + STATIC_URL = '/static/' +else: + STATIC_URL = 'users/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_TEMPLATE_PACK = 'bootstrap4' diff --git a/standards/templates/standards/standards_management.html b/standards/templates/standards/standards_management.html index ec18b60..5b9d4db 100644 --- a/standards/templates/standards/standards_management.html +++ b/standards/templates/standards/standards_management.html @@ -14,40 +14,6 @@
{{ item.content|truncatechars:250|safe}}
-