Hi Adrian.
would it be too hard to just stick the 'user login' views in the main codebase?
regards
ian
On 11/13/05, Adrian Holovaty <[EMAIL PROTECTED]> wrote:
>
> On 11/12/05, Bryan Murdock <[EMAIL PROTECTED]> wrote:
> > How do I limit access to a generic view to logged in users?
>
> Hey Bryan,
On 11/12/05, Adrian Holovaty <[EMAIL PROTECTED]> wrote:
>
> On 11/12/05, Bryan Murdock <[EMAIL PROTECTED]> wrote:
> > How do I limit access to a generic view to logged in users?
>
> Hey Bryan,
>
> I've added a section to the docs for you:
All for me? I'm...I'm touched.
:-)
After that kind of g
On 11/12/05, Bryan Murdock <[EMAIL PROTECTED]> wrote:
> How do I limit access to a generic view to logged in users?
Hey Bryan,
I've added a section to the docs for you:
Limiting access to generic views
http://www.djangoproject.com/documentation/authentication/#limiting-access-to-generic-views
On 11/12/05, Adrian Holovaty <[EMAIL PROTECTED]> wrote:
> Hey Bryan,
>
> This technically isn't an error in the docs; it's just a bit
> misleading. The "user" in that example wasn't intended to be the user
> from the authentication framework -- it's just some generic concept of
> "user."
>
> I've
On 11/12/05, Bryan Murdock <[EMAIL PROTECTED]> wrote:
> The example code for logging a user in here:
>
> http://www.djangoproject.com/documentation/sessions/
> [...]
> It doesn't work for me. I googled and found some code here:
> [...]
> Is this an error in the docs? Maybe I need to svn up?
Hey
How do I limit access to a generic view to logged in users?
Bryan
The example code for logging a user in here:
http://www.djangoproject.com/documentation/sessions/
is this:
def login(request):
u = users.get_object(username__exact=request.POST['username'])
if u.check_password(request.POST['password']):
request.session['user_id'] = u.id
On Friday 11 November 2005 06:56 pm, Jeffrey E. Forcier wrote:
> One trick I've found that helps in debugging is to throw out all
> assumptions, and to work backwards from a traceback while doing so.
>
> In your case, Python is telling you that what you *think* and what
> *really ought to be*
On 11/12/05, Grigory Fateyev <[EMAIL PROTECTED]> wrote:
>
> Hello Bryan Murdock!
> On Sat, 12 Nov 2005 07:34:42 -0800 you wrote:
>
> >
> > My site is set up with mod_python so that to get to the admin page you
> > go to:
> >
> > example.com/appname/admin
> >
> > In the admin view the links for log
hello,
how can i reuse some features of the admin app in my external
applications?
the search_fields and date_hierarchy features are so nice!
is there a simple way?
-frank
Hello Bryan Murdock!
On Sat, 12 Nov 2005 07:34:42 -0800 you wrote:
>
> My site is set up with mod_python so that to get to the admin page you
> go to:
>
> example.com/appname/admin
>
> In the admin view the links for logging out and changing password are
> broken. They use example.com/admin/.
My site is set up with mod_python so that to get to the admin page you go to:
example.com/appname/admin
In the admin view the links for logging out and changing password are
broken. They use example.com/admin/..., leaving out the appname. How
can I fix this?
Thanks,
Bryan
12 matches
Mail list logo