Django GeoRSS syndication feed
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 subclass the base class in order to add a lat and lon point. Wayne -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.
Date-based generic views - UTC handling
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.generic.date_based.archive_month" there is the "date_field" argument which indicates the name of the DateTimeField in the QuerySet's model that the view should use. Is there an easy way to format this date_field to my local time zone i.e. PST? I have also tried using the "date" and "time" filters within the template itself, however, those are still UTC. Any pointers would be appreciated. Wayne -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.
Re: Using Django
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.polls.views.detail'), (r'^polls/(?P\d+)/results/$', 'SITENAME.polls.views.results'), (r'^polls/(?P\d+)/vote/$', 'SITENAME.polls.views.vote'), (r'^admin/(.*)', admin.site.root), ) Wayne --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: cannot import name ugettext_lazy
> 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 the functions. I will download the latest from SVN, try again, and let you know how I make out. Thanks again for your information. Wayne --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: cannot import name ugettext_lazy
> 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 --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: cannot import name ugettext_lazy
> 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 there. Is this something simple that I am missing? Wayne --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
cannot import name ugettext_lazy
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 downloaded the latest 1.0 alpha (or something close to that) from SVN. The ugettext_lazy is missing from both. Any help or suggestions on what I have missed would be appreciated. Thanks. Wayne --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---