Re: Best approach to handling different types of Users

2011-08-21 Thread dfolland
Like I said use the "Groups" and then like what was suggested "Permissions". That should handle what your are trying to do and not introduce any conflicts. On Aug 18, 9:17 am, dfolland <dfoll...@nex-tech.com> wrote: > Try using "Groups" that is part of th

Re: Best approach to handling different types of Users

2011-08-18 Thread dfolland
Try using "Groups" that is part of the Django user authentication. https://docs.djangoproject.com/en/dev/topics/auth/ On Aug 18, 6:56 am, Cameron wrote: > Hi, I'm wondering if anyone can help shed some light on the best > approach is too creating different Users. I'm

Re: Allow only one record in admin.ModelAdmin !

2011-05-04 Thread dfolland
Here is a way that I set up a settings model. class YourSettings(models.Model): ID_CHOICES = ((1,'Settings is a single record'),) id = models.IntegerField(primary_key=True, choices=ID_CHOICES, default=1) ... then the other fields for your settings. On May 4, 12:11 am, Toninho Nunes

Re: want small inventory project

2011-04-07 Thread dfolland
You might want to check out Django resources. http://code.djangoproject.com/wiki/DjangoResources#Open-SourceDjangoprojects On Apr 7, 6:11 am, GOUTAM KUMAR RANA wrote: > can any one please give link for some inventory site with source > code.. > > ie user management,

Re: How to concatenate a list of Q objects?

2010-04-09 Thread dfolland
If you are looking for "OR" then use the "Q object". see http://docs.djangoproject.com/en/dev/topics/db/queries/#complex-lookups-with-q-objects On Apr 7, 11:39 am, Daniel wrote: > Hi, > > Thank you for your help everyone.  I know that I need to learn python > better, and

Re: Strange problem when starting project in Windows XP

2009-12-18 Thread dfolland
idle.pyw is the gui version of the python idle editor. Sounds like you've got file extension .py associated with it, instead of python. On Dec 18, 11:59 am, OkaMthembo wrote: > Hi Dane, > > Yes, when you have to specify an absolute path to get it working, it > definitely

Re: Unicode heisenbug whilst running a management command

2009-11-17 Thread dfolland
I've dealt with this by manipulating the data with Python codecs. import codecs new_value= codecs.decode(current_value, 'utf-8', 'ignore') the default option is 'strict' which will raise a ValueError that you've experienced, 'ignore' will drop the offending character, and 'replace' allows you