Sorry! This application is running using: Django (1.0.2) mod_python (3.3.1) Python (2.5)
Interestingly, if I try this url: http://realvelour.com/blog/2009/01/ it works on the live server, but does not display any entries from that month (January). I'm wondering if the queryset is empty or something like that, which might be causing a 404 in the case of just the year, but not the year and month. -dls On Mar 30, 9:02 pm, Graham Dumpleton <graham.dumple...@gmail.com> wrote: > You don't say whether you are using mod_python, mod_wsgi or fastcgi. > Knowing may be important. > > Graham > > On Mar 31, 11:59 am, dls <daniel.si...@gmail.com> wrote: > > > I'm running a Django blog on Webfaction using the Byteflow engine, and > > I'm having an issue where this url: > > >http://realvelour.com/blog/2009/ > > > works fine on my development server (the default Django dev server), > > but triggers a 404 error on the real Apache server. My site has been > > running for a while now, so I feel fairly confident that the basic > > things are set up correctly (ie: database, views, settings, etc..) > > > Below is the urls.py for the blog application (modified to remove > > unrelated lines): > > > from django.conf.urls.defaults import * > > from django.conf import settings > > from django.views.generic import date_based > > > from blog import views > > from blog.models import Post > > > info = { > > 'paginate_by': settings.PAGINATE_BY, > > } > > > info_dict_year = { > > 'queryset': Post.objects.all(), > > 'date_field': 'date', > > 'template_name': 'blog/post_archive_year.html', > > > } > > > urlpatterns = patterns( > > '', > > url(r'^(?P<year>\d{4})/$', date_based.archive_year, > > info_dict_year, name="year_archive"), > > url(r'^$', views.post_list, info, name="post_list"), > > ) > > > any ideas about how this would work on a development server, but break > > on the real server? > > > Thanks! > > --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---