Django : url main page -


i want add main page login have error

a server error occurred. please contact administrator.

what means ??

url:

urlpatterns = patterns('',     url(r'^§', main_page),     url(r'^mainview/$', mainview.as_view()),                        url(r'^material/(?p<slug>[-\w]+)/$', materialdetailview.as_view(), name='material_material_detail'), ) 

view:

def main_page(request):     template = get_template('registration/main_page.html')     variables = context({ 'user': request.user })     output = template.render(variables)     return httpresponse(ouput) 

pretty sure meant

url(r'^$', main_page), 

Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -