wsgi stuff
This commit is contained in:
parent
f52a3801b2
commit
bfcd46a5e2
2 changed files with 5 additions and 3 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
import os
|
import os
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
from config import site_root
|
||||||
|
|
||||||
from config import ADMIN_EMAIL_PASSWORD
|
from config import ADMIN_EMAIL_PASSWORD
|
||||||
|
|
||||||
|
|
@ -17,8 +18,9 @@ SECRET_KEY = 'django-insecure-l2amdti&+4frup-f-%084399hpxc19#*!j+-nyxh)!lj1^d1@g
|
||||||
DEBUG = True
|
DEBUG = True
|
||||||
DEV = True
|
DEV = True
|
||||||
|
|
||||||
ALLOWED_HOSTS = []
|
ALLOWED_HOSTS = ['127.0.0.1', '0.0.0.0', 'cwr.domdit.com', 'domdit.com', '192.168.1.65']
|
||||||
|
|
||||||
|
CSRF_TRUSTED_ORIGINS = ['https://cwr.domdit.com']
|
||||||
# Application definition
|
# Application definition
|
||||||
|
|
||||||
INSTALLED_APPS = [
|
INSTALLED_APPS = [
|
||||||
|
|
@ -112,10 +114,10 @@ USE_TZ = True
|
||||||
STATIC_URL = 'static/'
|
STATIC_URL = 'static/'
|
||||||
STATIC_ROOT = 'static/'
|
STATIC_ROOT = 'static/'
|
||||||
|
|
||||||
site_root = '/home/dominic/repos/cwr'
|
|
||||||
STATICFILES_DIRS = (
|
STATICFILES_DIRS = (
|
||||||
os.path.join(site_root, 'assets/'),
|
os.path.join(site_root, 'assets/'),
|
||||||
)
|
)
|
||||||
|
|
||||||
LOGIN_REDIRECT_URL = 'forum_threads'
|
LOGIN_REDIRECT_URL = 'forum_threads'
|
||||||
LOGOUT_REDIRECT_URL = "login"
|
LOGOUT_REDIRECT_URL = "login"
|
||||||
# Default primary key field type
|
# Default primary key field type
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,6 @@ import os
|
||||||
|
|
||||||
from django.core.wsgi import get_wsgi_application
|
from django.core.wsgi import get_wsgi_application
|
||||||
|
|
||||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'wsgi.settings')
|
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'cwr.settings')
|
||||||
|
|
||||||
application = get_wsgi_application()
|
application = get_wsgi_application()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue