Advertisement
Guest User

Untitled

a guest
Sep 4th, 2015
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.41 KB | None | 0 0
  1. """
  2. Django settings for p1x3l project.
  3.  
  4. For more information on this file, see
  5. https://docs.djangoproject.com/en/1.6/topics/settings/
  6.  
  7. For the full list of settings and their values, see
  8. https://docs.djangoproject.com/en/1.6/ref/settings/
  9. """
  10.  
  11. # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
  12. import os
  13. BASE_DIR = os.path.dirname(os.path.dirname(__file__))
  14.  
  15.  
  16. # Quick-start development settings - unsuitable for production
  17. # See https://docs.djangoproject.com/en/1.6/howto/deployment/checklist/
  18.  
  19. # SECURITY WARNING: keep the secret key used in production secret!
  20. SECRET_KEY = 'something'
  21.  
  22. # SECURITY WARNING: don't run with debug turned on in production!
  23. DEBUG = False
  24.  
  25. TEMPLATE_DEBUG = False
  26.  
  27. ALLOWED_HOSTS = ['server.com','.p1x3l.com']
  28.  
  29.  
  30. # Application definition
  31.  
  32. INSTALLED_APPS = (
  33. 'django.contrib.admin',
  34. 'django.contrib.auth',
  35. 'django.contrib.contenttypes',
  36. 'django.contrib.sessions',
  37. 'django.contrib.messages',
  38. 'django.contrib.staticfiles',
  39. 'blogs',
  40. )
  41.  
  42. MIDDLEWARE_CLASSES = (
  43. 'django.contrib.sessions.middleware.SessionMiddleware',
  44. 'django.middleware.common.CommonMiddleware',
  45. 'django.middleware.csrf.CsrfViewMiddleware',
  46. 'django.contrib.auth.middleware.AuthenticationMiddleware',
  47. 'django.contrib.messages.middleware.MessageMiddleware',
  48. 'django.middleware.clickjacking.XFrameOptionsMiddleware',
  49. )
  50.  
  51. ROOT_URLCONF = 'p1x3l.urls'
  52.  
  53. WSGI_APPLICATION = 'p1x3l.wsgi.application'
  54.  
  55.  
  56. # Database
  57. # https://docs.djangoproject.com/en/1.6/ref/settings/#databases
  58.  
  59. DATABASES = {
  60. 'default': {
  61. 'ENGINE': 'django.db.backends.mysql',
  62. 'NAME': 'p1x3l',
  63. 'USER': 'p1x3l',
  64. 'PASSWORD': 'password'
  65. }
  66. }
  67.  
  68. # Internationalization
  69. # https://docs.djangoproject.com/en/1.6/topics/i18n/
  70.  
  71. LANGUAGE_CODE = 'en-us'
  72.  
  73. TIME_ZONE = 'Europe/Paris'
  74.  
  75. USE_I18N = True
  76.  
  77. USE_L10N = True
  78.  
  79. USE_TZ = True
  80.  
  81.  
  82. # Static files (CSS, JavaScript, Images)
  83. # https://docs.djangoproject.com/en/1.6/howto/static-files/
  84.  
  85. STATIC_URL = '/static/'
  86. MEDIA_URL = '/media/'
  87.  
  88. TEMPLATE_DIRS = (BASE_DIR + '/templates/',)
  89.  
  90. STATIC_ROOT = BASE_DIR + '/static/'
  91. MEDIA_ROOT = BASE_DIR + '/media/'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement