Skip to content

Commit

Permalink
addind django admin
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewsmedina committed Mar 8, 2012
1 parent d367a84 commit 3b047c1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
6 changes: 6 additions & 0 deletions project/services/admin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from django.contrib import admin

from .models import Service


admin.site.register(Service)
5 changes: 1 addition & 4 deletions project/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,7 @@
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
# Uncomment the next line to enable the admin:
# 'django.contrib.admin',
# Uncomment the next line to enable admin documentation:
# 'django.contrib.admindocs',
'django.contrib.admin',
'tastypie',
'services',
)
Expand Down
8 changes: 4 additions & 4 deletions project/urls.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
from django.conf.urls.defaults import patterns, include, url

from services.api import ServiceResource
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

from django.contrib import admin
admin.autodiscover()

service_resource = ServiceResource()

urlpatterns = patterns('',
(r'^api/', include(service_resource.urls)),
# url(r'^admin/', include(admin.site.urls)),
url(r'^admin/', include(admin.site.urls)),
)

0 comments on commit 3b047c1

Please sign in to comment.