Autosave: 20260214-132902
This commit is contained in:
parent
c9235c6961
commit
07a349298a
@ -1,6 +1,6 @@
|
||||
import os
|
||||
import sys
|
||||
import dj_database_url
|
||||
|
||||
from pathlib import Path
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
@ -16,13 +16,18 @@ SECRET_KEY = os.environ.get('DJANGO_SECRET_KEY', 'django-insecure-change-me-loca
|
||||
# SECURITY WARNING: don't run with debug turned on in production!
|
||||
DEBUG = os.environ.get('DEVELOPMENT', 'False') == 'True'
|
||||
|
||||
ALLOWED_HOSTS = ['*']
|
||||
ALLOWED_HOSTS = [
|
||||
'.flatlogic.app',
|
||||
'.flatlogic.run',
|
||||
'.flatlogic.com',
|
||||
'localhost',
|
||||
'127.0.0.1',
|
||||
]
|
||||
|
||||
CSRF_TRUSTED_ORIGINS = [
|
||||
'https://*.flatlogic.app',
|
||||
'https://*.flatlogic.run',
|
||||
'https://*.flatlogic.com',
|
||||
'https://*.herokuapp.com',
|
||||
'http://localhost:8000',
|
||||
'http://127.0.0.1:8000',
|
||||
]
|
||||
@ -90,10 +95,7 @@ DATABASES = {
|
||||
}
|
||||
}
|
||||
|
||||
# Use DATABASE_URL if it is set (standard for Heroku)
|
||||
db_from_env = dj_database_url.config(conn_max_age=600)
|
||||
if db_from_env:
|
||||
DATABASES['default'].update(db_from_env)
|
||||
|
||||
|
||||
|
||||
# Password validation
|
||||
|
||||
1
runtime.txt
Normal file
1
runtime.txt
Normal file
@ -0,0 +1 @@
|
||||
python-3.11.2
|
||||
0
static/favicon.ico
Normal file
0
static/favicon.ico
Normal file
Loading…
x
Reference in New Issue
Block a user