Re: Comma instead of dot in FloatField

2009-04-17 Thread Aidas Bendoraitis [aka Archatas]
Hi Knut, Actually, what would help you here is custom model field + form field + widget. For example, the following combination based on Babel (http:// babel.edgewall.org/) could be used: class DecimalWidget(forms.TextInput): def render(self, name, value, attrs=None): locale=get_cur

Re: Clean URL Design: List Views and Details Views

2009-04-16 Thread Aidas Bendoraitis [aka Archatas]
> /products/?action=add > /products/?action=print > /products/?action=rss > /products/myproduct/?action=rss > /products/myproduct/?action=print > Those are examples of ugly (not clean anymore) urls. In such a case, you would need to have a wrapper view in Django, which would return the results of

Re: Clean URL Design: List Views and Details Views

2009-04-16 Thread Aidas Bendoraitis [aka Archatas]
> 8. Using parameters >      /products/?sort=popularity >      /products/?filter=featured >      /products/?page=5 >      /products/add/ >      /products/myproduct/ >      /products/myanotherproduct/ In this case, you still need to have a black list of words like "add", "export", "print", "rss",

Re: Clean URL Design: List Views and Details Views

2009-04-16 Thread Aidas Bendoraitis [aka Archatas]
Here are the advantages and disadvantages I see myself: > 1. One of the approaches is to use special symbols for the controlling > words, which are not allowed in slugs, like in last.fm or wikipedia > does. (+) url rules for the app might be defined in a separate file (+) shortness (-) unusual/un

Re: Backwards relationship doesn't work on one of the development machines

2007-09-21 Thread Archatas
cts.filter(**someothercomplexfilter)]) class CCC(models.Model): aaa = models.ForeignKey(AAA, default=get_default_id, limit_choices_to={'id__in': get_limited_ids}) some_choice = models.IntegerField(choices=ChoiceListSimulator()) Regards, Aidas Bendoraitis [aka Archatas] On

Re: FileBrowser Test Version

2006-07-11 Thread Archatas
ecause all the uploaded images are being accessed with additional slash at the end of the URL. That were my notices. But on the whole, great work! Aidas Bendoraitis [aka Archatas] patrickk wrote: > today we´ve finished the test version of our django filebrowser. > > some screensho

Re: Internalization: Two DB tables for one Model?

2006-06-07 Thread Archatas
For better understanding of the second and the third ways of creating multilingual models I mentioned, you can read the sub-article "Database" in the "Internationalization Primer" at http://digital-web.com/articles/internationalization_primer/ In my opinion, internalization is very important feat