Commit 2f94aa08 authored by Santino Campos's avatar Santino Campos

Refactor code to correspond to PEP8 stye guide

parent 4575749f
from django.conf.urls import url from django.conf.urls import url
from .views import homepage from .views import homepage
......
...@@ -4,14 +4,18 @@ from django.shortcuts import render, redirect ...@@ -4,14 +4,18 @@ from django.shortcuts import render, redirect
def homepage(request): def homepage(request):
return render(request, 'homepage.html') return render(request, 'homepage.html')
def detail_sunflowey(request): def detail_sunflowey(request):
return render(request, 'detail_sunflowey.html') return render(request, 'detail_sunflowey.html')
def detail_jester(request): def detail_jester(request):
return render(request, 'detail_jester.html') return render(request, 'detail_jester.html')
def detail_cloud(request): def detail_cloud(request):
return render(request, 'detail_cloud.html') return render(request, 'detail_cloud.html')
def redirect_view(request): def redirect_view(request):
return redirect('/heroes') return redirect('/heroes')
...@@ -43,4 +43,6 @@ class NewVisitorTest(unittest.TestCase): ...@@ -43,4 +43,6 @@ class NewVisitorTest(unittest.TestCase):
self.fail('Finish the test!') self.fail('Finish the test!')
unittest.main()
if __name__ == '__main__':
unittest.main()
...@@ -16,6 +16,7 @@ Including another URLconf ...@@ -16,6 +16,7 @@ Including another URLconf
from django.conf.urls import url, include from django.conf.urls import url, include
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')), 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