Internal
Public Access
Add tasks.firebugit.com to development server configuration
Added tasks.firebugit.com to: - ALLOWED_HOSTS: Allow Django to serve requests from this domain - CSRF_TRUSTED_ORIGINS: Allow CSRF-protected requests from https://tasks.firebugit.com This enables testing the development server via the tasks.firebugit.com domain. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.5
parent
c50aaa2d81
commit
0147b8644e
@@ -19,11 +19,11 @@ if not SECRET_KEY:
|
|||||||
# SECURITY WARNING: don't run with debug turned on in production!
|
# SECURITY WARNING: don't run with debug turned on in production!
|
||||||
DEBUG = True
|
DEBUG = True
|
||||||
|
|
||||||
# Development-only hosts - production domains should NOT be here
|
# Development-only hosts
|
||||||
ALLOWED_HOSTS = ['localhost', '127.0.0.1', '[::1]', '10.0.2.2', '192.168.1.241']
|
ALLOWED_HOSTS = ['localhost', '127.0.0.1', '[::1]', '10.0.2.2', '192.168.1.241', 'tasks.firebugit.com']
|
||||||
|
|
||||||
# CSRF - for development testing only
|
# CSRF - for development testing only
|
||||||
CSRF_TRUSTED_ORIGINS = os.environ.get('CSRF_TRUSTED_ORIGINS', '').split(',') if os.environ.get('CSRF_TRUSTED_ORIGINS') else []
|
CSRF_TRUSTED_ORIGINS = os.environ.get('CSRF_TRUSTED_ORIGINS', '').split(',') if os.environ.get('CSRF_TRUSTED_ORIGINS') else ['https://tasks.firebugit.com']
|
||||||
|
|
||||||
# Database - SQLite for development
|
# Database - SQLite for development
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
|
|||||||
Reference in New Issue
Block a user