Re: Using custom table instead of "user" in django

2009-08-19 Thread Marek Wawrzyczek
How about writting adapter to the django user class? It can have descriptor for login (getting login would return users email). While creating such user login would be set (only once, during creation) for example the following value: user id converted to string preceded by one character. For other

Re: Using custom table instead of "user" in django

2009-08-18 Thread marekw2143
How about writting adapter to the django user class? It can have descriptor for login (getting login would return users email). While creating such user login would be set (only once, during creation) for example the following value: user id converted to string preceded by one character. For other

Re: Using custom table instead of "user" in django

2009-08-18 Thread marekw2143
How about writting adapter to the django user class? It can have descriptor for login (getting login would return users email). While creating such user login would be set (only once, during creation) for example the following value: user id converted to string preceded by one character. For other

Re: Using custom table instead of "user" in django

2009-08-18 Thread marekw2143
How about writting adapter to the django user class? It can have descriptor for login (getting login would return users email). While creating such user login would be set (only once, during creation) for example the following value: user id converted to string preceded by one character. For other

Re: Using custom table instead of "user" in django

2009-08-17 Thread Joshua Partogi
On Mon, Aug 17, 2009 at 10:40 PM, Jonas Obrist wrote: > > Here's what I did: > > I took the built in auth system and changed it a bit, or to be more > precise I changed all imports within auth (because I moved it within the > pythonpath) and edited models.py: > > http://dpaste.com/81651/ > > Whol

Re: Using custom table instead of "user" in django

2009-08-17 Thread PlanetUnknown
Thanks Jonas. Quick question - The difference in the models.py is I guess addition of these two imports - from django.db.models import get_model from django.conf import settings A dumb question, when you say "moved it within the pythonpath", what exactly does it mean ? On Aug 17, 8:40 am, Jona

Re: Using custom table instead of "user" in django

2009-08-17 Thread Jonas Obrist
Here's what I did: I took the built in auth system and changed it a bit, or to be more precise I changed all imports within auth (because I moved it within the pythonpath) and edited models.py: http://dpaste.com/81651/ Whole code: http://www.ojii.ch/auth.tar.gz If you wanna use it: Add the

Using custom table instead of "user" in django

2009-08-17 Thread PlanetUnknown
Guys, I have a quick question. I am attracted to django due to its flexibility however there is something bothering me now. My question is can I use a custom table, say "consumer" instead of the one provided my django ? Here are the reasons - 1.) I have my whole DB model around this consum