Commit d956e29f authored by Daniel W Bond's avatar Daniel W Bond
Browse files

added comments to imports in settings

parent a9c7d0b1
......@@ -3,11 +3,12 @@
# used for django's cryptographic signing, 50 characters long
# you can generate one here http://www.miniwebtool.com/django-secret-key-generator/
SECRET_KEY = ''
# These configurations are partially set by default for a local development environment. Remember to use a strong passphrase for deployment. Use the username and password you configured creating the database when following the README. Change the database, name, host, or port as necessary for deployment.
# These configurations are partially set by default for a local development
# environment. Remember to use a strong passphrase for deployment. Use the
# username and password you configured creating the database when following the
# README. Change the database, name, host, or port as necessary for deployment.
DB_NAME = 'bookshare'
DB_USER = 'bookworm'
DB_PASSWORD = ''
......@@ -16,10 +17,12 @@ DB_HOST = 'localhost'
DB_PORT = ''
# configurations for your piwik tracking server
# if you do not set these, the tracking js will silently break
PIWIK_SITE_ID = ''
PIWIK_URL = ''
# configurations to send email via Amazon SES
# if you do not set these, you simply won't be able to mark listings sold
EMAIL_HOST = 'email-smtp.region-code.amazonaws.com'
EMAIL_HOST_USER = 'ses-smtp-username'
EMAIL_HOST_PASSWORD = 'ses-smtp-password'
# core django imports
from django.conf.urls import patterns, include, url
from .views import HomepageView, ChartsView
from django.views.generic import TemplateView
from django.conf.urls.static import static
from django.conf import settings
from django.contrib import admin
# imports from your apps
from .views import HomepageView, ChartsView
# Uncomment the next two lines to enable the admin:
admin.autodiscover()
handle404 = TemplateView.as_view(template_name="404.html")
......
# standard library imports
from collections import Counter
# core django imports
from django.views.generic import TemplateView
from django.db.models import Sum
# third party imports
from braces.views import LoginRequiredMixin
# imports from your apps
from lookouts.models import Lookout
from trades.models import Listing, Bid
from core.models import Student
from django.views.generic import TemplateView
from braces.views import LoginRequiredMixin
from django.db.models import Sum
from collections import Counter
class HomepageView(TemplateView):
template_name = 'index.html'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment