Re: Extending django.contrib.auth.models.User

2009-11-08 Thread
1. write a  new User  Model, it like  django.contrib.auth.models.User
2. write a new backend , like django.contrib.auth.backends.ModelBackend
3. modify settings.py , add
AUTHENTICATION_BACKENDS=('myproject.myapp.backends.MyBackend' ,)

http://docs.djangoproject.com/en/dev/topics/auth/#authentication-backends


On Mon, Nov 9, 2009 at 2:46 PM, Sri  wrote:

>
> Folks,
>
>   Thought I might put it out there.  I mean technically this is not
> limited to django.  I need to extend the
> django.contrib.auth.models.User class (adding an extra field, making
> the email field unique and increasing the length of the username
> field).
>
> Now what are your thoughts on doing this?  Changes are clearly very
> small and extending what is there so they will not break the existing
> classes and apps (or other django apps out there) so I dont mind
> putting these changes to each version of django I use.
>
> I am not happy with doing this but I cant see a way around it.  Adding
> another model class with these extensions just means that existing
> apps wont take advantage of this.  Ideally I would like to see all
> apps and methods out there take the class variable that refers to the
> User model to be used so one could simply pass that in (say in
> settings.py) and it could even default to User model in
> django.contrib.auth.
>
> What are your thoughts?
>
> cheers
> Sri
>
> >
>

--~--~-~--~~~---~--~~
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 unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: IIS 6 PyISAPIe problems

2008-05-05 Thread
Try this http://code.google.com/p/pyisapi-scgi/

On Tue, May 6, 2008 at 2:11 AM, shocks <[EMAIL PROTECTED]> wrote:

>
> Hi
>
> I have followed the Django IIS installation guide on the Django
> website but I'm getting the following error when I point to the
> helloworld.py example:
>
> Internal Server Error
> An error occurred processing this request.
>
> Request handler failed
>
> Traceback (most recent call last):
>  File "C:\Python25\Lib\Http\Isapi.py", line 42, in Request
>imp.load_source(Name, Env.SCRIPT_TRANSLATED).Request
>  File "\\?\C:\Inetpub\wwwroot\slamprwebsite\helloworld.py", line 1,
> in
>from django.http import HttpResponse
> ImportError: No module named django.http
>
>
> Additional Information
>
>
> Module Search Path:
>
> C:\Python25
> C:\WINDOWS\system32\python25.zip
> C:\Python25\Lib
> C:\Python25\DLLs
> C:\Python25\Lib\lib-tk
> c:\windows\system32\inetsrv
>
> Any ideas.  I managed to get this working on another Win 2003 Server
> box but not this one.
>
> Thanks
> Ben
> >
>

--~--~-~--~~~---~--~~
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 unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Are any of you successfully running Django on IIS?

2008-04-24 Thread
http://code.google.com/p/pyisapi-scgi/

On Fri, Apr 25, 2008 at 1:35 AM, jmDesktop <[EMAIL PROTECTED]> wrote:

>
> I have a requiremnet to use Django on IIS.  I know there is a wiki
> page on Django about it, but what I'm after is if anyone is actually
> using it daily in production.  Just hoping to see how it's going.  If
> not I have to persuade to use Apache on the Windows box.  Thanks.
> >
>

--~--~-~--~~~---~--~~
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 unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Looking for Python expert in Beijing - China

2007-12-14 Thread
http://groups.google.com/group/python-cn
python的中文讨论组,到这里来吼一声。肯定会有人回应的。

On Dec 14, 2007 3:11 PM, Ludovic - Kalibrio <[EMAIL PROTECTED]> wrote:

>
> Hi Guys,
>
> Anybody knows excellent Python expert that would be interested to work
> in Beijing - China on a cool Web2.0 venture? We are hiring !
>
> Those interested can email at [EMAIL PROTECTED] for more details
>
> Ludovic
> www.Kalibrio.com
>
>
>
>
> >
>

--~--~-~--~~~---~--~~
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 unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: django on iis

2007-11-29 Thread
Hi, i create a english version
.http://code.google.com/p/pyisapi-scgi/downloads/detail?name=pyISAPI_SCGI_0.0.1_En.zip
and http://code.google.com/p/pyisapi-scgi/wiki/howtoen.
but I cant't say expressly.
Please help me.
Thank you!

2007/11/30, Jeremy Dunck <[EMAIL PROTECTED]>:
>
> Nice.  Any chance of getting this page translated to English?
> http://code.google.com/p/pyisapi-scgi/wiki/howtousepyisapiscgi
>
> Unfortunately, I can't help.  :(
>
> On Nov 29, 2007 10:10 AM, 头太晕 <[EMAIL PROTECTED]> wrote:
> >
> > pyISAPI_SCGI is a ISAPI Extension for SCGI. It can run django on iis.
> >
> > http://code.google.com/p/pyisapi-scgi/
> > >
> >
>
> >
>

--~--~-~--~~~---~--~~
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 unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



django on iis

2007-11-29 Thread

pyISAPI_SCGI is a ISAPI Extension for SCGI. It can run django on iis.

http://code.google.com/p/pyisapi-scgi/
--~--~-~--~~~---~--~~
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 unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---