Web stuff is once again working with the development server. This is mostly useful for the admin interface.

This commit is contained in:
Greg Taylor 2008-12-15 04:43:48 +00:00
parent 5249f27074
commit 714804e253
7 changed files with 12 additions and 10 deletions

View file

@ -8,7 +8,9 @@ class NewsTopic(models.Model):
"""
name = models.CharField(max_length=75, unique=True)
description = models.TextField(blank=True)
icon = models.ImageField(upload_to='newstopic_icons', default='newstopic_icons/default.png', blank=True, help_text="Image for the news topic.")
icon = models.ImageField(upload_to='newstopic_icons',
default='newstopic_icons/default.png',
blank=True, help_text="Image for the news topic.")
def __str__(self):
try:

View file

@ -1,6 +1,6 @@
from django.conf.urls.defaults import *
urlpatterns = patterns('webapps.news.views',
urlpatterns = patterns('game.web.apps.news.views',
(r'^show/(?P<entry_id>\d+)/$', 'show_news'),
(r'^archive/$', 'news_archive'),
(r'^search/$', 'search_form'),

View file

@ -13,7 +13,7 @@ from django.contrib.auth.models import User
from django import forms
from django.db.models import Q
from webapps.news.models import NewsTopic, NewsEntry
from game.web.apps.news.models import NewsTopic, NewsEntry
# The sidebar text to be included as a variable on each page. There's got to
# be a better, cleaner way to include this on every page.