Anonymous avatar Anonymous committed 7a1f07b

some restyling and updated requirements.txt for yaml support

Comments (0)

Files changed (4)


 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'),


         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?'


     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."""
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.