Skip to content

Commit

Permalink
Fix static files misconfiguration
Browse files Browse the repository at this point in the history
  • Loading branch information
darshkpatel committed Feb 25, 2020
1 parent 870333d commit cb12c10
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions nginx/conf.d/local.conf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ server {
location /_files/ {
alias /tmp/ngspice-cloud-temp/;
}
location /static/ {
location /django_static/ {
alias /usr/share/nginx/static/;
}
}
}
8 changes: 4 additions & 4 deletions ngspice_cloud/ngspice_cloud/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
]

MIDDLEWARE = [

'django.middleware.security.SecurityMiddleware',
'whitenoise.middleware.WhiteNoiseMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
Expand All @@ -62,7 +62,7 @@
]

ROOT_URLCONF = 'ngspice_cloud.urls'
CORS_ORIGIN_ALLOW_ALL = True
CORS_ORIGIN_ALLOW_ALL = True

TEMPLATES = [
{
Expand Down Expand Up @@ -153,7 +153,7 @@
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'

STATIC_URL = '/static/'
STATIC_URL = '/django_static/'



Expand All @@ -171,4 +171,4 @@
CELERY_TASK_SERIALIZER = 'json'
CELERY_IMPORTS = (
'simulator_app.tasks'
)
)

0 comments on commit cb12c10

Please sign in to comment.