Nesting custom template tags

2014-03-29 Thread Jon Dufresne
Hi, I am trying to create a custom template tag that generates a repetitive HTML snippet. This tag is an anchor tag "a" with extra classes and styles, plus some logic to apply additional classes and styles. I want the syntax in the template to look something like: {% my_anchor URL %}this is te

Annotate concat() of two fields

2014-03-29 Thread Marc Aymerich
Hi, I want to annotate the concatenation of two string fields, something like Domain.objects.annotate(annotation=F('field1')+F('field2')) however it is not possible to use F expressions on annotate(). I'm trying to accomplish the same thing using extra() however I don't know how to do it right,

ManytoManyField refuses to show up when I syncdb

2014-03-29 Thread willy Hakizimana
when I syncdb and use south schemamigration, I still can't get the ManyToManyField to show up. what am I doing wrong. Any parameters I can pass to make it work? Thank you guys class Products(models.Model): #product_id = models.AutoField(primary_key=True) hs_number = models.CharField(pr

register for mIRC

2014-03-29 Thread CS
Hi everyone, I am new at python and I want to start to learn django. I have small question, how can I register my ID to join #django in mIRC? CS -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Re: Allowed Hosts

2014-03-29 Thread Spindel
Did you find any solution for this? I have the same problem. Den söndagen den 7:e juli 2013 kl. 05:33:09 UTC+2 skrev deJa: > > Hello, > I'm developing an application with 1.6b1 and getting "ERROR: Invalid > HTTP_HOST header: www.foo.com.'.You may need to add u'www.foo.com.' to > ALLOWED_HOSTS.

Django (1.5) login exception (Save with update_fields did not affect any rows)

2014-03-29 Thread AK
In my Django web app (running on Google App Engine), when a new user signs up a User object is created and then that user is authenticated and logged in. Every once in a while, the login function throws an exception (DatabaseError: Save with update_fields did not affect any rows) and I'm not

STATIC and MEDIA

2014-03-29 Thread Jonathan Querubina
Guys What is the best way to configure and make accessible via URL the STATIC and the MEDIA uri? I can`t seem to find a good way, and get so many errors for the both being equal. Can someone send me an example of this configs? Thanks! -- You received this message because you are subscribed