Hello,
before a while I tried the new Django feature -- Databrowse. It is 
looked fine, but I found little "bug":

* first, this is my settings: I have set Django to my locale setting 
(ie, TIME_ZONE='Europe/Prague', LANGUAGE_CODE='cs')
* When I try to view data by calendar, I could succesfully select year, 
but selection of month ends with a 404 page.

I looked into Django code and found, that calendar generate URLs with 
month presented as 3-letters text. And that is propably the reason of 
404 page -- in my language I get ugly URLs like:

http://127.0.0.1:8000/databrowse/news/new/calendars/created/2007/b%C5%99e/
http://127.0.0.1:8000/databrowse/news/new/calendars/created/2007/z%C3%A1%C5%99/

It is not so common approach to represent month as 3-letter shortcuts in 
my country. In this situation will be better to represent month as 
number, ie:

http://127.0.0.1:8000/databrowse/news/new/calendars/created/2007/03/
http://127.0.0.1:8000/databrowse/news/new/calendars/created/2007/09/

In django/views/generic/date_based.py I found, that archive_month 
function have parameter month_format, but calendar_view (in 
django/contrib/databrowse.plugins/calendar.py) leave it to default value 
(%b).

Is it possible change the code to generate months in URLs as numbers, 
instead of 3-letter texts please?


Regards
Michal

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to