I have my application in django and I want to add a new page called homepage.html so in my project called web in the views.py I added:
def homepage(request):
return render_to_response('homepage.html',
context_instance=RequestContext(request))
Then in web / urls.py I added my url
url(r'^web.views.homepage/', name="homepage"),
Now in my application called crud I have my templates directory in the other folder called crud (so I saw a tutorial that said it was better) and in this directory my homepage.html which I did not put anything just an example text for now
{% extends "base.html" %}
{% block title %} Bienvenido {% endblock %}
{% block content %}
<h3> Bienvenido , esta es una pagina de inicio </h3>
{% endblock %}
The thing is that when it comes to lifting the server it says
url(r'^web.views.homepage/', name="homepage"),
TypeError: url() missing 1 required positional argument: 'view'
Did I miss something?