Can't set static file directory.

2013-01-05 Thread Mārtiņš Jakubovičs
Hello. I try a lot of things and can't understand, why not working STATIC_ROOT and MEDIA_ROOT in settings.py. I want, that all my media and static folders is in different place that python files, so I set media, static and templates to different place. Templates TEMPLATE_DIRS works well, bet

Re: User permisions

2012-12-07 Thread Mārtiņš Jakubovičs
Hello! Yes, I used what* *sacrac show: https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.save_model In my "Item" class I added "owner" charfield and in admin.py did this: class ItemAdmin(admin.ModelAdmin): ... # save user

User permisions

2012-12-06 Thread Mārtiņš Jakubovičs
Hello! I can't find information about that, so I post my problem here. I have app "items" and in admin page I create two users with permisions to create, edit and delete "items". But I want that only user who create item can edit and delete id. How can I do that? Thanks. -- You received