Dare
and APIs am still beginner
Dare
Um
Dare
Used to build web apps and rest used to build APIs
Dare
Ahh.. it's okay I'll try my best
Dare
Sure
Dare
Thankyou so much bruh
Asukhan
hey, can anyone please help me to solve the problem "Reverse for 'delete' with arguments '('',)' not found. 1 pattern(s) tried: ['delete/(?P<pk>[0-9]+)/\\Z']"
Abel
Guys im having a night mare Should i use NodeJs or Django Which one is fast, scalable
Asukhan
argument? do u mean in urls? i have specified there <int:pk>, and pk is the 2nd parameter in views
Asukhan
the id-s of the item from database, if u mean it
John Doe
can't compare offset-naive and offset-aware datetimes Who know how to fix this?
Arun
Hy everyone, anyone help me to understand django and drf implementation difference please.
Arun
Or anyone please send me YouTube link of any good project of drf.
Victor
Or anyone please send me YouTube link of any good project of drf.
https://www.django-rest-framework.org/tutorial/quickstart/
Arun
Hy can I ask you something?
Arun
If I done a django project without drf using simple views implementing than if I want to convert into drf so can I change complete view.py or we just implement apiview in the same file than it can work??
Victor
Of course, you'll need to do some changes, but nothing much.
Arun
Ok I done 3-4 project of django and now I confused about simple django view and when we use drf ( I know in drf use class and it's make too much easy to implement).
Victor
Django is a framework for creating web applications, and drf is a framework for creating apis. If you need to serve applications via API, using json, for example, you need drf. If your project is a simple blog or something like that, you don't need drf.
Victor
So.. It all depends on what you are doing in your project.. But it's a very simple explication when using django or drf.
Afshin👀
Which library of django use for create dynamic register link for another user for subset user? Any library is?
Anonymous
You can do this by generating a unique token or link for each user when they need to register. You can use a library like uuid or generate a hash of the user's email address combined with a secret key.
eng.Ahmed
I want an online store project
Alfonso
Hello, I need help. How can I make that when I insert an element to my database it sends a message to s WhatsApp account??
ricks
Hi is there any specific sources to look for a jobs as django backend dev?
José Jorge
Simply use WhatsApp api
Do you the docs for that?
Doragonsureiyā
Hi is there any specific sources to look for a jobs as django backend dev?
Your question is not related to Django. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
Charly
Simply use WhatsApp api
There is no public WhatsApp API
vishesh
Hello, I need help. How can I make that when I insert an element to my database it sends a message to s WhatsApp account??
You may use twillio to get a new WhatsApp number then use twillio client object to send to a WhatsApp number whenever it is needed.
K
Im getting this error while loading the model using pytorch { "error": "[Errno 2] No such file or directory: 'yolov8_repo\\\\hubconf.py'" }, Please help me
José Jorge
There is no public WhatsApp API
There is no way for that?
hello friends I am facing a security problem in DRF simple JWT, that is, when I change the last character of my token (both refresh token and access token), it still works on some letters and the token is valid. Is this normal or should special settings be made for it? Because it is very bad that we change a character and the token is still working. I would appreciate it if someone has an opinion.
Axror
Maybe, changes made the credentials the same as others in your db
Axror
I'm not saving tokens in DB
Yes it is true. But, i mean some changes in the first user's token made the second user's token
Morteza
Simple JWT
https://stackoverflow.com/questions/58492009/jwt-token-decoding-even-when-the-last-character-of-the-signature-is-changed
Ranjeet
How to link database with chatgpt in Django
ERMIA
Which library you are using?
Use simple jwt with djoser Simplejwt handles Authentication Djoser handles Auhorization
Asad Ullah
how to choose django project name and apps names?
Asad Ullah
is there any restriction about it? by the way i am going to create my last year project with django and react with the power of postgresql. Learning Management System
Asad Ullah
i can't choose names or also project name for my django project. can anyone suggest me about it
Muflone
They have to be valid python names as they are used to reference the content and NEVER use the dash in the names if you don't want to be cursed
Muflone
app names can be anything like eg. usersapp
Sure but valid python identifiers
Muflone
I usually use project for the directory with settings and root url.py
Asad Ullah
which one to choose for front end django templates or js framework like react?
Muflone
which one to choose for front end django templates or js framework like react?
They are different. Very simple websites with few interactions could stick with simple templates Advanced frontend experience involves the usage of js frameworks
Shear
Hello I want to add pillow to an already dockerized django project. Anyone who has an idea on how to do cause pip install pillow isn't working
Shear
Why do you say is not working?
I am getting an error: pillow not installed, I have tried pip install pillow , python -m pip install pillow, I have even added pillow manually on the requirements.txt but the error isn't going a way
Shear
Well withhno details we cant sugges any thing
My project is dockerize, I'm trying to make migrations of models, that's why I'm getting the error of pip not installed
Shear
Yes but we need to see how your code runs ans install the packages
Can i send a pic of the error I'm getting on the terminal?
Charly
Can i send a pic of the error I'm getting on the terminal?
No, no pics allowed here. Read the rules (rule 5)
Arun
Hy anyone please share some resource to build any simple project or app with drf. And jwt authentication implementation. Please
Arun
I saw this official doc but I ask about any implementing video, but I thing I also try first with this as well thanx for helping 😇
Charly
I saw this official doc but I ask about any implementing video, but I thing I also try first with this as well thanx for helping 😇
Videos will only show superficial things and you'll bemissing things its a bad idea base your learning on it
Arun
So if I wanna start project with drf than where can I start please suggest me because I am also new in this.
Arun
Videos will only show superficial things and you'll bemissing things its a bad idea base your learning on it
And thank you for this advice I understand why I am not able to understand thing after done 2-3 project from video
J8n
Hello. I am getting a request and as soon as I get it, I need to send a response. But, I have to work on some data that is coming in the request and it takes a long time. How can I send the response first in the views.py and then run the code that works with the data coming in the request. I am using Django.
Mahdi
Hey guys, quick question🌹 I'm new to django and trying to make a web app that get's a video file from user and send it to another api and do something else. Right now i made the upload part and save it to model and user should wait untill the upload has ben completed. Sending the file to another api will take another waiting time for user and i want to do it in background so user don't need to wait till second uploading gets done. How can i do it? I need actually a term so i can go for it and learn it's path. Consider me as a new learner please. Thanks ❤️
MATHI
When I send images to the django rest framework api it show error like The Submitted data was not a file
Michkail
hello, some body can explain me about > what differrent regex in django 1.9 between 3.2