diff options
author | hardythe1 | 2013-10-28 11:52:38 +0530 |
---|---|---|
committer | hardythe1 | 2013-10-28 11:52:38 +0530 |
commit | 76e013fd4efe5a5262243d4ac10445a1a5d4b1ad (patch) | |
tree | bf96a9ecde01f92e4cb111675ac40296070e7a2d | |
parent | e65878817e29de1e310b3e0f76eca7789c84a327 (diff) | |
download | Python-TBC-Interface-76e013fd4efe5a5262243d4ac10445a1a5d4b1ad.tar.gz Python-TBC-Interface-76e013fd4efe5a5262243d4ac10445a1a5d4b1ad.tar.bz2 Python-TBC-Interface-76e013fd4efe5a5262243d4ac10445a1a5d4b1ad.zip |
removed explicitly specified passwords for db & LDAP
-rw-r--r-- | PythonTBC/settings.py | 5 | ||||
-rw-r--r-- | tbc/views.py | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/PythonTBC/settings.py b/PythonTBC/settings.py index 243adf0..7329074 100644 --- a/PythonTBC/settings.py +++ b/PythonTBC/settings.py @@ -1,23 +1,26 @@ # Django settings for PythonTBC project. from os.path import * +from tbc.local import * DEBUG = True TEMPLATE_DEBUG = DEBUG + ADMINS = ( ('Hardik Ghaghada', 'hardik@fossee.in'), ) MANAGERS = ADMINS PROJDIR = abspath(dirname(__file__)) +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': 'root', - 'PASSWORD': 'Pyth0n321', + '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. } diff --git a/tbc/views.py b/tbc/views.py index 2ac4847..b89f315 100644 --- a/tbc/views.py +++ b/tbc/views.py @@ -4,6 +4,7 @@ from django.core.context_processors import csrf from django.contrib.auth import authenticate, login, logout from models import * from tbc.forms import * +from local import * import os import zipfile import StringIO @@ -14,8 +15,6 @@ from email.mime.text import MIMEText def email_send(to,subject,msg): s = smtplib.SMTP('smtp-auth.iitb.ac.in') s.starttls() - LDAP_ID = "hardythe1" - LDAP_PWD = "H+Mghaghada" MAIL_FROM = "textbook@fossee.in" s.login(LDAP_ID, LDAP_PWD) message = MIMEText(msg) |