config.py 577 B

1234567891011121314151617181920212223242526
  1. #Create file config.py with this setting or rename this file to config.py
  2. #BASE
  3. DEBUG=True
  4. SECRET_KEY='secret-key(absolutely any character)'
  5. ALLOWED_HOSTS = ['127.0.0.1']
  6. CSRF_TRUSTED_ORIGINS = []
  7. #DATABSE
  8. DB_NAME=None
  9. DB_USER=None
  10. DB_PASSWORD=None
  11. DB_HOST=None
  12. #GUNICORN
  13. BIND = "127.0.0.1:8000"
  14. WORKERS = 2
  15. THREADS = 4
  16. #STATIC
  17. from pathlib import Path
  18. import os
  19. BASE_DIR = Path(__file__).resolve().parent.parent
  20. STATIC_URL = '/static/'
  21. STATICFILES_DIRS = [BASE_DIR / "SharixAdmin/static/", BASE_DIR / "tickets/static/"]
  22. STATIC_ROOT = os.path.join(BASE_DIR, "staticfiles")