TEMPLATE DOES NOT EXIST - Fixed Error: Django Handling Function-Based View and Requests
Sat May 30 2020 19:00:31 GMT+0000 (Coordinated Universal Time)
Saved by
@ferasbaig
# make sure to define the correct path to your html page when rendering a view
# prev:
def found_or_join_startup(request):
return render(request, 'templates/categories/found-or-join-startup.html')
# templates/ interferes with the filepath that is defined in urls.py
# after fix
def found_or_join_startup(request):
return render(request, 'categories/found-or-join-startup.html')
content_copyCOPY
Comments