config_template.py 901 B

123456789101112131415161718192021222324252627282930313233343536373839
  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 = 1
  15. THREADS = 2
  16. #EMAIL SETTINGS
  17. EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
  18. EMAIL_HOST = 'mail.sharix-app.org'
  19. EMAIL_USE_TLS = False
  20. EMAIL_PORT = 465
  21. EMAIL_USE_SSL = True
  22. EMAIL_HOST_USER = 'example@sharix-app.org'
  23. EMAIL_HOST_PASSWORD = '**************'
  24. EMAIL_TO = 'example@sharix-app.org'
  25. #STATIC
  26. from pathlib import Path
  27. import os
  28. BASE_DIR = Path(__file__).resolve().parent.parent
  29. STATIC_URL = '/static/'
  30. STATICFILES_DIRS = [BASE_DIR / "butler/static/"]
  31. STATIC_ROOT = os.path.join(BASE_DIR, "staticfiles")
  32. MEDIA_ROOT = os.path.join(BASE_DIR, "media")
  33. MEDIA_URL = "/media/"