Advertisement
Guest User

Untitled

a guest
May 4th, 2017
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.85 KB | None | 0 0
  1. # coding: utf-8
  2. import os
  3. from distutils.sysconfig import get_python_lib
  4.  
  5. DPIA_BASE_PATH = os.getenv('DPIA_BASE_PATH')
  6.  
  7. DEBUG = True
  8. TEMPLATE_DEBUG = DEBUG
  9.  
  10. DATABASE_ENGINE = 'mysql'           # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
  11. DATABASE_NAME = 'dpia'             # Or path to database file if using sqlite3.
  12. DATABASE_USER = 'root'             # Not used with sqlite3.
  13. DATABASE_PASSWORD = 'hola123'         # 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. TEMPLATE_DIRS = (
  18.     str(DPIA_BASE_PATH) + 'admin/templates',
  19.     str(DPIA_BASE_PATH) + 'templates',
  20.     '/usr/share/pyshared/' # Para usar los templates predeterminados de Django como última opción
  21. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement