Skip to content

Commit

Permalink
Merge pull request #21 from princekhunt/static-file-handling-in-dev-a…
Browse files Browse the repository at this point in the history
…nd-prod

Better static file handling in dev and prod
  • Loading branch information
princekhunt authored Jun 14, 2024
2 parents 1071a48 + a4f2271 commit a90528e
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 a90528e

Please sign in to comment.