added gunicorn

This commit is contained in:
ayxan
2022-10-01 23:10:30 +04:00
parent e613fe1874
commit 46bbb10d20
6 changed files with 40 additions and 15 deletions

View File

@@ -16,7 +16,10 @@ DATABASES = {
}
}
STATIC_URL = '/static/'
STATIC_URL = '/django_static/'
STATIC_ROOT = [
BASE_DIR / 'django_static'
]
STATICFILES_DIRS = [
BASE_DIR / 'static'
BASE_DIR / 'django_static/static'
]

View File

@@ -1,16 +1,7 @@
"""
WSGI config for config project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/4.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings')
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings.production')
application = get_wsgi_application()