So I have recently started learning Django, after finishing the tutorial I decided to create my own website and have run into an error that I honestly just don't understand.
The error is:
Error during template rendering
In template /home/phil/Projects/mysite/homepage/templates/_partial.html, error at line 13 Reverse for 'bio' with no arguments not found. 1 pattern(s) tried: ['$bio/']
homepage/templates/_partial.html
<div class="collapse navbar-collapse" id="navbarNavAltMarkup">
<div class="navbar-nav">
<a class="nav-item nav-link active" href="{% url 'home:index'
%}">Home <span class="sr-only">(current)</span></a>
<a class="nav-item nav-link" href="{% url 'home:bio' %}">Bio</a> <!--Attention-->
<a class="nav-item nav-link disabled" href="{% url 'home:index'
%}">Technologies</a>
</div>
</div>
homepage/url.py
from django.views import generic
class IndexView(generic.ListView) :
template_name = 'homepage/index.html'
class BioView(generic.ListView) :
template_name = 'homepage/bio.html'
homepage/urls.py
from django.conf.urls import url
from . import views
app_name = 'home'
urlpatterns = [
url(r'^$', views.IndexView.as_view(), name='index'),
url(r'^bio/', views.BioView.as_view(), name='bio'),
url(r'^skills/', views.SkillsView.as_view(), name='skills'),
]
app/urls.py
from django.conf.urls import include,url
from django.contrib import admin
urlpatterns = [
url(r'^$', include('homepage.urls')),
url(r'^home/$', include('homepage.urls')),
url(r'^admin/', admin.site.urls),
]
As I said I had followed the Django tutorial and honestly can't see what the error is. Index works as expected, but when I call bio or skills it throws this exception.
Edit: adding requested views. :(