          Handle GET requests.
          """
          return "Successful response to GET request because throttle is not yet active."
      
  class LoggedinView(View):
      
      permissions = (IsAuthenticated, )
      def get(self, request):
          return 'Logged in or not?' 
</s> remove     7. A basic example using permissions. You can login with **'test', 'test'.** 
 </s> add     7. A basic example using permissions. </s> remove     url(r'^loggedin$', LoggedinView.as_view(), name='loggedin-resource'),
 </s> add     url(r'^loggedin$', LoggedInExampleView.as_view(), name='loggedin-resource'), </s> remove from permissionsexample.views import PermissionsExampleView, ThrottlingExampleView, LoggedinView
 </s> add from permissionsexample.views import PermissionsExampleView, ThrottlingExampleView, LoggedInExampleView </s> remove 
 </s> add yaml==3.10
class LoggedInExampleView(View):
    """
    You can login with **'test', 'test'.** 
    """
          Handle GET requests.
          """
          return "Successful response to GET request because throttle is not yet active."
      
class LoggedInExampleView(View):
    """
    You can login with **'test', 'test'.** 
    """
class LoggedInExampleView(View):
    """
    You can login with **'test', 'test'.** 
    """
      permissions = (IsAuthenticated, )
      def get(self, request):
          return 'Logged in or not?' 
keep keep keep keep replace replace keep keep keep
 some restyling and updated requirements.txt for yaml support 
examples/permissionsexample/views.py