QS 0.9.1 PORD

This commit is contained in:
Holger Trampe 2020-05-31 15:04:49 +02:00
parent 3ae9ec77b4
commit a0fbf1974c
4 changed files with 6 additions and 16 deletions

1
.gitignore vendored
View File

@ -9,6 +9,7 @@ media/agencydata/*
digitaleagentur/__pycache__/*
digitaleagentur/sec.py
collectedstatic/*
media/userprofilepics/*
!media/userprofilepics/default.jpg

View File

@ -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'

View File

@ -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)