Admin and permissions on many to many relationships.

2009-05-29 Thread will0
Dear All, Take two models - "Contact" which has a many to many relationship with "MailList" (defined on MailList). When a user who only has permissions to delete from Contact attempts to delete any contact, whether or not they're in a mail list, they get a permission denied message. """ Deleting

Re: django and database views

2009-02-18 Thread will0
On Jan 6, 12:47 am, drakkan wrote: > On 6 Gen, 00:41, drakkan wrote: > > Suppose I want to delete an user. This user is in table1 and so in > databaseview too. Django default is to do adeletecascade so it tries > to remove the user from table1, databaseview and auth_user: it fails > when try

Re: Admin template and Apache

2009-02-13 Thread will0
Hi May. You'll need to make the admin media accessible from and set ADMIN_MEDIA_PREFIX correctly. For instance, I keep my admin media folder in my media folder. I therefore have: ADMIN_MEDIA_PREFIX = 'http://myserver/media/admin/' As for the urlconf error, just go back to (r'^admin/(.*)', admi

multiple projects erroneously using same model module

2009-02-11 Thread will0
Hi all I've got two projects - one is a branch of the other, on the same machine. They use different databases. Strangely, if I run django-admin.py syncdb or "python manage.py syncdb" in the branch project, it reads the models from the original version, however if I run "python manage.py sqlall

Multiple sites - same code, different templates

2008-12-12 Thread will0
Hi all I can't figure out how to change TEMPLATE_DIRS according to the URL used. My purpose is to view two versions of the same site, e.g. mysite/v1/ and mysite/v2/, but keep the same codebase. This is just for development so people in several countries can view the site and put in their opinion