On Jul 25, 12:23 pm, Alexey Luchko wrote:
> On 23.07.2011 18:13,dpapathanasiouwrote:
> I've got a question on the solution. Does it allow access to the other app
> by direct url after successful login and redirect?
No, because the decorator function checks the Group of request.user
and rejects
sed on the
original design.
So, I'd like to say thank you to everyone who replied to this thread;
your suggestions were helpful, and I wouldn't have discovered the
Groups capability without them.
On Jul 22, 11:06 am, Alexey Luchko wrote:
> On 22.07.2011 17:32, dpapathanasiou wrote:
Ah, ok, that makes sense -- I'm not sure if that's what Andre meant in
the first place.
So you're saying: have the function which handles the post-login
request (i.e., defined in with LOGIN_REDIRECT_URL in settings.py and
in urls.py to some corresponding views.py function) make that type
check of
ide urls handle login.
> * If you really need to (and I don't see why you would), write custom auth
> backends if you want, and restrict a user's login based on his profile's
> access level.
>
> Regards,
> AT
>
> On Fri, Jul 22, 2011 at 10:35 AM, dpapathanasiou <
Thanks for your reply, but now that I've read up on custom profile and
permissions, it doesn't seem like a solution.
Here's another way of explaining it: in my urls.py file, I have two
entries inside the urlpatterns definition, like this:
(r'^dashboard/', include('mysite.console.urls')),
(r'^cons
How can I do that in the context of the built-in django auth API? Are
there examples or tutorials of that?
On Jul 21, 9:23 pm, Andre Terra wrote:
> Why not make custom user profiles and write permission checks on your views?
>
> Cheers,
> AT
>
> On Thu, Jul 21, 2011 at 10:15
I'd like to be able to support two different types of authenticated
users within a single django project site.
The idea is that Type A users will work in the /dashboard app, and
Type B users will work in the /console app.
Since each app has its own set of models and views, I can do this at
the db
I've written a simple search function that uses a db model based on
the one described in The Django Book tutorial (http://
www.djangobook.com/en/2.0/), using a generic list, and a Paginator.
Here is my view function:
def search (request):
"""Search by title or author name"""
if 'q' in re
8 matches
Mail list logo