add assets

This commit is contained in:
2022-01-23 22:49:43 +00:00
parent c6b191ce16
commit 6722b92073
4630 changed files with 18300 additions and 12883 deletions

View File

@@ -187,8 +187,8 @@ else:
STATIC_URL = "/assets/"
STATICFILES_DIRS = [
os.path.join(BASE_DIR, "gallery/static"),
os.path.join(BASE_DIR, "static"),
#os.path.join(BASE_DIR, "gallery/static/"),
os.path.join(BASE_DIR, "static/"),
]
STATIC_ROOT = "assets/"

View File

@@ -176,6 +176,8 @@ def show(request, id=None):
if not obj.published:
related_posts.remove(obj)
print(settings.STATICFILES_DIRS)
context = {
"post": post,
"files": files,