settings.py 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. """
  2. Django settings for ztulec project.
  3. For more information on this file, see
  4. https://docs.djangoproject.com/en/1.7/topics/settings/
  5. For the full list of settings and their values, see
  6. https://docs.djangoproject.com/en/1.7/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.7/howto/deployment/checklist/
  13. # SECURITY WARNING: keep the secret key used in production secret!
  14. SECRET_KEY = 'ei3#@ejlp((&tlx2jrscs^wrvpn$y4o-7_(-$a_uc9%j3eux1*'
  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. 'rest_framework',
  28. 'panorama',
  29. 'api'
  30. )
  31. MIDDLEWARE_CLASSES = (
  32. 'django.contrib.sessions.middleware.SessionMiddleware',
  33. 'django.middleware.common.CommonMiddleware',
  34. 'django.middleware.csrf.CsrfViewMiddleware',
  35. 'django.contrib.auth.middleware.AuthenticationMiddleware',
  36. 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
  37. 'django.contrib.messages.middleware.MessageMiddleware',
  38. 'django.middleware.clickjacking.XFrameOptionsMiddleware',
  39. )
  40. ROOT_URLCONF = 'ztulec.urls'
  41. WSGI_APPLICATION = 'ztulec.wsgi.application'
  42. # Database
  43. # https://docs.djangoproject.com/en/1.7/ref/settings/#databases
  44. DATABASES = {
  45. 'default': {
  46. 'ENGINE': 'django.db.backends.sqlite3',
  47. 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
  48. }
  49. }
  50. # Internationalization
  51. # https://docs.djangoproject.com/en/1.7/topics/i18n/
  52. LANGUAGE_CODE = 'fr_fr'
  53. TIME_ZONE = 'UTC'
  54. USE_I18N = True
  55. USE_L10N = True
  56. USE_TZ = True
  57. # Static files (CSS, JavaScript, Images)
  58. # https://docs.djangoproject.com/en/1.7/howto/static-files/
  59. STATIC_URL = '/static/'
  60. # For uploaded panorama
  61. MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
  62. MEDIA_URL = '/media/'
  63. # Relative to MEDIA_ROOT and MEDIA_URL
  64. PANORAMA_TILES_DIR = "tiles"
  65. # Max distance around a point at which to consider reference points
  66. # (in meters)
  67. PANORAMA_MAX_DISTANCE = 30000