You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

82 lines
1.9 KiB

  1. """
  2. Django settings for pydash 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. # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
  9. import os
  10. BASE_DIR = os.path.dirname(os.path.dirname(__file__))
  11. # Quick-start development settings - unsuitable for production
  12. # See https://docs.djangoproject.com/en/1.6/howto/deployment/checklist/
  13. # SECURITY WARNING: keep the secret key used in production secret!
  14. SECRET_KEY = '1)$crmowu-23tz@i2-d=7tb3t+1u&(pm!lnjyuarki^72h!3af'
  15. # SECURITY WARNING: don't run with debug turned on in production!
  16. DEBUG = True
  17. TEMPLATE_DEBUG = True
  18. ALLOWED_HOSTS = []
  19. # Application definition
  20. INSTALLED_APPS = (
  21. 'django.contrib.admin',
  22. 'django.contrib.auth',
  23. 'django.contrib.contenttypes',
  24. 'django.contrib.sessions',
  25. 'django.contrib.messages',
  26. 'django.contrib.staticfiles',
  27. )
  28. MIDDLEWARE_CLASSES = (
  29. 'django.contrib.sessions.middleware.SessionMiddleware',
  30. 'django.middleware.common.CommonMiddleware',
  31. 'django.middleware.csrf.CsrfViewMiddleware',
  32. 'django.contrib.auth.middleware.AuthenticationMiddleware',
  33. 'django.contrib.messages.middleware.MessageMiddleware',
  34. 'django.middleware.clickjacking.XFrameOptionsMiddleware',
  35. )
  36. ROOT_URLCONF = 'pydash.urls'
  37. WSGI_APPLICATION = 'pydash.wsgi.application'
  38. # Database
  39. # https://docs.djangoproject.com/en/1.6/ref/settings/#databases
  40. DATABASES = {
  41. 'default': {
  42. 'ENGINE': 'django.db.backends.sqlite3',
  43. 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
  44. }
  45. }
  46. # Internationalization
  47. # https://docs.djangoproject.com/en/1.6/topics/i18n/
  48. LANGUAGE_CODE = 'en-us'
  49. TIME_ZONE = 'UTC'
  50. USE_I18N = True
  51. USE_L10N = True
  52. USE_TZ = True
  53. # Static files (CSS, JavaScript, Images)
  54. # https://docs.djangoproject.com/en/1.6/howto/static-files/
  55. STATIC_URL = '/static/'