Skip to content

Commit

Permalink
Merge branch 'static-file-handling-in-dev-and-prod' into newb
Browse files Browse the repository at this point in the history
  • Loading branch information
princekhunt committed Jun 14, 2024
2 parents f37fb70 + c5b394e commit d6e1e09
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 0 additions & 4 deletions PrivatePing/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,4 @@
LOGIN_REDIRECT_URL = "/"
LOGOUT_REDIRECT_URL = "/"

# STATICFILES_DIRS = [
# os.path.join(BASE_DIR, '../assets/static')
# ]
STATIC_ROOT = os.path.join(BASE_DIR, '../assets/')
STATIC_URL = '/static/'
8 changes: 6 additions & 2 deletions PrivatePing/settings/development.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
SECRET_KEY = env('SECRET_KEY')
SECRET_ADMIN_URL = env('SECRET_ADMIN_URL')
ALLOWED_HOSTS = ['localhost']
DEBUG = False
DEBUG = True

CHANNEL_LAYERS = {
"default": {
Expand All @@ -42,4 +42,8 @@

DOMAIN = "http://localhost:8000"

CSRF_TRUSTED_ORIGINS = ["http://localhost:8000"]
CSRF_TRUSTED_ORIGINS = ["http://localhost:8000"]

STATICFILES_DIRS = [
os.path.join(BASE_DIR, '../assets/')
]

0 comments on commit d6e1e09

Please sign in to comment.