Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialmatthew manning
22,451 PointsReceiving error would like to know what i'm doing wrong
Am I missing something?
The task has asked me to create a class called WelcomeView that derives from a View object. It then asks me to create a get method that accepts self and a request object, that contains a pass keyword.
First time i've asked for help! please don't crucify me ^_^
from django.conf.urls import url, include
from . import views
urlpatterns = [
]
from django.views.generic import View
class WelcomeView(views.View):
def get(self,request):
pass
1 Answer
matthew manning
22,451 Pointssorted
matthew manning
22,451 Pointsmatthew manning
22,451 PointsTask instructions:
Great! OK, so now I want you to create a new class named WelcomeView that extends View. Give your view class a get method that accepts self and request. The method can just use pass for now.