2024-03-19 14:14:43 +05:30
|
|
|
# Set "DEBUG=False" for production
|
|
|
|
|
DEBUG=True
|
|
|
|
|
|
|
|
|
|
# Get a secure secret key from https://djecrety.ir
|
|
|
|
|
SECRET_KEY=django-insecure-j8op9)1q8$1&0^s&p*_0%d#pr@w9qj@1o=3#@d=a(^@9@zd@%j
|
|
|
|
|
|
|
|
|
|
# Don't use "*" for ALLOWED_HOSTS in production
|
|
|
|
|
ALLOWED_HOSTS=www.example.com,example.com,*
|
2024-06-06 14:28:31 +05:30
|
|
|
|
|
|
|
|
CSRF_TRUSTED_ORIGINS=
|
2024-03-19 14:14:43 +05:30
|
|
|
|
2025-02-07 09:50:10 +05:30
|
|
|
TIME_ZONE=Asia/Kolkata
|
2024-03-19 14:14:43 +05:30
|
|
|
|
2025-02-07 09:50:10 +05:30
|
|
|
# Database URL
|
2024-03-19 14:14:43 +05:30
|
|
|
DATABASE_URL=postgresql://user:password@localhost:5432/dbname
|
|
|
|
|
|
|
|
|
|
# ----OR----
|
|
|
|
|
|
2024-05-07 12:23:36 +05:30
|
|
|
# Database Configuration
|
2025-02-07 09:50:10 +05:30
|
|
|
DB_INIT_PASSWORD=d3f6a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d
|
2024-03-19 14:14:43 +05:30
|
|
|
DB_ENGINE=django.db.backends.postgresql
|
|
|
|
|
DB_NAME=dbname
|
|
|
|
|
DB_USER=user
|
|
|
|
|
DB_PASSWORD=password
|
|
|
|
|
DB_HOST=localhost
|
|
|
|
|
DB_PORT=5432
|
|
|
|
|
|
2025-02-26 10:53:49 +05:30
|
|
|
# GCP Storage for Media Configuration
|
|
|
|
|
# GOOGLE_APPLICATION_CREDENTIALS="pathToYourServiceAccountJsonFile"
|
|
|
|
|
# GS_BUCKET_NAME="yourGCPBucketName"
|
|
|
|
|
# DEFAULT_FILE_STORAGE="horilla.horilla_backends_gcp.PrivateMediaStorage"
|
|
|
|
|
# MEDIA_URL="https://storage.cloud.google.com/yourGCPBucketName/media"
|
|
|
|
|
# MEDIA_ROOT="https://storage.cloud.google.com/yourGCPBucketName/media"
|
|
|
|
|
# NAMESPACE="private"
|
|
|
|
|
|
|
|
|
|
|
2024-03-19 14:14:43 +05:30
|
|
|
|
|
|
|
|
# Supportted Formats for DATABASE_URL :
|
|
|
|
|
|
|
|
|
|
# PostgreSQL: ``postgres[ql]?://`` or ``p[g]?sql://``
|
|
|
|
|
# PostGIS: ``postgis://``
|
|
|
|
|
# MySQL: ``mysql://`` or ``mysql2://``
|
|
|
|
|
# MySQL (GIS): ``mysqlgis://``
|
|
|
|
|
# MySQL Connector Python from Oracle: ``mysql-connector://``
|
|
|
|
|
# SQLite: ``sqlite://``
|
|
|
|
|
# SQLite with SpatiaLite for GeoDjango: ``spatialite://``
|
|
|
|
|
# Oracle: ``oracle://``
|
|
|
|
|
# Microsoft SQL Server: ``mssql://``
|
|
|
|
|
# PyODBC: ``pyodbc://``
|
|
|
|
|
# Amazon Redshift: ``redshift://``
|
|
|
|
|
# LDAP: ``ldap://``
|