settings.py 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. """
  2. Misago settings for {{ project_name }} project.
  3. For more information on this file, see
  4. https://docs.djangoproject.com/en/{{ docs_version }}/topics/settings/
  5. For the full list of settings and their values, see
  6. https://docs.djangoproject.com/en/{{ docs_version }}/ref/settings/
  7. """
  8. # Import Misago defaults for overriding
  9. from misago.conf.defaults import *
  10. # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
  11. import os
  12. BASE_DIR = os.path.dirname(os.path.dirname(__file__))
  13. # Quick-start development settings - unsuitable for production
  14. # See https://docs.djangoproject.com/en/{{ docs_version }}/howto/deployment/checklist/
  15. # SECURITY WARNING: keep the secret key used in production secret!
  16. SECRET_KEY = '{{ secret_key }}'
  17. # SECURITY WARNING: don't run with debug turned on in production!
  18. DEBUG = True
  19. TEMPLATE_DEBUG = True
  20. ALLOWED_HOSTS = []
  21. # Application definition
  22. ROOT_URLCONF = '{{ project_name }}.urls'
  23. WSGI_APPLICATION = '{{ project_name }}.wsgi.application'
  24. # Database
  25. # https://docs.djangoproject.com/en/{{ docs_version }}/ref/settings/#databases
  26. DATABASES = {
  27. 'default': {
  28. 'ENGINE': 'django.db.backends.sqlite3',
  29. 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
  30. }
  31. }
  32. # Internationalization
  33. # https://docs.djangoproject.com/en/{{ docs_version }}/topics/i18n/
  34. LANGUAGE_CODE = 'en-us'
  35. # Static files (CSS, JavaScript, Images)
  36. # https://docs.djangoproject.com/en/{{ docs_version }}/howto/static-files/
  37. STATIC_URL = '/static/'