Index: trunk/fundraiser-statistics/fundraiser-scripts/web_reporting/views.py |
— | — | @@ -1,4 +1,19 @@ |
2 | | -# Create your views here. |
| 2 | +""" |
| 3 | + DJANGO VIEW DEFINITIONS: |
| 4 | + ======================== |
| 5 | + |
| 6 | + A very basic home url view for the Fundraiser Web Reporting |
| 7 | + |
| 8 | + Views: |
| 9 | + |
| 10 | + index -- Simply calls the index template that links to the functional pieces of web reporting |
| 11 | + |
| 12 | +""" |
| 13 | + |
| 14 | +__author__ = "Ryan Faulkner" |
| 15 | +__revision__ = "$Rev$" |
| 16 | +__date__ = "June 20th, 2011" |
| 17 | + |
3 | 18 | from django.shortcuts import render_to_response |
4 | 19 | from django.http import Http404 |
5 | 20 | from django.shortcuts import render_to_response, get_object_or_404 |
Index: trunk/fundraiser-statistics/fundraiser-scripts/web_reporting/settings.py |
— | — | @@ -97,6 +97,8 @@ |
98 | 98 | 'django.contrib.messages', |
99 | 99 | 'campaigns', |
100 | 100 | 'tests', |
| 101 | + 'LML', |
| 102 | + 'live_results', |
101 | 103 | # Uncomment the next line to enable the admin: |
102 | 104 | 'django.contrib.admin', |
103 | 105 | # Uncomment the next line to enable admin documentation: |
Index: trunk/fundraiser-statistics/fundraiser-scripts/web_reporting/urls.py |
— | — | @@ -1,12 +1,16 @@ |
2 | 2 | # This also imports the include function |
3 | 3 | from django.conf.urls.defaults import * |
| 4 | +from django.conf import settings |
4 | 5 | |
5 | 6 | from django.contrib import admin |
6 | 7 | admin.autodiscover() |
7 | 8 | |
8 | 9 | urlpatterns = patterns('', |
| 10 | + (r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT }), |
9 | 11 | (r'^$', 'views.index'), |
10 | 12 | (r'^campaigns/', include('campaigns.urls')), |
11 | 13 | (r'^tests/', include('tests.urls')), |
| 14 | + (r'^live_stats/', include('live_results.urls')), |
| 15 | + (r'^LML/', include('LML.urls')), |
12 | 16 | (r'^admin/', include(admin.site.urls)), |
13 | 17 | ) |