Re: username on URL with Class Based Views

2018-09-13 Thread Jason
return redirect('settings:profile') The issue is this. you're telling Django to hit up that URL, but you don't specify the username for that. Something like this would be required: return redirect('settings:profile', args=(username,)) -- You received this message because you are

Re: note matching query does not exist.

2018-09-13 Thread Manuel Alejandro Garrido Gongora
It is likely because you are getting a directly on an object that probably does not exist in the database, I recommend that you use it instead of get filter (). first () or the method get_object_or_404 from django Regards Enviado desde mi iPhone > El 12 sept 2018, a las 19:43, Gear Crew >

Re: note matching query does not exist.

2018-09-13 Thread Yash Thakkar
I’m agree with you that you should use filter(). Or you can use objectname.DoesNotExist as an exception. On Thu, Sep 13, 2018 at 7:07 AM Manuel Alejandro Garrido Gongora < nolodelato...@gmail.com> wrote: > It is likely because you are getting a directly on an object that probably > does not

RE: Kerberos authent implementation

2018-09-13 Thread Matthew Pava
What would be the motivation for Kerberos authentication? Why not just use LDAP authentication? Just wondering for my own edification. From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Benjamin SOULAS Sent: Thursday, September 13, 2018 9:20 AM To: Django

Re: Kerberos authent implementation

2018-09-13 Thread Benjamin SOULAS
No problem. I have to develop an app for customers assuming they can have different authentication system (just for information: I am discovering LDAP, RADIUS, Kerberos and others for a few days, I don't have skills in that). The aim of our app is to adapt itself depending if the customer has

RE: Kerberos authent implementation

2018-09-13 Thread Matthew Pava
Hi Benjamin, If it’s any help to you, we use LDAP through Active Directory for our authentication system. We use the django-auth-ldap package. It’s been a little tricky with the upgrade to Python 3/Django 2, but it’s quite manageable. Unfortunately, I can’t help you much with Kerberos

Re: Kerberos authent implementation

2018-09-13 Thread Benjamin SOULAS
Thanks a lot for your response, we use django-auth-ldap too, for openldap, but for regular AD, I am still waiting some stuff, I started to modify my settings.py, hope this works. No problem for Kerberos, maybe someone will read my post and give advices ! -- You received this message because

Re: username on URL with Class Based Views

2018-09-13 Thread Ricardo Cataldi
Nice! Thanks a lot! On Thu, Sep 13, 2018 at 8:45 AM Jason wrote: > return redirect('settings:profile') > > > The issue is this. you're telling Django to hit up that URL, but you > don't specify the username for that. > > Something like this would be required: return >

Kerberos authent implementation

2018-09-13 Thread Benjamin SOULAS
Hello every one, I would like to test Kerberos authentication. Can someone give me advices? I saw Django-kerberos and django-auth-kerberos, but there are not much maintenairs on those, so is it more appropriate to develop my own Django Backend to handle this authentication? I don't see much