Денис
Try user.set_password(password)
<\Hany>
What do you want to encrypt?
カカロット
Password Hashing
Alexey
Password Hashing
by default password allready encrypted
Eng_Salah Aldin Alhaj
guys i have question why s3 not working normally with svg files
Eng_Salah Aldin Alhaj
Access to image at &#39;https://xxx.s3.amazonaws.com/statics/images/icons/check.svg&#39; from origin &#39;http://localhost:8000&#39; has been blocked by CORS policy: No &#39;Access-Control-Allow-Origin&#39; header is present on the requested resource.
hamid
password not unhashing when you want login hashed of old password compair whit hash of send password
Виктор
Ur localhost not allowed
Blablabla
Hlo
Eng_Salah Aldin Alhaj
Its not svg problem, check settings for allow domains
But the rest of the files work normally, such as pictures and css js images
Eng_Salah Aldin Alhaj
no no now iam work locally
Eng_Salah Aldin Alhaj
User
Database connection pooling will work in django?
カカロット
by default password allready encrypted
but in sql server it is saved in its raw form
Виктор
but in sql server it is saved in its raw form
Use user.set_password(&quot;password&quot;) and user.save() for commit
Salahuddin
but in sql server it is saved in its raw form
you can use User.objects.create_user(username=&quot;your_username&quot;, password=&quot;your_password&quot;) this way you dont have to explicitly encrypt the password.
M. Hossein
How to check if one user is in one specific group? I tried user.group.all() but I get empty queryset
Anonymous
I have problem with slugify funcion Slugify makes title with data But data returns none
Pranjal
Cloudinary Image upload issue I am trying to create a rest api which has an ML model integrated for I mage classification and for that I am using cloudinary but for some reason there is a problem sending my images and predicting the output I cant find the reason please help me with that this is the error: Exception Value:Missing required parameter - file I am providing some code for reference: settings.py cloudinary.config( cloud_name = &quot;**&quot;, api_key = &quot;****&quot;, api_secret = &quot;**&quot; ) views.py def post(request): file=request.data.get(&#39;file&#39;) upload_data=cloudinary.uploader.upload(file) img=upload_data[&#39;url&#39;] melanoma_classify=VGGModelConfig.model req=urllib.request.urlpoen(img) PS:-I haven&#39;t created any model and serializer which i find wrong but the blog i was following to do this task also didnt created the models and serializers I have also set the headers as content/type:multipart/form-data your help will be appreciated
Dlight
Hey , I&#39;m looking for a comprehensive resources (blog video ) for Django forms In CBW . Appreciate if u know any to send me .
~
how to display data in a 2-row template, I did it through &#39;for&#39; and displays one line at a time
Erick
Hi friends, how are you? So I&#39;m developing a DRF api and I have some doubts, so my api is from an IDP Individual development plan, and this plan has some goals to be completed by my user, how could I make the idp and at the same time generate some goals of this idp?
Erick
Please I need help.
Vijay
anyone plz tell my image in web is not loading
Doragonsureiyā
anyone plz tell my image in web is not loading
Impossible to help without details.
Vijay
Impossible to help without details.
did this group allow sharing screenshot
Charly
did this group allow sharing screenshot
You don&#39;t need to share a screenshot you need to provide details in text
Vijay
You don&#39;t need to share a screenshot you need to provide details in text
http://127.0.0.1:8000/ images are loading in web page
Charly
Charly
What url have the image? Is it on static files?
Vijay
https://bin.kv2.dev/~64a7a534e599576ea02d0d0a project settings url
Vijay
home url https://bin.kv2.dev/~64a79f90e599576ea02d0d00
Charly
𝙼𝚊𝚜𝚑𝚑𝚞𝚛𝚋𝚎𝚔
hello to everybody. How can i execute code in the dispatch method after LoginRequiredMixin?
Илья
hello to everybody. How can i execute code in the dispatch method after LoginRequiredMixin?
https://stackoverflow.com/questions/47244036/using-django-login-required-mixin Maybe this can help
rajat
Hello everyone, anyone use djangosaml2 for SSO integration with okta? I am getting lots of error and not able to integrate it properly in my django application
nyctophile
Hi there! I was trying to override User model in my django project which I was making by following a you tube tutroial but I am getting AttributeError: &#39;Manager&#39; object has no attribute &#39;get_by_natural_key&#39; Can anyody help with that???
Doragonsureiyā
Rule 5️⃣: To share code or error tracebacks, use an online pasting service like: - https://dpaste.org - https://linkode.org - https://hastebin.com - https://bin.kv2.dev If you posted a wall of text, go back and delete it.
nyctophile
nyctophile
pls share ur model and manager with dpaste
I changed it some parts and error is changed so should I show error too??
Виктор
I changed it some parts and error is changed so should I show error too??
u can use AbstractBaseUser and create Manager for AbstractBaseUser
Виктор
u can add objects = BaseUserManager() in ur model
nyctophile
u can add objects = BaseUserManager() in ur model
now I am getting this error while creating a superuser AttributeError: &#39;BaseUserManager&#39; object has no attribute &#39;create_superuser&#39;
Виктор
https://dpaste.org/t0M5Z#L9
im trying its code, worked
nyctophile
im trying its code, worked
Without changing???
Виктор
but im add to settings AUTH_USER_MODEL = &#39;users.User&#39;
Виктор
Without changing???
https://ibb.co/gSKQRp8 https://ibb.co/jh5nP1C screenshots
nyctophile
but im add to settings AUTH_USER_MODEL = &#39;users.User&#39;
I added it to but it was with &#39;base.User&#39;
Виктор
i think its maybe from old 3rd party packages
nyctophile
can u show traceback?
https://ibb.co/vmf5xr5 https://ibb.co/zmg7BqJ here is mine
Виктор
use dpaste pls for show it
nyctophile
its not traceback
Actually what is traceback My English is basic so
Виктор
Actually what is traceback My English is basic so
its ok, https://realpython.com/python-traceback/ looks here
nyctophile
Виктор
Виктор
need makemigrations and migrate
nyctophile
do u know about migrates?
i did it but after making 3 times it is saying this https://dpaste.org/VaNGD