Re: synchronize django admin interface password with other application passwords

2011-11-06 Thread Phang Mulianto
maybe you can just modify the create_user function in django , matching the hash algorithm of the other backend, or the other backend matching to the django backend. you choose which one would be the single auth method. and of course the admin interface is just as it, except you need custom

Re: bar charts

2011-11-06 Thread kenneth gonsalves
On Mon, 2011-11-07 at 00:04 -0500, Kevin Anthony wrote: > Google charts api > > any clues on how to integrate this with django? -- regards Kenneth Gonsalves -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: bar charts

2011-11-06 Thread Kevin Anthony
Google charts api Kevin Please excuse brevity, sent from phone On Nov 6, 2011 11:57 PM, "kenneth gonsalves" wrote: > hi, > > what do people use to display bar charts in their sites? > -- > regards > Kenneth Gonsalves > > -- > regards > Kenneth Gonsalves > > -- > You

bar charts

2011-11-06 Thread kenneth gonsalves
hi, what do people use to display bar charts in their sites? -- regards Kenneth Gonsalves -- regards Kenneth Gonsalves -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To

Re: synchronize django admin interface password with other application passwords

2011-11-06 Thread Gelonida N
Hi Mike, On 11/07/2011 12:15 AM, Mike Dewhirst wrote: > On 7/11/2011 7:43am, Gelonida N wrote: >> >> What would be the easiest way to hook into the password modification >> form, such, that I can calculate two password hashes with different >> salts / alorithms? >> > You need your own auth

Re: synchronize django admin interface password with other application passwords

2011-11-06 Thread Mike Dewhirst
On 7/11/2011 7:43am, Gelonida N wrote: Hi, I would like to use the django admin interface for authentification of a web site. However I also have to store a password hash (different algorith / different salt) for another application, such, that both applications can use the same password. What

Re: Relation not found error while dealing with foreign keys and forms

2011-11-06 Thread Tabitha Samuel
Hey thanks a bunch for the workaround. Maybe I am doing something wrong, but this is what I'm getting when I implement it and it really seems weird.. in my view I have: staff_person = Staff.objects.using('gold').get(username=current_staff) form = StaffForm(instance = staff_person)

Re: Python data structures and the GIL

2011-11-06 Thread Masklinn
On 2011-11-06, at 22:07 , Tobia Conforto wrote: > > I also guessed that deserializing a complex data structure at every AJAX > request would seriously impact performance. Have you *tested* this assumption? Because, to me and without any hard numbers, wanting to keep trees in-memory kind-of

Re: Python data structures and the GIL

2011-11-06 Thread Martin J. Laubach
One possibility that springs to mind is shared memory, either the sysv shmem variant or memory mapped files. mjl -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit

Python data structures and the GIL

2011-11-06 Thread Tobia Conforto
I have a Django app that does some heavy calculations for the user. At the start of a user's session it parses some source data and builds a complex data structure, in the form of big trees of cElementTree nodes (by themselves fast and small, being written in C). Then it allows the user to query

synchronize django admin interface password with other application passwords

2011-11-06 Thread Gelonida N
Hi, I would like to use the django admin interface for authentification of a web site. However I also have to store a password hash (different algorith / different salt) for another application, such, that both applications can use the same password. What would be the easiest way to hook into

Re: How do I define a default (override-able) primary key field on an abstract model?

2011-11-06 Thread g
I have come up with a way to do this below. Is there a better way? Obviously the CharField is just for demonstration. The real field would need to create a usable id. Here is what I have so far: from django.db.models import Model, CharField from django.db.models.base import ModelBase class