Re: Django template language resolve url

2017-02-22 Thread chris rose
sorry i typed an s in there, here is that code amended > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post

Re: Django template language resolve url

2017-02-22 Thread chris rose
hey xyron.. i replied to your other thread your namespace should actually just be links so the answer should be: -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email

Re: Django template language resolve url

2017-02-22 Thread Luvpreet Singh
Iudovic is right, your syntax is wrong. use {% url 'ytlinks:save_ytlinks' %} the original syntax is , {% url 'namespace:url_name' arguments %} On Thursday, February 16, 2017 at 9:42:14 PM UTC+5:30, xyron wrote: > > Code hier eingeben... > > Hey there, > > I'm searching since more than 12 hours

Re: Django template language resolve url

2017-02-16 Thread ludovic coues
First, I would make sure all namespace are unique. Then I would try {% url "ytlinks:save_ytlink" %} In 'links.views.save_ytlink', I have no idea what links or views are. You might also want to re-read the documentation on urls namespace and included urlconfs https://docs.djangoproject.com/en/1.10

Re: django template language issue

2009-08-17 Thread Adonis
Thanks! On Aug 17, 11:53 am, David Zhou wrote: > On Mon, Aug 17, 2009 at 6:39 AM, Adonis wrote: > > My problem is that even if the 'projects' queryset is empty, it still > > includes the projects.html > > Is there another way to do it? > > If you're using at least Django 1.1, you can use the emp

Re: django template language issue

2009-08-17 Thread David Zhou
On Mon, Aug 17, 2009 at 6:39 AM, Adonis wrote: > My problem is that even if the 'projects' queryset is empty, it still > includes the projects.html > Is there another way to do it? If you're using at least Django 1.1, you can use the empty tag: http://docs.djangoproject.com/en/dev/ref/templates

Re: django template language issue

2009-08-17 Thread James Bennett
On Mon, Aug 17, 2009 at 5:39 AM, Adonis wrote: > My problem is that even if the 'projects' queryset is empty, it still > includes the projects.html > Is there another way to do it? Consult the documentation: http://docs.djangoproject.com/en/dev/ref/templates/builtins/#for-empty -- "Bureaucrat

Re: django template language + greater than? does it exist?

2009-01-13 Thread Stratos
I don't think so, but you can do without it. Use {% ifequal %} and initialize your variable in your views. On Jan 12, 3:44 pm, rabbi wrote: > is there a greater than method in the template language? --~--~-~--~~~---~--~~ You received this message because you are

Re: django template language + greater than? does it exist?

2009-01-13 Thread Matías Costa
Advice: Think twice before adding comparisons in the templates. Conditions and all Bussines Rules(tm) *must* be in the model or the view. Time shows this advice punching your face. On Tue, Jan 13, 2009 at 12:54 PM, Mengsong Chen wrote: > FYI, > > http://www.djangosnippets.org/snippets/12/ > > O

Re: django template language + greater than? does it exist?

2009-01-13 Thread Mengsong Chen
FYI, http://www.djangosnippets.org/snippets/12/ On Tue, Jan 13, 2009 at 11:03 AM, Matías Costa wrote: > > Fast answer: No > > Better awswer: No, but you can get one on djangosnippets.org > > On Mon, Jan 12, 2009 at 2:44 PM, rabbi wrote: > > > > is there a greater than method in the template lan

Re: django template language + greater than? does it exist?

2009-01-13 Thread Matías Costa
Fast answer: No Better awswer: No, but you can get one on djangosnippets.org On Mon, Jan 12, 2009 at 2:44 PM, rabbi wrote: > > is there a greater than method in the template language? > > > --~--~-~--~~~---~--~~ You received this message because you are subscrib

Re: Django template language

2007-10-08 Thread Jerry
On Oct 6, 3:03 am, Bernd <[EMAIL PROTECTED]> wrote: > But now I want to compare 'image/gif'. A gif works like a jpeg. But I > didn't find a solution to write > > {% ifequal mime 'image/jpeg' or 'image/gif'%} > or > {% if mime in ['image/jpeg', 'image/gif] '%} > > Is there any chance to compare

Re: Django template language

2007-10-06 Thread Chris Hoeppner
Since the formatting is quite standard (eg: you'll be using img tags for images and object tags for pdf's, etc...) you could assign it to a var in the view. This might be a violation of the MVC pattern, but it's not much worse than using the same template instead of separate ones, extending a comm

Re: Django template language bundle for TextMate

2005-09-29 Thread Wilson
> Indeed, back on 7/29, someone added "Django templates" to the wishlist > for supported bundles: > http://macromates.com/wiki/pmwiki?n=Main.Bundles Yeah, that was me. I got tired of waiting. :)

Re: Django template language bundle for TextMate

2005-09-29 Thread Felix Ingram
Hi all, Anyone looking for something similar to TextMate's snippets but in Vim may want to have a look at this plugin I wrote: http://vim.sourceforge.net/scripts/script.php?script_id=1318 I wrote it after seeing the Rails shortcuts and getting jealous.  I think it'll work a bit better with Djang

Re: Django template language bundle for TextMate

2005-09-29 Thread Jeremy Dunck
On 9/29/05, Wilson <[EMAIL PROTECTED]> wrote: > Everything is extremely basic and naive right now, but if anybody out > there is editing Django templates and using Textmate, feel free to give > it a whirl and let me know what does and doesn't work. Suggestions or > additions are welcome. I'm usin