Guest User

Untitled

a guest
Jul 18th, 2018
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.08 KB | None | 0 0
  1. cat settings.py
  2. import os.path
  3.  
  4. DEPLOY_PATH = os.path.dirname(__file__) # This is the base dir for everything
  5.  
  6. ADMINS = (
  7. # ('Your Name', 'your_email@domain.com'),
  8. )
  9.  
  10. DATABASE_ENGINE = 'mysql'
  11. DATABASE_NAME = 'aur2'
  12. DATABASE_USER = 'aur2' # Not used with sqlite3.
  13. DATABASE_PASSWORD = 'xxx' # Not used with sqlite3.
  14. DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3.
  15. DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3.
  16.  
  17. MANAGERS = ADMINS
  18.  
  19. TIME_ZONE = 'America/Chicago'
  20.  
  21. LANGUAGE_CODE = 'en-us'
  22.  
  23. SITE_ID = 1
  24.  
  25. USE_I18N = True
  26.  
  27. # Absolute path to the directory that holds media.
  28. MEDIA_ROOT = os.path.join(DEPLOY_PATH, 'media')
  29. MEDIA_URL = '/media/'
  30.  
  31. # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
  32. # trailing slash.
  33. ADMIN_MEDIA_PREFIX = '/media/admin/'
  34.  
  35. # Make this unique, and don't share it with anybody.
  36. SECRET_KEY = ''
  37.  
  38. # List of callables that know how to import templates from various sources.
  39. TEMPLATE_LOADERS = (
  40. 'django.template.loaders.filesystem.load_template_source',
  41. 'django.template.loaders.app_directories.load_template_source',
  42. )
  43.  
  44. MIDDLEWARE_CLASSES = (
  45. 'django.middleware.common.CommonMiddleware',
  46. 'django.contrib.sessions.middleware.SessionMiddleware',
  47. 'django.contrib.auth.middleware.AuthenticationMiddleware',
  48. 'django.middleware.doc.XViewMiddleware',
  49. )
  50.  
  51. ROOT_URLCONF = 'archlinux.urls'
  52.  
  53. TEMPLATE_DIRS = (
  54. os.path.join(DEPLOY_PATH, 'templates'),
  55. )
  56.  
  57. FIXTURE_DIRS = (
  58. os.path.join(DEPLOY_PATH, 'fixtures'),
  59. )
  60.  
  61. INSTALLED_APPS = (
  62. 'django.contrib.auth',
  63. 'django.contrib.contenttypes',
  64. 'django.contrib.sessions',
  65. 'django.contrib.admin',
  66. 'django.contrib.sites',
  67. 'aur',
  68. 'registration',
  69. 'aurprofile',
  70. 'tagging',
  71. )
  72.  
  73. # Third party settings
  74.  
  75. # django-registration
  76. ACCOUNT_ACTIVATION_DAYS = 1
  77.  
  78. # django-tagging
  79. FORCE_LOWERCASE_TAGS = True
  80.  
  81. # Import local settings if they exist
  82. try:
  83. from settings_local import *
  84. except ImportError:
  85. pass
Add Comment
Please, Sign In to add comment