Cutiepaiangelanu
navid
I'm trying to save multiple objects in a restapi view but not sure how to send the data here's a link for more details thanks in advance https://stackoverflow.com/questions/74782628/how-to-save-multiple-objects-to-the-database-in-django-rest-framework-views
whoami
how to index timefield to lesticsearch?
kkkkkk
Chrome extension and api calls integration please help me
Naughty
what is the code userprofile edit in django and it is prohibited for others to view our profile data and changes
Anwar Sadik
Hello! Friends!... Can you please tell Django free hosting apps?
Bibhuti
minty
Carlos
Hi team, could anyone tell me if it’s ok to develop a invoice and inventory saas using same database and app and everything separately by tenant id?
Neeraj
Hello guys, How can I count total deleted count in django crud
Hello
Hi I try to convert Json time to string and dont know what format this time, can someone help me ?
Hello
2022-12-13T13:52:38.460Z
Hello
by strptime(data, format)
Vaibhav
2022-12-13T13:52:38.460Z
If I'm not wrong, this is iso format
Vaibhav
Hello guys, How can I count total deleted count in django crud
Delete operation returns the number of rows it deleted
Elbek
Hello
Elbek
I have a problem in django allauth
Elbek
I need your helps
Doragonsureiyā
I need your helps
No one can help you until you explain your difficulties.
Hemraj
I have a problem in django allauth
Post the question first.
Elbek
AADSTS500011: The resource principal named api:/ was not found in the tenant named 626d3-aec8-d0904001d313. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You might have sent your authentication request to the wrong tenant.
Sergey
where i can ask qestions regards python?
ilyas
where i can ask qestions regards python?
Also you can ask here, if anyone knows you will definitely get an answer
Sergey
ok, but message is deleted, an dont know why :((
Rue
Hi How do I fix the problem in production where my website is showing ugly plain html text?
Adam
How can I host django project using ngrok?
Charly
How can I host django project using ngrok?
Ngrok is jsut a tunnel to your machine so once you have running django in your machie it should work But its not a good idea to use ngrok aside from testing
Adam
Thank you.
Bobby
https://dpaste.org/2GEnw
Bobby
can anyone help me in this?
Krishnajith US
Hy..can anyone suggest some documentation or tutorial where I can implement email verification with react and django rest framework
Tура
guys how set default image for production
Tура
I added into my media folder, but it is not loading
Aryan
Hi... I have a requirement to build an application say A. The application is an authentication system and I'm planning to build it in django using 'django oauth toolkit' library. Then there will be some external applications say B and C, and they will be using the auth system. How can I implement the authorization for the applications? Application B and C will be built on other platforms(php, java). 'django oauth toolkit' library has an API for authentication where the clkent_id, client_secret, username and password is being sent to api and the token is being generated. I need to use that token to authorise the APIs in application B and C. Need your insight on this one.
Shane
Ok
Eslam
HttpResponseRedirect(request.META.get('HTTP_REFERER')) for fbv ,,,, what for cbv ?
Akshay️ Vedpathak️
I have deployed my project on pythonanywhere.com. While building the website I have used SQLite but ,now I changed the database to MySQL. My question is, Do I need to change the commands in views.py ? I got an error "Matching query does not exist "for this line obj = Userinfo.objects.get(email=email)
Akshay️ Vedpathak️
I think you need to migrate your models
some data are already inserted but this get method is not working
Aritra
I wanted to make a Flutter app which will use Django as the backend for keeping track of users. Now, I want the user to login (enter the credentials once) and use the app without needing to login every time. How Can I do this? (Provided the fact that django does not entertain post requests without csrf tokens)
Aritra
u have to use token auth, u cannot use CSRF
actually what is happening in flutter... I have multiple pages... now, all pages are acting as if they don't know each other. if I login in one page, get logged out in other...
J
can you please elaborate?
Create a unique token for each user... when user logs in for the first time... you may store it in local...each time user request something to backend... if you pass that token as a parameter with api request... django will verify the token instead of login credentials and give the response
Mirco
that token remains same for lifetime?
the normal Token Auth of Django Rest Framework is valid until user logs out
Aritra
thanks a lot... that solves my problem...
Mirco
thanks a lot... that solves my problem...
You can find everything inside Django Rest framework official doc
Mirco
!drf
Doragonsureiyā
Are you looking for Django REST Framework documentation? Here you have it: https://www.django-rest-framework.org/
Aritra
You can find everything inside Django Rest framework official doc
one more small question... can I use both types of authentications side by side (of course I will have to write different views... but in the same project...)
Mirco
one more small question... can I use both types of authentications side by side (of course I will have to write different views... but in the same project...)
You can use multiple kind of authentications You can set as default or per view Study the topic on DRF doc
Smile
hello should i add "all()" to this query ? works the same self.model.objects.select_related('user').prefetch_related('skills') OR self.model.objects.select_related('user').prefetch_related('skills').all()
Pooya
Hi developers How can I set file size limit for uploading file with form in html with django backend? I get file with request.FILES['name'] command
Yooo
urlpatterns = [ path('admin/', admin..site..urls), path('app1/',views.ht), path('',views.temp) ] in urls.py. TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [os.path.join(BASE_DIR,'templates')], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', ], }, }, ] in settings,py
Yooo
im getting template not found error
Yooo
what i have to do, i tried everything all day today but couldnt figure out what was the error
Влад
Hello! How to create a model and populate it with data from another database or another file like json
Yooo
in project folder
Charly
in project folder
Well you need to put it a templates folder
Yooo
project/templates/index.html
Yooo
file path
Влад
Thx!
Yooo
Where the template is located
could u plz help me with this