Enabled the admin system

This commit is contained in:
Correl Roush 2010-11-22 10:25:44 -05:00
parent 0469b99527
commit 0e5e36698f
4 changed files with 12 additions and 5 deletions

4
dashboard/admin.py Normal file
View file

@ -0,0 +1,4 @@
from codereview.dashboard.models import *
from django.contrib import admin
admin.site.register(Repository)

View file

@ -4,3 +4,6 @@ class Repository(models.Model):
name = models.CharField(max_length=200, unique=True)
path = models.CharField(max_length=255)
type = models.IntegerField(default=0)
def __unicode__(self):
return self.name

View file

@ -55,7 +55,7 @@ MEDIA_URL = ''
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
# trailing slash.
# Examples: "http://foo.com/media/", "/media/".
ADMIN_MEDIA_PREFIX = '/media/'
ADMIN_MEDIA_PREFIX = 'http://phoenixinquis.is-a-geek.org/admin_media/'
# Make this unique, and don't share it with anybody.
SECRET_KEY = 'w*cepy#)iiaion7n!^_zwyc3cy_s89!qz!ey5%avrgg($8o_*y'
@ -91,7 +91,7 @@ INSTALLED_APPS = (
'django.contrib.sites',
'django.contrib.messages',
# Uncomment the next line to enable the admin:
# 'django.contrib.admin',
'django.contrib.admin',
'codereview.dashboard',
'codereview.browser',

View file

@ -1,8 +1,8 @@
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:
@ -15,5 +15,5 @@ urlpatterns = patterns('',
# (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)),
)