No Description
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.

settings.default.py 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. """
  2. Django settings for dnmapper 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 = 'crv*hfx2pkxvq1s!)dbz*hdu+r7u2$y4djf6_#6mm)shk9e!58'
  15. # SECURITY WARNING: don't run with debug turned on in production!
  16. DEBUG = True
  17. TEMPLATE_DEBUG = True
  18. ALLOWED_HOSTS = []
  19. STATICFILES_DIRS = (
  20. 'static/',
  21. )
  22. # Application definition
  23. INSTALLED_APPS = (
  24. 'django.contrib.admin',
  25. 'django.contrib.auth',
  26. 'django.contrib.contenttypes',
  27. 'django.contrib.sessions',
  28. 'django.contrib.messages',
  29. 'django.contrib.staticfiles',
  30. 'bgpdata',
  31. 'tastypie',
  32. )
  33. API_LIMIT_PER_PAGE = 100
  34. MIDDLEWARE_CLASSES = (
  35. 'django.contrib.sessions.middleware.SessionMiddleware',
  36. 'django.middleware.common.CommonMiddleware',
  37. 'django.middleware.csrf.CsrfViewMiddleware',
  38. 'django.contrib.auth.middleware.AuthenticationMiddleware',
  39. 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
  40. 'django.contrib.messages.middleware.MessageMiddleware',
  41. 'django.middleware.clickjacking.XFrameOptionsMiddleware',
  42. )
  43. ROOT_URLCONF = 'dnmapper.urls'
  44. WSGI_APPLICATION = 'dnmapper.wsgi.application'
  45. # Database
  46. # https://docs.djangoproject.com/en/1.7/ref/settings/#databases
  47. DATABASES = {
  48. 'default': {
  49. 'ENGINE': 'django.db.backends.sqlite3',
  50. 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
  51. }
  52. }
  53. # Internationalization
  54. # https://docs.djangoproject.com/en/1.7/topics/i18n/
  55. LANGUAGE_CODE = 'de-de'
  56. TIME_ZONE = 'CET'
  57. USE_I18N = True
  58. USE_L10N = True
  59. USE_TZ = True
  60. TEMPLATE_DIRS = (
  61. 'templates/',
  62. )
  63. # Static files (CSS, JavaScript, Images)
  64. # https://docs.djangoproject.com/en/1.7/howto/static-files/
  65. STATIC_URL = '/static/'