Best practices question on django-guardian and permissions

2014-11-17 Thread T Kwn
Hi all, I'm a relative beginner to django. For a test project I'm making an app where users can create leaderboards. Owners of the leaderboards can add other people as members and delete boards. Members of the leaderboards can update entries. Anonymous people can view the leaderboards. I

Beginner: Creating a form with variable number of checkboxes

2014-12-02 Thread T Kwn
I'm creating a page where the user can add other users to a group. I am able to dynamically fetch all users and list them on a template with checkboxes. I'm getting stuck creating a form for them however. I read this post (among others) http://stackoverflow.com/questions/19947538/django-form-wi

Beginner: What are the pitfalls of using an html form without using django forms? I.e. form.py

2014-12-08 Thread T Kwn
I'm created a form where a user can add or remove other users from a group. Because the number of available users is unknown beforehand, I needed to create a checkbox form where the number of elements is dynamic. However, I couldn't figure out how to do it so I just used an html form and some .

Re: Beginner: What are the pitfalls of using an html form without using django forms? I.e. form.py

2014-12-09 Thread T Kwn
Thx for the explanation. I thought as much but as a beginner am always worried about some unforseen consequence. On Tuesday, December 9, 2014 1:26:47 AM UTC-8, Daniel Roseman wrote: > > On Tuesday, 9 December 2014 01:37:44 UTC, T Kwn wrote: >> >> I'm created a form where a

Cache middleware problem

2014-12-18 Thread T Kwn
I have a list view where I can add or delete objects. I found that if the cache middleware is included: 'django.middleware.cache.UpdateCacheMiddleware', 'django.middleware.cache.FetchFromCacheMiddleware' The page doesn't operate properly. Basically deleted objects don't always disappear. Added