-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
27 lines (21 loc) · 886 Bytes
/
env.example
File metadata and controls
27 lines (21 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Django Settings
DJANGO_SECRET_KEY=your-secret-key-here
DJANGO_DEBUG=True
DJANGO_ALLOWED_HOSTS=localhost,127.0.0.1,your-app.onrender.com
# Database Configuration
# When DEBUG=True: Uses SQLite automatically
# When DEBUG=False: Uses PostgreSQL from DATABASE_URL
DATABASE_URL=postgresql://username:password@hostname:port/database_name
# Database individual settings (fallback for PostgreSQL)
DB_NAME=your_database_name
DB_USER=your_database_user
DB_PASSWORD=your_database_password
DB_HOST=your_database_host
DB_PORT=5432
# CORS Settings
# Add all domains that will make requests to your API
DJANGO_CORS_ALLOWED_ORIGINS=http://localhost:3000,http://127.0.0.1:3000,http://localhost:8080,http://127.0.0.1:8080,http://localhost:8081,http://127.0.0.1:8081,https://your-app.onrender.com,https://dev.codeleap.co.uk
# Timezone
TZ=UTC
# JWT Settings
JWT_SECRET_KEY=your-jwt-secret-key-here