QS 0.9.1 PORD

This commit is contained in:
Holger Trampe 2020-06-01 12:58:17 +02:00
parent 39053adeff
commit eb0f5fbe70
5 changed files with 21 additions and 3 deletions

1
.cred
View File

@ -1 +1,2 @@
https://holger.trampe:Zerogoogle123_@git.vhevents.de/
https://holger.trampe:Zerogoogle123_@git.vhevents.de/

View File

@ -169,11 +169,28 @@ LOGIN_REDIRECT_URL = 'users-dashboard'
LOGIN_URL = 'login'
STATIC_URL = '/static/'
'''
SITE_ROOT = os.path.dirname(os.path.realpath(__file__)) + '/..'
STATICFILES_DIRS = (os.path.join(SITE_ROOT, 'users/static/'),)
STATIC_ROOT = (os.path.join(SITE_ROOT, 'collectedstatic'))
#STATIC_ROOT = (os.path.join(SITE_ROOT, 'collectedstatic'))
'''
############################# FÜR COMMIT
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'
# Bildspeicherpfad
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
MEDIA_URL = '/media/'
# CRISPY
CRISPY_TEMPLATE_PACK = 'bootstrap4'

View File

@ -35,8 +35,8 @@ urlpatterns = [
path('chat/', include('chat.urls'), name='chat'),
path('api-token-auth/', obtain_auth_token, name='api-token-auth'),
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
#if settings.DEBUG:
# urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
if settings.DEBUG:
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
# ERROR HANDLERS
handler404 = 'users.views.handler404'