dumpdata/loaddata on a large DB

2007-10-17 Thread Densetsu no Ero-sennin
manage.py dumpdata and manage.py loaddata are nice tools for many cases. Particularly, they could be useful for transferring data from one database to another (say, from SQLite to PostgreSQL). Unfortunately, dumpdata/loaddata won't work on large databases, because the whole data collection is

Re: Unhashed passwords and django.contrib.auth

2007-10-02 Thread Densetsu no Ero-sennin
I've just thought that it would be nice if Django supported pluggable hash functions for passwords. Something like this: class Sha1Hash(object): name = 'sha1' def get_hex_digest(salt, raw_password): import sha return sha.new(salt + raw_password).hexdigest() Then it would

Re: Unhashed passwords and django.contrib.auth

2007-10-02 Thread Densetsu no Ero-sennin
On 3 October 2007 (Wed), James Bennett wrote: > So don't use set_password(), and avoid any built-in views which try to > hash things. That's not all. I won't be able to use check_password(), which also calls get_hexdigest(). And I'll have to reimplement ModelBackend because of that, and possibl

Unhashed passwords and django.contrib.auth

2007-10-02 Thread Densetsu no Ero-sennin
Hi, I need to store unhashed user passwords in the DB. Is it possible with django.contrib.auth? User.set_password method uses SHA-1 and it cannot be overridden easily. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

Re: Custom forms in newforms-admin

2007-08-09 Thread Densetsu no Ero-sennin
I noticed that item deletion is currently broken. Except for that everything seems to work for me, even inline editing. On 9 August 2007 (Thu), eXt wrote: > Hi > > Sorry that I'm not exacly on the topic but I'd like to know what is > current state of newforms-admin. Is it safe to use it in appli

Custom forms in newforms-admin

2007-08-08 Thread Densetsu no Ero-sennin
Hi I'm currently investigating newforms-admin and it looks amazingly customizable. :) But still I couldn't find the way to use custom forms for some models or something like that. What I need is to add some custom fields to some admin form and then to save some additional data to the database