Re: Authenticating django users from Apache using cookies

2009-02-25 Thread Karantir
http://www.djangosnippets.org/snippets/62/ --~--~-~--~~~---~--~~ 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

Authenticating django users from Apache using cookies

2009-02-23 Thread Karantir
Hi guys. I have a question regarding the article about authenticating against django's user database from Apache (http://docs.djangoproject.com/en/ dev/howto/apache-auth/#howto-apache-auth). In my project i'm using traditional cookie based authentication model. And i need to restrict user

exclude() method bug

2008-12-04 Thread Karantir
Hi, I've just found strange django behaviour and want to understand is it a bug or an inconvenient feature. I have two models -- Place and Item bound through the intermediate table ItemPlace (that stores additional field -- quantity). Physically it describes some quantity of items lying on the

FileField issues

2008-10-27 Thread Karantir
Hi guys. Could you help me please with understanding of FileField behaviour. I'm slightly confused. For test purposes i use this simple model class Test(models.Model): name = models.CharField(max_length=255) template = models.FileField(upload_to='upload') Then i'm trying to test

Re: Custom SQL issues

2008-07-21 Thread Karantir
I've just find out, that explicit transaction.commit() in my view eliminates the problem. But i want django to commit pending transactions automatically. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: Custom SQL issues

2008-07-21 Thread Karantir
adding transaction.commit_unless_management() to the end of my move() function solve the problem. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Custom SQL issues

2008-07-21 Thread Karantir
Hi, guys ) I'm expecting some troubles with performing custom SQL. Could you help me please? I'm using nested sets method to store tree in Postgres DB. So i've wrote decorators for tree model manager to perform generic tree functions like move, create, delete etc. It's strange, but when i'm

Re: assertRaises() in django unittest framework doesn't catch exceptions

2008-03-27 Thread Karantir
And here is a bit of my testcase [code] self.assertRaises(RevisionNotStarted, self.documents[0].fix_revision()) [/code] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

assertRaises() in django unittest framework doesn't catch exceptions

2008-03-27 Thread Karantir
Hi, I use unittest framework and recently i've faced strange issue. I use asserRaises() method to ensure that my model methods raises appropriate exceptions. And methods raises, but asserRaises() doesn't catch them, therefore i see an error with following traceback