Денис
Денис
Try user.set_password(password)
<\Hany>
What do you want to encrypt?
カカロット
カカロット
Password Hashing
Eng_Salah Aldin Alhaj
guys i have question why s3 not working normally with svg files
Eng_Salah Aldin Alhaj
Access to image at 'https://xxx.s3.amazonaws.com/statics/images/icons/check.svg' from origin 'http://localhost:8000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Alexey
Виктор
hamid
password not unhashing when you want login hashed of old password compair whit hash of send password
Виктор
Ur localhost not allowed
Blablabla
Hlo
hamid
Виктор
Alexey
Eng_Salah Aldin Alhaj
no no now iam work locally
Eng_Salah Aldin Alhaj
User
Database connection pooling will work in django?
カカロット
Alexey
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
Doragonsureiyā
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 = "**",
api_key = "****",
api_secret = "**"
)
views.py
def post(request):
file=request.data.get('file')
upload_data=cloudinary.uploader.upload(file)
img=upload_data['url']
melanoma_classify=VGGModelConfig.model
req=urllib.request.urlpoen(img)
PS:-I haven'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'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 'for' and displays one line at a time
Supra
Erick
Hi friends, how are you? So I'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.
Charly
Vijay
anyone plz tell my image in web is not loading
Doragonsureiyā
Vijay
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
Vijay
𝙼𝚊𝚜𝚑𝚑𝚞𝚛𝚋𝚎𝚔
hello to everybody.
How can i execute code in the dispatch method after LoginRequiredMixin?
Doragonsureiyā
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: 'Manager' object has no attribute 'get_by_natural_key'
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
Виктор
u can add
objects = BaseUserManager()
in ur model
nyctophile
nyctophile
Виктор
Виктор
but im add to settings
AUTH_USER_MODEL = 'users.User'
nyctophile
Виктор
Виктор
i think its maybe from old 3rd party packages
Виктор
Виктор
use dpaste pls for show it
nyctophile
nyctophile
Виктор
Виктор
need makemigrations and migrate
Виктор