Commit 30c0357f authored by Xavier Calabia's avatar Xavier Calabia

home page now renders, nothing in it yet

parent ccbfc173
<html>
<<title>The Will of the Wisps Wiki</title>
</html>
from django.conf.urls import url
from .views import home_page
urlpatterns = [
url(r'$', home_page, name='home_page'),
]
# Create your views here.
from django.shortcuts import render from django.shortcuts import render
# Create your views here. def home_page(request):
return render(request, 'heroes.html')
...@@ -13,9 +13,10 @@ Including another URLconf ...@@ -13,9 +13,10 @@ Including another URLconf
1. Import the include() function: from django.conf.urls import url, include 1. Import the include() function: from django.conf.urls import url, include
2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
""" """
from django.conf.urls import url from django.conf.urls import include,url
from django.contrib import admin from django.contrib import admin
urlpatterns = [ urlpatterns = [
url(r'^admin/', admin.site.urls), url(r'^admin/', admin.site.urls),
url(r'', include('heroes.urls')),
] ]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment