So let's register our new view set with a URL so it can be accessed from the
browser open up the URLs dot py file since we already have our views module
imported to the URLs all we need to do to register our view set is to add a new line
below the router that we created previously
so let's register our view set by typing router dot register and we'll call our
view set the profile view set and let's link that up to views dot user profile
view set
unlike the hello view set that we've registered previously we don't
need to specify a base name argument and this is because we have in our
view set a query set object if you provide the query set then Django rest
framework can figure out the name from the model that's assigned to it so you
only need to specify the base name if you are creating a view set that doesn't
have a query set or if you want to override the name of the query set that
is associated to it
Okay so save the URLs dot py file and that's all we need
to do to register our view set with a URL