Commits

David Larlet committed f2fe7a0

Configure admin for the example and add a .hgignore, thanks Ariel Nunez

Comments (0)

Files changed (4)

+syntax:glob
+
+*.elc
+*.pyc
+*~
+*.orig
+*.log
+*.swp
+*.tmp
+*.DS_Store
+testdb.sqlite
 David Larlet <http://david.larlet.fr>
 Dan Wilson
 Jay Graves
+Ariel Nunez

oauth_examples/provider/settings.py

     'django.contrib.contenttypes',
     'django.contrib.sessions',
     'django.contrib.sites',
+    'django.contrib.admin',
 )

oauth_examples/provider/urls.py

 from django.conf.urls.defaults import *
+from django.contrib import admin
 
 from oauth_provider.views import protected_resource_example
 
+admin.autodiscover()
+
 urlpatterns = patterns('',
     url(r'^oauth/', include('oauth_provider.urls')),
     url(r'^oauth/photo/$', protected_resource_example, name='oauth_example'),
+    (r'^admin/(.*)', admin.site.root),
 )