wsgi stuff

This commit is contained in:
Dominic 2025-11-14 20:33:39 -05:00
parent f52a3801b2
commit bfcd46a5e2
2 changed files with 5 additions and 3 deletions

View file

@ -1,5 +1,6 @@
import os
from pathlib import Path
from config import site_root
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
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
INSTALLED_APPS = [
@ -112,10 +114,10 @@ USE_TZ = True
STATIC_URL = 'static/'
STATIC_ROOT = 'static/'
site_root = '/home/dominic/repos/cwr'
STATICFILES_DIRS = (
os.path.join(site_root, 'assets/'),
)
LOGIN_REDIRECT_URL = 'forum_threads'
LOGOUT_REDIRECT_URL = "login"
# Default primary key field type

View file

@ -11,6 +11,6 @@ import os
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()