This question is the sequel of my previous question - Reverse for 'hobbieswithCSS.html' not found. 'hobbieswithCSS.html' is not a valid view function or pattern name (solved)
I have moved from one error (in the title of previous question) to another, (in the title of this question) but hopefully this one will not be that much difficult to solve.
I have this anchor tag on my homepage -
<a href="{% url 'hobbieswithCSS' %}">My Hobbies</a>
I have this view in my views.py file -
def hobbieswithCSS(request):
return render(request,'hobbieswithCSS.html')
And these are my urlpatterns -
urlpatterns = [
url(r'^$', views.index, name='index'),
url(r'^admin/', admin.site.urls),
url(r'^basic_app/',include('basic_app.urls')),
url(r'^logout/$',views.user_logout,name='logout'),
url(r'^hobbies/$', views.hobbieswithCSS, name='hobbieswithCSS'),
]