newbee questions and djapian

2009-06-27 Thread fruity
Hi to the list, I'm new to django, I was following the installation/setup instruction for djapian and I don't get what is the mechanism to say "the contents(title content author) from the model (for example) of django.contrib.flatpages. Is that what is defined in the docs as subclassing? In the

file list with os.walk non unicode chars like spanish ~n

2009-08-15 Thread fruity
for f in files: f = f.decode=('latin1').encode('utf-8') ext = path.splitext(f)[1] the chars are computed correctly but then it does not match anymore the file on the filesystem. I'm now tryn

Hashed, salted mysql password in settings.py, reccomendation to protect information

2009-12-21 Thread fruity
cape weird chars in the salt? I've tried to add sha1$mysaltnoweirdchars$hash and it gives me error on django release 1.1 Thank you very much for your time. fruity -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gr

Re: Hashed, salted mysql password in settings.py, reccomendation to protect information

2009-12-21 Thread fruity
ecret import mysql_password > ... > you're set :) > > Brice > > 2009/12/21 fruity : >> Hello, >> >> I'd like to protect the mysql password that is in settings.py >> >> I read in the django docs that is possible to use SHA1 hashes as

Re: Hashed, salted mysql password in settings.py, reccomendation to protect information

2009-12-21 Thread fruity
Sorry again, even better: http://code.djangoproject.com/wiki/SplitSettings fruity wrote: > Thank you very much. > > After a while of searching on django-snippets there was the answer :) > > http://www.djangosnippets.org/snippets/94/ > > Brice Leroy wrote: >> Easy,

Set different value for a field when Admin creates an user

2019-11-29 Thread Fruity Code
I have an updated user model and added two fields to it, mobile_number and role. The field role has two options Customer and Admin. Currently, I have made customer as the default value for role. Now what I want is when user signup the role should be a customer but when an admin create a user fro