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
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 access
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 so
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 this
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"
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 django-users
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
runn
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, send
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
==
9 matches
Mail list logo