Skip to content

Commit

Permalink
AS | Add STATICFILES_DIRS path in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Akash1362000 committed Mar 27, 2023
1 parent 6ec6bbe commit 361edaa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web: gunicorn 'student_management_system.wsgi'
web: python manage.py migrate && gunicorn 'student_management_system.wsgi'
4 changes: 3 additions & 1 deletion student_management_system/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@
MEDIA_ROOT = os.path.join(BASE_DIR, "media")

STATIC_URL = "/static/"
STATIC_ROOT = os.path.join(BASE_DIR, "static")
STATIC_ROOT = os.path.join(BASE_DIR, "staticfiles")
STATICFILES_DIRS = [os.path.join(BASE_DIR, "static")]


# Application definition

Expand Down

0 comments on commit 361edaa

Please sign in to comment.