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
Post a Comment