Add idp application and enable admin module

This commit is contained in:
Jerome Schneider 2010-05-31 16:07:59 +02:00
parent a32fcc7755
commit 2f5e89d0ff
6 changed files with 32 additions and 8 deletions

0
idp/__init__.py Normal file
View File

3
idp/models.py Normal file
View File

@ -0,0 +1,3 @@
from django.db import models
# Create your models here.

23
idp/tests.py Normal file
View File

@ -0,0 +1,23 @@
"""
This file demonstrates two different styles of tests (one doctest and one
unittest). These will both pass when you run "manage.py test".
Replace these with more appropriate tests for your application.
"""
from django.test import TestCase
class SimpleTest(TestCase):
def test_basic_addition(self):
"""
Tests that 1 + 1 always equals 2.
"""
self.failUnlessEqual(1 + 1, 2)
__test__ = {"doctest": """
Another way to test that 1 + 1 is equal to 2.
>>> 1 + 1 == 2
True
"""}

1
idp/views.py Normal file
View File

@ -0,0 +1 @@
# Create your views here.

View File

@ -90,6 +90,6 @@ INSTALLED_APPS = (
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
# Uncomment the next line to enable the admin:
# 'django.contrib.admin',
'django.contrib.admin',
'authentic.idp'
)

View File

@ -1,8 +1,6 @@
from django.conf.urls.defaults import *
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Example:
@ -12,6 +10,5 @@ urlpatterns = patterns('',
# to INSTALLED_APPS to enable admin documentation:
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
# (r'^admin/', include(admin.site.urls)),
(r'^admin/', include(admin.site.urls)),
)