correct the static files setup

This commit is contained in:
Andreas Zweili 2020-04-20 15:22:48 +02:00
parent a513de51e7
commit 8310a1569a
25 changed files with 2 additions and 3 deletions

3
.gitignore vendored
View File

@ -174,5 +174,4 @@ migrations/
htmlcov/
.second_run
network_inventory/static/
!network_inventory/static/core
/static

View File

@ -125,7 +125,7 @@ USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/2.0/howto/static-files/
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, "static")
STATIC_ROOT = os.path.join(BASE_DIR, "..", "static")
DJANGO_TABLES2_TEMPLATE = "django_tables2/bootstrap4.html"
CRISPY_TEMPLATE_PACK = 'bootstrap4'