Removed gunicorn and fixed nginx

This commit is contained in:
ayxan
2022-10-02 01:51:45 +04:00
parent 46bbb10d20
commit a689929478
4 changed files with 16 additions and 15 deletions

View File

@@ -17,9 +17,7 @@ DATABASES = {
}
STATIC_URL = '/django_static/'
STATIC_ROOT = [
BASE_DIR / 'django_static'
]
STATIC_ROOT = os.path.join(os.path.dirname(os.path.dirname(BASE_DIR)), 'django_static')
STATICFILES_DIRS = [
BASE_DIR / 'django_static/static'
BASE_DIR / 'static'
]

View File

@@ -2,6 +2,6 @@ import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings.production')
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings')
application = get_wsgi_application()