QS 0.9.1 PORD
This commit is contained in:
parent
3ae9ec77b4
commit
a0fbf1974c
|
|
@ -9,6 +9,7 @@ media/agencydata/*
|
|||
digitaleagentur/__pycache__/*
|
||||
digitaleagentur/sec.py
|
||||
|
||||
collectedstatic/*
|
||||
|
||||
media/userprofilepics/*
|
||||
!media/userprofilepics/default.jpg
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -170,11 +170,12 @@ LOGIN_URL = 'login'
|
|||
|
||||
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/'),
|
||||
#)
|
||||
STATICFILES_DIRS = (
|
||||
os.path.join(SITE_ROOT, 'users/static/'),
|
||||
)
|
||||
|
||||
STATIC_ROOT = (os.path.join(SITE_ROOT, 'collectedstatic/'))
|
||||
|
||||
# CRISPY
|
||||
CRISPY_TEMPLATE_PACK = 'bootstrap4'
|
||||
|
|
|
|||
|
|
@ -382,18 +382,6 @@ def receiver_function(sender, **kwargs):
|
|||
# DELETES ALL PRESENCE-OBJETS LOWER THAN 15 MINUTES
|
||||
now_minus = datetime.datetime.now() - datetime.timedelta(minutes=2)
|
||||
Presence.objects.filter(last_seen__lt=now_minus).delete()
|
||||
|
||||
print(settings.MEDIA_URL)
|
||||
print(settings.MEDIA_ROOT)
|
||||
print(os.path.join(settings.BASE_DIR, 'media'))
|
||||
print(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||
|
||||
print(settings.STATIC_URL)
|
||||
print(settings.SITE_ROOT)
|
||||
print(settings.STATIC_ROOT)
|
||||
|
||||
print(os.path.dirname(os.path.realpath(__file__)) + '/..')
|
||||
print(os.path.join(settings.SITE_ROOT, 'users/static/'))
|
||||
|
||||
# PREENCE CHANGED
|
||||
@receiver(signal=presence_changed)
|
||||
|
|
|
|||
Loading…
Reference in New Issue