Protect Django media files per user basis and also under NGINX

2021-04-19 Thread Tal Bar-Or
Hello, i have a project that create qrcode per user one to one relation, i discover that this media qr iame can be access if url is known . Can somone please help me with best practice to Protect Django media files per user basis and also under NGINX for later production Please advice Thank

Using Signals and method in models to automate key and qrcode>> help

2021-04-17 Thread Tal Bar-Or
Hello , i have a simple model that create additional one to one relation to User a profile like table with tables of pytop code and qrcode associated per user. I had success to create the pytop code ,but the qr code i have difficulty to achieve it since i need to get, The current users creat

Advice on self service password reset?

2021-02-26 Thread Tal Bar-Or
Hello , I would like to write self service password service for our organization , the identity source is our active directory. To accomplish this task i choose to use ldap3 library , reset password procedure would be simple template with enter your mail , backend will look for email user attri

Raw View class without form and model

2021-02-17 Thread Tal Bar-Or
Hello , I would like to write Raw view model for current scenario, i started writing portal for self service AD change password , the view for the change password is no need any model ,since it should be is using background ldap3 library , in addition i would like in a POST method to read th

Re: How to add css class and attribute to username,password

2021-02-14 Thread Tal Bar-Or
AM Omkar Parab wrote: > >> Install django-widget-tweaks package. >> >> On Mon, Feb 8, 2021, 2:11 AM Tal Bar-Or wrote: >> >>> >>> Hello , >>> >>> I writing project which the user login with my own customized HTML page >>> (boosstrap)

How to add css class and attribute to username,password

2021-02-07 Thread Tal Bar-Or
Hello , I writing project which the user login with my own customized HTML page (boosstrap) i can manually add the form.username and form.password , but seems they don't get the attribute from my forms.py , dode is added below , please advise Thanks urls.py from django.urls import path f

How to iterate over inlineformset_factory fields only?

2020-02-02 Thread Tal Bar-Or
Hello, I am trying to figure out how to access *inlineformset_factory* ,i set to represent my ForeignKey fields to present them in html i would like to iterate over those inlineformset_factory only in html, but i can't figure out how to achieve it, i can get display only field manually like