ase check this answer
>> https://stackoverflow.com/questions/16824004/django-conditional-login-redirect
>>
>> On Sat, 11 Jul 2020, 18:22 Kuntal Paul, wrote:
>>
>>> Thank you for your response. I did this way and it was giving me a 405
>>> error. I couldn
It should work.
Try the link Damanjeet shared.
If you still get an error, share the error message.
On Sat, Jul 11, 2020 at 6:57 PM Damanjeet Singh
wrote:
> Please check this answer
> https://stackoverflow.com/questions/16824004/django-conditional-login-redirect
>
> On Sat, 11 Jul
Kuntal:
I have resolved that issue, but we can make interchange of information:
I need the Ajax code where I can evaluate in onblur text html if one
patient is found or not. The field key in the text box is RUT (each person
have one in my country)
for example, my rut is 7841349-2, and it's only, no
Please check this answer
https://stackoverflow.com/questions/16824004/django-conditional-login-redirect
On Sat, 11 Jul 2020, 18:22 Kuntal Paul, wrote:
> Thank you for your response. I did this way and it was giving me a 405
> error. I couldn't find my mistake. I was saving both
Thank you for your response. I did this way and it was giving me a 405
error. I couldn't find my mistake. I was saving both of them as student and
as teacher separately from auth.user.
Also, do I have to provide a separate temple for that view?
On Sat, Jul 11, 2020, 10:41 PM oba stephen wro
You can consider redirecting to a URL that handles the request.
That is a View function that checks if the user is a student or teacher,
then renders the respective profiles.
Regards
On Sat, Jul 11, 2020 at 5:58 PM Kuntal Paul wrote:
> The *LOGIN_REDIRECT_URL* only allowing to redirect to a p
The *LOGIN_REDIRECT_URL* only allowing to redirect to a particular profile
page. But in scenarios like where there are *students* and *teachers*, both
of them need their specific profile page after login.
Using* LOGIN_REDIRECT_URL*, both the teachers and the students are getting
redirected to
I'm writing a web app that uses the pinax-project-account and bootstrap.
When a user logs in the login view should grab the
ACCOUNT_LOGIN_REDIRECT_URL and redirect the user to it. There seems to be
an issue with dynamic urls though because when I do this with a static
/profile/ url, there is
Thanks Malcolm,
That was very informative. I tried the percent encoding trick with no
success. Now I'll try the second part and post here if I am
successful.
Thanks,
Bastien
On Apr 29, 6:50 pm, Malcolm Tredinnick
wrote:
> On Wed, 2009-04-29 at 07:43 -0700, Bastien wrote:
> > Hi,
>
> > I'm tryi
On Wed, 2009-04-29 at 07:43 -0700, Bastien wrote:
> Hi,
>
> I'm trying to get Django to do the following:
>
> A user must be logged in to comment on a content. If the user is not
> logged in then I provide a link to the login page and use the 'next'
> function to take her back to the content pag
Hi,
I'm trying to get Django to do the following:
A user must be logged in to comment on a content. If the user is not
logged in then I provide a link to the login page and use the 'next'
function to take her back to the content page where the comment box
will be waiting for her to fill it.
It
Hi guys,
I am experienced some trouble when using the "accounts/login" next
redirection that involves more than one query string. For some
reason, the redirected url is truncate and only seems to pick up the
first query string.
For example, both of the following:
accounts/login/?next=/post/add
Dead on Karen, thanks. I am transferring the site from my OS X box to
a hosting site and was reviewing the wrong template. All is well now.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To po
On Tue, Apr 29, 2008 at 4:25 PM, Szaijan <[EMAIL PROTECTED]> wrote:
>
> I'm using the latest django-registration (svn). When I use the login
> URL directly, so 'next' is not set, the result of a successful login
> drops the user to my document root directory. I've checked in shall
> and LOGIN_RE
I'm using the latest django-registration (svn). When I use the login
URL directly, so 'next' is not set, the result of a successful login
drops the user to my document root directory. I've checked in shall
and LOGIN_REDIRECT_URL is set correctly and being imported correctly,
but it is not being
In certain cases, I want to have the login page return a user to the
page he/she was on when they clicked login. My thought is to use
{{ request.META.HTTP_REFERER }}, but I'm not sure where to fit it. I'm
using the django-registration package, so I have a urls.py like so:
from django.contrib.auth
Sorry, too quick off the mark there. Seems exactly what I need can be
found here (basically just set up my own login/logout mechanism):
http://www.djangoproject.com/documentation/authentication/#authentication-in-web-requests
Thanks, Tom
--~--~-~--~~~---~--~~
Y
Hi Folks,
I'd like to be able to log users in based on accounts in Django and
then redirect them to a specific page after they've logged in. I'd also
like to be able to do a similar thing for logouts. Can anyone help me
out with this... Couldn't quite make sense of it from the
documentation, beca
18 matches
Mail list logo