-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
47 lines (41 loc) · 1.22 KB
/
.env.example
File metadata and controls
47 lines (41 loc) · 1.22 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Django Core Settings
SECRET_KEY=your-secret-key-here-generate-with-django
DEBUG=True
ALLOWED_HOSTS=localhost,127.0.0.1
# Database Configuration
# For SQLite (development):
DB_ENGINE=django.db.backends.sqlite3
DB_NAME=db.sqlite3
# For PostgreSQL (production):
# DB_ENGINE=django.db.backends.postgresql
# DB_NAME=querygrade
# DB_USER=postgres
# DB_PASSWORD=your-password
# DB_HOST=localhost
# DB_PORT=5432
# Redis Configuration
REDIS_URL=redis://127.0.0.1:6379/1
# Celery Configuration
CELERY_BROKER_URL=redis://localhost:6379/0
CELERY_RESULT_BACKEND=redis://localhost:6379/0
# Machine Learning Configuration
ML_ENABLED=True
ML_HYBRID_GRADING=True
ML_AUTO_RETRAIN=True
ML_FEEDBACK_COLLECTION=True
ML_MIN_TRAINING_SAMPLES=50
ML_RETRAIN_THRESHOLD_DAYS=7
ML_PERFORMANCE_THRESHOLD=0.7
# Email Configuration (for password reset)
# For development (prints to console):
EMAIL_BACKEND=django.core.mail.backends.console.EmailBackend
# For production (actual SMTP):
# EMAIL_BACKEND=django.core.mail.backends.smtp.EmailBackend
EMAIL_HOST=smtp.gmail.com
EMAIL_PORT=587
EMAIL_USE_TLS=True
EMAIL_HOST_USER=your-email@example.com
EMAIL_HOST_PASSWORD=your-email-password
DEFAULT_FROM_EMAIL=noreply@querygrade.com
# Security Settings
RATELIMIT_ENABLE=False