summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhardythe12014-03-12 18:09:38 +0530
committerhardythe12014-03-12 18:09:38 +0530
commitfd5ed8a1c346243b44cadb3217491515bd9e65cd (patch)
treefa5b1147c1e14e3cc2cddb44072e145170349b67
parent132aaf0a1d055741873ed738b7287dad7635e0e9 (diff)
downloadPython-TBC-Interface-fd5ed8a1c346243b44cadb3217491515bd9e65cd.tar.gz
Python-TBC-Interface-fd5ed8a1c346243b44cadb3217491515bd9e65cd.tar.bz2
Python-TBC-Interface-fd5ed8a1c346243b44cadb3217491515bd9e65cd.zip
making changes to take mysql user name from local.py
-rw-r--r--PythonTBC/settings.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/PythonTBC/settings.py b/PythonTBC/settings.py
index 7c6dbcc..51f4364 100644
--- a/PythonTBC/settings.py
+++ b/PythonTBC/settings.py
@@ -13,13 +13,14 @@ ADMINS = (
MANAGERS = ADMINS
PROJDIR = abspath(dirname(__file__))
+DATABASE_USER = db_user
DATABASE_PASSWORD = db_pass
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'pythontbc', # Or path to database file if using sqlite3.
# The following settings are not used with sqlite3:
- 'USER': 'pythontbc',
+ 'USER': DATABASE_USER,
'PASSWORD': DATABASE_PASSWORD,
'HOST': '', # Empty for localhost through domain sockets or '127.0.0.1' for localhost through TCP.
'PORT': '', # Set to empty string for default.
@@ -118,8 +119,8 @@ TEMPLATE_DIRS = (
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
join(PROJDIR, '../tbc/templates'),
+ join(PROJDIR, '../tbc/static/uploads')
)
-
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',