Hello, I'm writing simple weblog and have some problems. I have the following error when I visit http://127.0.0.1:8000/weblog/ Page not found (404)
Request Method: GET Request URL: http://127.0.0.1:8000/weblog/ No blog.entries available I just don't get it, here are the relevant snippets of the files: settings.py: ----------- ROOT_URLCONF = 'suckmymodule.urls' TEMPLATE_DIRS = ( '/Users/sime/django-projects/suckmymodule/blog/templates', ) INSTALLED_APPS = ( 'django.contrib.admin', 'suckmymodule.blog', ) main urls.py: ------------ from django.conf.urls.defaults import * urlpatterns = patterns('', (r'^admin/', include('django.contrib.admin.urls.admin')), (r'^weblog/', include('suckmymodule.blog.urls')), ) blog/urls.py: ------------ from django.conf.urls.defaults import * info_dict = { 'app_label': 'blog', 'module_name': 'entries', 'date_field': 'pub_date', } urlpatterns = patterns('django.views.generic.date_based', (r'^(?P<year>\d{4})/(?P<month>[a-z]{3})/(?P<day>\w{1,2})/(?P<slug> \w+)/$', 'object_detail', dict(info_dict, slug_field='slug')), (r'^(?P<year>\d{4})/(?P<month>[a-z]{3})/(?P<day>\w{1,2})/$', 'archive_day', info_dict), (r'^(?P<year>\d{4})/(?P<month>[a-z]{3})/$', 'archive_month', info_dict), (r'^(?P<year>\d{4})/$', 'archive_year', info_dict), (r'^/?$', 'archive_index', info_dict), ) models file: ----------- from django.core import meta class Entry(meta.Model): pub_date = meta.DateTimeField() headline = meta.CharField(maxlength=200) slug = meta.SlugField(prepopulate_from=('headline',), unique_for_date='pub_date') summary = meta.TextField(help_text="Use raw HTML.") body = meta.TextField(help_text="Use raw HTML.") author = meta.CharField(maxlength=100) class META: verbose_name_plural = 'entries' module_name = 'entries' ordering = ('-pub_date',) get_latest_by = 'pub_date' admin = meta.Admin( list_display = ('pub_date', 'headline', 'author'), ) def __repr__(self): return self.headline def get_absolute_url(self): return "/weblog/%s/%s/" % (self.pub_date.strftime("%Y/%b/% d").lower(), self.slug) I'm overlooking something for sure... Dir structure: suckmymodule (project) - blog (app) - models - templates - blog --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---