Here is my personal/urls.py. I have been trying to solve this for quite a few days. I know it must be a really silly error but help would be appreciated.
from django.conf.urls import url, include
from . import views
urlpatterns = [
url(r'^$',views.index, name='index'),
url(r'contact/',views.contact, name='contact')
url(r'about/',views.about, name='about')
]
And here is the views.py
def index(request):
return render(request, 'personal/home.html')
def contact(request):
return render(request, 'personal/basic.html', {'content':
['http://ift.tt/2upkuqI']})
def about(request):
return render(request, 'personal/about.html', {'content': ["This is an abut
page"]})
Aucun commentaire:
Enregistrer un commentaire