Commit 550f0314 authored by Daniel W Bond's avatar Daniel W Bond
Browse files

beginning of demo to fix ux problem where incomplete urls 404

parent 5b490e48
......@@ -26,6 +26,9 @@ urlpatterns = patterns('stepup.views',
# opportunity
url(r'^opportunity/(?P<slug>[^\.]+)', 'opportunity', name = 'view_opportunity'),
# all opportunities
url(r'^opportunity/', 'all_opportunity', name = 'view_all_opportunity'),
# organization
url(r'^organization/(?P<slug>[^\.]+)', 'organization', name = 'view_organization'),
......
......@@ -84,6 +84,15 @@ def opportunity(request, slug):
context_instance = RequestContext(request),
)
# what seems to be a usability issue
@login_required
def all_opportunity(request):
return render_to_response('all_opportunity.html', {
all_opportunity = Opportunity.objects.all(),
},
context_instance = RequestContext(request),
)
@login_required
def person(request, slug):
return render_to_response('person.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