News for hackers. Stuff that matters.
Re:First Things To Do on a New Django Project by andrewljohnson on Friday September 04, 2009 @06:49PM (#805904)
I don't understand why most developers would use a custom auth system. Django's auth system worked fine for me... I just added a UserProfile model to supplement with more fields.

Trying to turn Django development into a cookie cutter process seems silly.

Do it your own way. Learn it. Understand it. Django is a magical and powerful beast that can be used in many wonderful ways.

Re:First Things To Do on a New Django Project by mtrichardson on Friday September 04, 2009 @06:55PM (#805912)
If it works for you, it works great - if it doesn't, you're kind of screwed.

Where "works for you" the vast majority of the time really just means "the model fits your needs" (that is, username that fits the validator, non-unique email addresses, and so forth).

Don't get me wrong, I'm really grateful for contrib.auth, I just find myself butting heads with it fairly often.

Re:First Things To Do on a New Django Project by andrewljohnson on Friday September 04, 2009 @07:28PM (#805949)
Sure, but that's you. The very vast majority of django devs will find it suits their purpose. The VERY vast majority of Django projects are small and fast. Myself, I've done half a dozen projects, one spanning 20 kLoc, and the rest very small. I've never had a problem with Django auth.

To recommend it as something you should do when you make a Django app is bad advice, particularly for the beginners, who will just be confused by the extra steps.

I recommend anyone who isn't familiar with Django simply do the "My First App" tutorial. After that, the dev will find their own way, and I doubt it will be much like yours, or mine.

Re:First Things To Do on a New Django Project by mtrichardson on Friday September 04, 2009 @07:38PM (#805959)
He's not recommending creating an alternative to contrib.auth, he's talking about an auth backend.

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

I agree that it's an absurd recommendation, however.

Re:First Things To Do on a New Django Project by poops on Saturday September 05, 2009 @10:13AM (#806547)
i've had to build a custom auth system because i needed to support existing username/passwords that didn't fit the django mold