save() doesn't save a removed parent-child relationship to self?

2007-11-18 Thread jkossen
Hi, I have a File model with a ManyToManyField to 'self'. Which works great, except that it's possible to add self to the parents (File 3 could add File 3 as a parent, causing an infinite relationship loop). So i came up with a save() method which should remove self from the parents before saving

Re: {{ MEDIA_URL }} empty in templates?

2007-10-20 Thread jkossen
Ah right. With RequestContext() it works. Thanks for the quick reply guys! Much appreciated. --~--~-~--~~~---~--~~ 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@go

{{ MEDIA_URL }} empty in templates?

2007-10-20 Thread jkossen
Hi guys, While i've read in django-developers that MEDIA_URL should now be accessible in templates, it doesn't seem to work for me. I'm using django from svn, currently at revision 6568. I've set MEDIA_URL in settings.py, TEMPLATE_CONTEXT_PROCESSORS is not overridden in my code, and django.core.