[ale] Django expertise?

Pete Hardie pete.hardie at gmail.com
Sun Nov 14 09:35:20 EST 2010


On Sat, Nov 13, 2010 at 23:41, Richard Bronosky <Richard at bronosky.com> wrote:
> I think you may be trying to do too much in the urls.py. Send all
> logged in users to a view that uses the following tools:
>
> user.is_staff
> http://docs.djangoproject.com/en/dev/topics/auth/#django.contrib.auth.models.User.is_staff
>
> redirect
> http://docs.djangoproject.com/en/dev/topics/http/shortcuts/#django.shortcuts.redirect

I shall give those a try.  I was suspecting that I was trying to do
more than the paradigm expected


>
> On Sat, Nov 13, 2010 at 11:26 PM, Pete Hardie <pete.hardie at gmail.com> wrote:
>> Ok, I've gotten some progress with the user stuff, and have another question
>>
>> I'd like the regular users to be sent to a different place then th
>> admin users when they log in - the admin user's would go to the
>> admin interface, and the rest to the application pages (which I will be writing)
>>
>> The problem is, when I add in the line in urls.py to catch the result
>> of the login of a user, all the logins get sent there, not just
>> the nonadmin ones.
>>
>> I have not been able to craft a search query that finds anything that
>> tells me if this is possible.
>>
>>
>>
>> On Fri, Oct 1, 2010 at 22:52, Pete Hardie <pete.hardie at gmail.com> wrote:
>>> Thanks for the input, guys.  I'll give it a go.
>>>
>>>
>>> On Fri, Oct 1, 2010 at 19:08, Rev. Johnny Healey <rev.null at gmail.com> wrote:
>>>> Use the existing django User model.  So many things expect it that you'll
>>>> regret using anything else.
>>>>
>>>> sent from my shoe phone
>>>>
>>>> On Oct 1, 2010 7:02 PM, "Pete Hardie" <pete.hardie at gmail.com> wrote:
>>>>> On Fri, Oct 1, 2010 at 18:47, Richard Bronosky <Richard at bronosky.com>
>>>>> wrote:
>>>>>> Don't ask to ask. Ask.
>>>>>
>>>>> "Do. Or do not. There is no try" :)
>>>>>
>>>>>>
>>>>>> On 10/1/10, John Anderson <sontek at gmail.com> wrote:
>>>>>>> Ask the questions
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>
>>>>> Ok, I'm trying to build up a website, and was going to create a suer
>>>>> table in teh DB when I found the Django
>>>>> User class. My big question is: are there any reasons not to use the
>>>>> User class for my user table? I've seen the
>>>>> tutorial that mentions setting up a relationship to the User table for
>>>>> storing the app-specific data, so I know that it's
>>>>> doable, but is it wise? Are there issues that might make me wish I
>>>>> had used my own table?
>>>>>
>>>>>
>>>>>>> On Oct 1, 2010, at 4:37 PM, Pete Hardie <pete.hardie at gmail.com> wrote:
>>>>>>>
>>>>>>>> Hello all,
>>>>>>>>
>>>>>>>> Anyone got Django experience?  I'm starting a project under it, and
>>>>>>>> have a few questions about the suitability of certain built-in
>>>>>>>> features for my
>>>>>>>> purposes.
>>>>>>>>
>>>>>>>> TIA,
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Pete Hardie
>>>>>>>> --------
>>>>>>>> Better Living Through Bitmaps
>>>>>>>> _______________________________________________
>>>>>>>> Ale mailing list
>>>>>>>> Ale at ale.org
>>>>>>>> http://mail.ale.org/mailman/listinfo/ale
>>>>>>>> See JOBS, ANNOUNCE and SCHOOLS lists at
>>>>>>>> http://mail.ale.org/mailman/listinfo
>>>>>>> _______________________________________________
>>>>>>> Ale mailing list
>>>>>>> Ale at ale.org
>>>>>>> http://mail.ale.org/mailman/listinfo/ale
>>>>>>> See JOBS, ANNOUNCE and SCHOOLS lists at
>>>>>>> http://mail.ale.org/mailman/listinfo
>>>>>>>
>>>>>>
>>>>>> --
>>>>>> Sent from my mobile device
>>>>>>
>>>>>> .!# RichardBronosky #!.
>>>>>> _______________________________________________
>>>>>> Ale mailing list
>>>>>> Ale at ale.org
>>>>>> http://mail.ale.org/mailman/listinfo/ale
>>>>>> See JOBS, ANNOUNCE and SCHOOLS lists at
>>>>>> http://mail.ale.org/mailman/listinfo
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Pete Hardie
>>>>> --------
>>>>> Better Living Through Bitmaps
>>>>>
>>>>> _______________________________________________
>>>>> Ale mailing list
>>>>> Ale at ale.org
>>>>> http://mail.ale.org/mailman/listinfo/ale
>>>>> See JOBS, ANNOUNCE and SCHOOLS lists at
>>>>> http://mail.ale.org/mailman/listinfo
>>>>
>>>> _______________________________________________
>>>> Ale mailing list
>>>> Ale at ale.org
>>>> http://mail.ale.org/mailman/listinfo/ale
>>>> See JOBS, ANNOUNCE and SCHOOLS lists at
>>>> http://mail.ale.org/mailman/listinfo
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> Pete Hardie
>>> --------
>>> Better Living Through Bitmaps
>>>
>>
>>
>>
>> --
>> Pete Hardie
>> --------
>> Better Living Through Bitmaps
>>
>> _______________________________________________
>> Ale mailing list
>> Ale at ale.org
>> http://mail.ale.org/mailman/listinfo/ale
>> See JOBS, ANNOUNCE and SCHOOLS lists at
>> http://mail.ale.org/mailman/listinfo
>>
>
>
>
> --
> .!# RichardBronosky #!.
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>



-- 
Pete Hardie
--------
Better Living Through Bitmaps



More information about the Ale mailing list