Django GeoRSS syndication feed

2010-03-03 Thread Wayne Dyck
Has anyone created an example of how to incorporate a GeoRSS feed they would be willing to share? I have seen this link, http://code.djangoproject.com/ticket/6547 and understand that "feed_extra_kwargs" and "item_extra_kwargs" were added to allow this but I am drawing a blank on exactly how to sub

Date-based generic views - UTC handling

2010-02-07 Thread Wayne Dyck
I have a database model in which the datetime entry of an item is stored as a DateTimeField(). This datetime is stored as UTC. In one of my views, which displays details for each entry, I am converting and formatting the UTC time to PST. I just started using generic views and for "django.views.gen

Re: Using Django

2008-11-10 Thread Wayne Dyck
It looks to me like your line 21 is outside the patterns set so it's just a line of code hanging out there on its own. Try this, urlpatterns = patterns('', (r'^$', 'SITENAME.polls.views.current_datetime'), (r'^polls/$', 'SITENAME.polls.views.index'), (r'^polls/(?P\d+)/$', 'SITENAME.p

Re: cannot import name ugettext_lazy

2008-08-28 Thread Wayne Dyck
> No, it wasn't. I'm really not making this up: ugettext_lazy() has been > in trunk since July 4 last year! Bizarre. Okay. I will take your word for it. I am fairly new to Django so I am not excusing the fact that it might simply be ignorance on my part how everything works and the location of th

Re: cannot import name ugettext_lazy

2008-08-28 Thread Wayne Dyck
> Well, it's int django/utils/translation/__init__.py. Specifically: > > http://code.djangoproject.com/browser/django/trunk/django/utils/trans... It looks like it was just checked in a little while ago. I will download the latest from SVN and try that. Thanks. I appreciate it. Wayne --~--~

Re: cannot import name ugettext_lazy

2008-08-28 Thread Wayne Dyck
> I think the original poster's tarball of Django is broken. At least the > 1.0-alpha version is. The 0.96 releases never had ugettext_lazy(). So I should be seeing it at this location django.utils.translation in the latest SVN beta? I browsed the code today on the website and didn't see it in th

cannot import name ugettext_lazy

2008-08-28 Thread Wayne Dyck
A couple of applications I have tried to install fail trying to import ugettext_lazy. Specifically the import line is: django.utils.translation import ugettext_lazy as _ I have seen a number of posts that suggest getting the latest source from SVN. I have Django version 96.2 and I have downloade