Monday, August 15, 2011

Re: Changing App/Model Names and Sort Order in index.html

hello,

your question indicates that you have a limitedknowledge of django
templates and template tags. python code is ot supported in templates,
so your string.replace won't work.

to change the order: https://docs.djangoproject.com/en/dev/ref/models/querysets/#order-by

konstantin

On Aug 14, 8:27 pm, Lee <lhughe...@gmail.com> wrote:
> Is there an easy way to change "Auth" to "My Authentication App Name"
> in index.html? I tried changing {{ name }} to
> {{ string.replace(name,'Auth','My Authentication App Name') }} but it
> just kills the label completely -- hopefully just a syntax problem.
>
> How about changing the order that the models are list in on this page?
>
> Thanks for any help or ideas.

--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate