diff options
-rw-r--r-- | pyfoss/settings.py | 13 | ||||
-rw-r--r-- | website/views.py | 3 |
2 files changed, 0 insertions, 16 deletions
diff --git a/pyfoss/settings.py b/pyfoss/settings.py index e3813de..7aeb2b5 100644 --- a/pyfoss/settings.py +++ b/pyfoss/settings.py @@ -99,19 +99,6 @@ DATABASES = { # Set to empty string for default. 'PORT': DB_PORT_FOSSEEIN, }, - 'tbcpython': { - # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. - 'ENGINE': 'django.db.backends.mysql', - # Or path to database file if using sqlite3. - 'NAME': DB_NAME_TBC_PYTHON, - 'USER': DB_USER_TBC_PYTHON, - 'PASSWORD': DB_PASS_TBC_PYTHON, - # Empty for localhost through domain sockets or '127.0.0.1' for localhost through TCP. - 'HOST': DB_HOST_TBC_PYTHON, - # Set to empty string for default. - 'PORT': DB_PORT_TBC_PYTHON, - - } } diff --git a/website/views.py b/website/views.py index e69a1b7..cbc0e1b 100644 --- a/website/views.py +++ b/website/views.py @@ -59,10 +59,7 @@ def dispatcher(request, permalink=''): if permalink == 'textbook-companions-for-academics': textbook_companions_for_academics = Page.objects.get( permalink='textbook-companions-for-academics') - completed_books = TBCPYTHONBook.objects.using('tbcpython').values( - 'id', 'title', 'author').filter(approved=True).order_by('id') context['page'] = textbook_companions_for_academics - context['obj'] = completed_books if permalink == '' or permalink == 'home': permalink = 'home' |