diff --git a/examples/permissionsexample/urls.py b/examples/permissionsexample/urls.py index c421c7ccaf..33cb9b5f15 100644 --- a/examples/permissionsexample/urls.py +++ b/examples/permissionsexample/urls.py @@ -1,8 +1,8 @@ from django.conf.urls.defaults import patterns, url -from permissionsexample.views import PermissionsExampleView, ThrottlingExampleView, LoggedinView +from permissionsexample.views import PermissionsExampleView, ThrottlingExampleView, LoggedInExampleView urlpatterns = patterns('', url(r'^$', PermissionsExampleView.as_view(), name='permissions-example'), url(r'^throttling$', ThrottlingExampleView.as_view(), name='throttled-resource'), - url(r'^loggedin$', LoggedinView.as_view(), name='loggedin-resource'), + url(r'^loggedin$', LoggedInExampleView.as_view(), name='loggedin-resource'), ) diff --git a/examples/permissionsexample/views.py b/examples/permissionsexample/views.py index ca4561912c..f95c2c8429 100644 --- a/examples/permissionsexample/views.py +++ b/examples/permissionsexample/views.py @@ -29,8 +29,10 @@ def get(self, request): """ return "Successful response to GET request because throttle is not yet active." -class LoggedinView(View): - +class LoggedInExampleView(View): + """ + You can login with **'test', 'test'.** + """ permissions = (IsAuthenticated, ) def get(self, request): return 'Logged in or not?' \ No newline at end of file diff --git a/examples/sandbox/views.py b/examples/sandbox/views.py index f8d87a0bce..29f2e3ce60 100644 --- a/examples/sandbox/views.py +++ b/examples/sandbox/views.py @@ -22,7 +22,7 @@ class Sandbox(View): 4. A generic object store API. 5. A code highlighting API. 6. A blog posts and comments API. - 7. A basic example using permissions. You can login with **'test', 'test'.** + 7. A basic example using permissions. Please feel free to browse, create, edit and delete the resources in these examples.""" diff --git a/requirements.txt b/requirements.txt index 7ae0ee4518..7d5e66828a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,4 +3,4 @@ Django==1.2.4 wsgiref==0.1.2 coverage==3.4 - +yaml==3.10