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
> /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
> 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",
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
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
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
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
7 matches
Mail list logo