diff --git a/nginx/conf.d/local.conf b/nginx/conf.d/local.conf index ebdbb33..4870b0e 100644 --- a/nginx/conf.d/local.conf +++ b/nginx/conf.d/local.conf @@ -23,7 +23,7 @@ server { location /_files/ { alias /tmp/ngspice-cloud-temp/; } - location /static/ { + location /django_static/ { alias /usr/share/nginx/static/; } -} \ No newline at end of file +} diff --git a/ngspice_cloud/ngspice_cloud/settings.py b/ngspice_cloud/ngspice_cloud/settings.py index 47be428..e1ab378 100644 --- a/ngspice_cloud/ngspice_cloud/settings.py +++ b/ngspice_cloud/ngspice_cloud/settings.py @@ -48,7 +48,7 @@ ] MIDDLEWARE = [ - + 'django.middleware.security.SecurityMiddleware', 'whitenoise.middleware.WhiteNoiseMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', @@ -62,7 +62,7 @@ ] ROOT_URLCONF = 'ngspice_cloud.urls' -CORS_ORIGIN_ALLOW_ALL = True +CORS_ORIGIN_ALLOW_ALL = True TEMPLATES = [ { @@ -153,7 +153,7 @@ STATIC_ROOT = os.path.join(BASE_DIR, 'static') STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage' -STATIC_URL = '/static/' +STATIC_URL = '/django_static/' @@ -171,4 +171,4 @@ CELERY_TASK_SERIALIZER = 'json' CELERY_IMPORTS = ( 'simulator_app.tasks' -) \ No newline at end of file +)