Skip to content

Commit

Permalink
fix: Update .gitignore to remove static/ directory and correct STATIC…
Browse files Browse the repository at this point in the history
…_URL path in settings.py
  • Loading branch information
AhmedNassar7 committed Dec 25, 2024
1 parent b54ee01 commit 01663b8
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ db.sqlite3
commands.md

# Ignore static files
static/
staticfiles/

# Ignore media files
Expand Down
2 changes: 1 addition & 1 deletion egypt_metro/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/5.1/howto/static-files/

STATIC_URL = "/static" # URL for static files
STATIC_URL = "/static/" # URL for static files

if os.getenv("RENDER"):
STATIC_ROOT = "/opt/render/project/src/staticfiles/"
Expand Down
File renamed without changes.

0 comments on commit 01663b8

Please sign in to comment.