Re: Disable Auth on Django Application.

2017-11-15 Thread Arun S
UTC+5:30, Arun S wrote: > > Hi, > > > > I have two different Django Applications. > > Both the applications have there respective Auth. > > > Applications are hosted on different servers. > > Now the use case is such that: > > > There is a redirect

Disable Auth on Django Application.

2017-11-13 Thread Arun S
Hi, I have two different Django Applications. Both the applications have there respective Auth. Applications are hosted on different servers. Now the use case is such that: There is a redirection link that can be provided from Application 1. Now i would want to disable auth on Appli

Re: Drop Down Menu in Django Forms not working.

2017-08-07 Thread Arun S
#x27;0012_add_eval_states'), ] operations = [ migrations.RunPython(forwards, backwards), ] Does this make sense for the model structure. I do not have any Models Diagram for the same. --- Arun On Monday, August 7, 2017 at 4:13:33 PM UTC+5:30, lemme smash wrote: > &

Re: Drop Down Menu in Django Forms not working.

2017-08-07 Thread Arun S
you should use text choices > > On Monday, August 7, 2017 at 6:22:50 AM UTC+3, Arun S wrote: >> >> The Models Look like this : >> >> stage_state = models.ForeignKey(EvalState, verbose_name="Eval State") >> class Bundle(AtlasAuditModel, AtlasBaseHel

Re: Drop Down Menu in Django Forms not working.

2017-08-06 Thread Arun S
30, lemme smash wrote: > > so, you can maybe show you models structure here? > also, if it is a ForeignKey, why you trying to filter qs by string values? > I mean Q(name = 'ACTIVE') > it's shouldn't work > > > On Sunday, August 6, 2017 at 5:22:21 AM UTC+3,

Re: Drop Down Menu in Django Forms not working.

2017-08-05 Thread Arun S
Yes, name is a foreign key here. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to

Drop Down Menu in Django Forms not working.

2017-08-04 Thread Arun S
Hi, I am trying to have a drop down menu for a field in my form but seems like its not working as required. This is my form: forms.py eval_states = [ ('ACTIVE',EvalState.objects.filter(name='ACTIVE')), ('INACTIVE',EvalState.objects.filter(name='INACTIVE')), ('DELETE',Eva

Re: Redirection to SSO using Django

2017-03-08 Thread Arun S
h 2017 05:26:02 Arun S wrote: > > > > > My Project, i would want to redirect login page to a SSO page. > > > and handle redirection in Django. > > > > Don't solve what others already did for you: > > https://djangopackages.org/packages/p/django-al

Re: Redirection to SSO using Django

2017-03-08 Thread Arun S
your SSO tools and how they handle passing logged in > user information to your app. > > > [1] > https://docs.djangoproject.com/en/1.10/ref/settings/#login-redirect-url > > On 08.03.2017 15:26, Arun S wrote: > > Hi, > > My Project, i would want to redirect login

Redirection to SSO using Django

2017-03-08 Thread Arun S
Hi, My Project, i would want to redirect login page to a SSO page. and handle redirection in Django. I am using Apache Server. Whats the best way to implement this ? i was reading about django - remoteusermiddleware but could'nt quite figure out how to handle the redirection. Any help is appr

Issue with Django-axes

2017-03-06 Thread Arun S
Hi, i am using django-axes package and want to lock out a user based on userid. Now there is an issue that the user gets locked out from one IP, but the same user can still login from a different IP successfully. Which negates the whole use of a security requirement of locking a particular user

Re: Writing a custome Django Log Formatter.

2017-01-23 Thread Arun S
#x27;handlers': { > 'default': { > 'formatter': 'detailed', > 'filters': ['some_id_filter'], > ... > }, > ... > }, > 'filters': { > 

Writing a custome Django Log Formatter.

2017-01-23 Thread Arun S
Hi all, I have a small issue with writing a Custom Log Formatter. By default: log_format = '%(asctime)s %(module)s %(levelname)-8s- %(message)s' This is the Log formatter being used. But only in a few cases or rather in a few modules, i would like to include for ex: "some_id" as a seperator i

Re: Regular Expression with Variables.

2016-05-19 Thread Arun S
gex_f=r'^.*(?=.{{{MIN},{MAX}}})(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[!$%^&*?@#-_+=]).*$' > > But the "^.*" and the ".*$" are not needed since RegexField uses > RegexValidator, which uses re.search(). > > On Thu, May 19, 2016 at 1:53 AM, Arun S > > wrote: > >>

Re: Regular Expression with Variables.

2016-05-18 Thread Arun S
e format() on the regex, being careful to escape '{' > and '}': > > regex_f=r'^.*(?=.*{{{MIN},{MAX}}}*)(?=.*\d)(? > =.*[a-z])(?=.*[A-Z])(?=.*[!$%^&*?@#-_+=])' > regex=regex_f.format(MIN=settings.MY_RE_MIN, MAX=settings.MY_RE_MAX) > > > On Thu, May 19,

Regular Expression with Variables.

2016-05-18 Thread Arun S
Hi, I have a Regular Expression something like this: regex=r'^.*(?=.*{8,}*)(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[!$%^&*?@#-_+=])' r'.*$', In this, i would like to read the values from the Django Setting file on the Max and Min Length and provide them as my input instead of Hard Codi

Re: Django Password Validation

2016-05-18 Thread Arun S
/1.9/topics/auth/default/#auth-web-requests I shall check this. Thanks. On Wednesday, May 18, 2016 at 1:22:16 PM UTC+5:30, James Schneider wrote: > > > > On Wed, May 18, 2016 at 12:08 AM, Arun S > > wrote: > >> Hi , >> >> I have a small issue with th

Django Password Validation

2016-05-18 Thread Arun S
Hi , I have a small issue with the Validation of Passwords in the Change Password Page. Due to certain different requirements, i have written my own Custom Forms for Change Password. Now in this, I would want to first Validate the Old Password Field with the Current Users Password. The Probl

Re: Customised handling for wrong passwords entered in Login page in Django.

2016-05-03 Thread Arun S
ceiver to > the user_login_failed signal[1] instead. > > Cheers, > Simon > > [1] > https://docs.djangoproject.com/en/1.9/ref/contrib/auth/#django.contrib.auth.signals.user_login_failed > > Le mardi 3 mai 2016 06:01:59 UTC-4, Arun S a écrit : >> >> Hi, >&

Customised handling for wrong passwords entered in Login page in Django.

2016-05-03 Thread Arun S
Hi, I was trying to add a Customised View to Handle Wrong Passwords entered by Users. As of now, Djangos Framework just outputs, "Invalid Username or Password" when a Wrong password is entered by the User. This doesnt allow much flexibility if some information such as Invalid Access needs to

Generation of Session IDs in Django

2016-04-27 Thread Arun S
Hi, Just trying to get a few answers on the Session IDs in Django. > how does Django Generate Session IDs/Session Keys. It seems that Django does the following for Session Keys: def _get_new_session_key(self): "Returns session key that isn't being used." while True: session_key = get_random_str

Re: Issue with Django Password Normalization

2016-04-21 Thread Arun S
thanks for some very useful information. I did raise this in the dev forum but it was not agreed to be a question in that forum to discuss whether this should be taken up. I guess with all this input, this can be suggested tough. -- You received this message because you are subscribed to the

Re: Issue with Django Password Normalization

2016-04-20 Thread Arun S
For ex, adding the Django Code Snippet for handling User names in the Login Page : default_username = (unicodedata.normalize('NFKD', default_username) So Django does follow Normalizing of Usernames usign NFKD Algorithm. Then applies Hashing Algorithms on this. *But the same is never followed for

Re: Issue with Django Password Normalization

2016-04-20 Thread Arun S
in characters, or forcing lower > case only > > On Wed, Apr 20, 2016 at 4:16 PM, Arun S > > wrote: > >> let me try to clear my question. >> >> please correct me if am wrong. >> basically all I want to know is that there already exists a number of >> Un

Re: Issue with Django Password Normalization

2016-04-20 Thread Arun S
let me try to clear my question. please correct me if am wrong. basically all I want to know is that there already exists a number of Unicode normalization forms. Reference Unicode normalization forms: http://unicode.org/reports/tr15/#Norm_Forms so as I said as a part of a company norms, the pr

Issue with Django Password Normalization

2016-04-20 Thread Arun S
basically I would like to know if the latest version of django already supports any kind of normalization for the login passwords. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it,

Issue with Django Password Normalization

2016-04-20 Thread Arun S
Hi, As a Part of a very big project for a Company, we follow CSDL rules and we use Django Extensively. As a part of Django, we would like to Follow certain Normalisation Process for all the Passwords during User Login. In the Django Documentation, there isn’t any information on whether Django