settings.py 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. """
  2. Django settings for testproject project.
  3. For more information on this file, see
  4. https://docs.djangoproject.com/en/1.6/topics/settings/
  5. For the full list of settings and their values, see
  6. https://docs.djangoproject.com/en/1.6/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/1.6/howto/deployment/checklist/
  15. # SECURITY WARNING: keep the secret key used in production secret!
  16. SECRET_KEY = 'wxl2=un5q24b&*2&6#&+j)$ou5j&k*sfhjoho1888ths^mq82c'
  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 = 'testproject.urls'
  23. WSGI_APPLICATION = 'testproject.wsgi.application'
  24. # Database
  25. # https://docs.djangoproject.com/en/1.6/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/1.6/topics/i18n/
  34. LANGUAGE_CODE = 'en-us'
  35. TIME_ZONE = 'UTC'
  36. # Static files (CSS, JavaScript, Images)
  37. # https://docs.djangoproject.com/en/1.6/howto/static-files/
  38. STATIC_URL = '/static/'