r90443 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r90442‎ | r90443 | r90444 >
Date:08:12, 20 June 2011
Author:rfaulk
Status:deferred
Tags:
Comment:
Added documentation
Modified paths:
  • /trunk/fundraiser-statistics/fundraiser-scripts/web_reporting/settings.py (modified) (history)
  • /trunk/fundraiser-statistics/fundraiser-scripts/web_reporting/urls.py (modified) (history)
  • /trunk/fundraiser-statistics/fundraiser-scripts/web_reporting/views.py (modified) (history)

Diff [purge]

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+
318 from django.shortcuts import render_to_response
419 from django.http import Http404
520 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 @@
9898 'django.contrib.messages',
9999 'campaigns',
100100 'tests',
 101+ 'LML',
 102+ 'live_results',
101103 # Uncomment the next line to enable the admin:
102104 'django.contrib.admin',
103105 # Uncomment the next line to enable admin documentation:
Index: trunk/fundraiser-statistics/fundraiser-scripts/web_reporting/urls.py
@@ -1,12 +1,16 @@
22 # This also imports the include function
33 from django.conf.urls.defaults import *
 4+from django.conf import settings
45
56 from django.contrib import admin
67 admin.autodiscover()
78
89 urlpatterns = patterns('',
 10+ (r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT }),
911 (r'^$', 'views.index'),
1012 (r'^campaigns/', include('campaigns.urls')),
1113 (r'^tests/', include('tests.urls')),
 14+ (r'^live_stats/', include('live_results.urls')),
 15+ (r'^LML/', include('LML.urls')),
1216 (r'^admin/', include(admin.site.urls)),
1317 )

Status & tagging log