Vas
Django can work with local storage browsers?
Swati
Vijay
No
Vijay
https://stackoverflow.com/questions/17651254/get-queryset-method-and-viewsets-in-django-rest-framework
Vijay
Follow this link
Vijay
Class based view is more complex and complicated for a beginner. I'm sure u are a beginner!
Drag
Class based view is more complex and complicated for a beginner. I'm sure u are a beginner!
Can u please explain how to work with viewset on templates? How to call it and render data
Vijay
Can u please explain how to work with viewset on templates? How to call it and render data
https://stackoverflow.com/questions/57143258/how-to-modify-router-and-viewsets-for-template-rendering
Mike
Hey, Is Anyone Know About WebSocket?
Mike
https://linkode.org/#myoGEdKyGpRLNYSdMocQX6
Mike
Do You guys have solution for that?
Vijay
Do You guys have solution for that?
Bro u should define ur query inside get_queryset function
Mike
Suppose???
Vijay
Suppose???
https://stackoverflow.com/questions/17651254/get-queryset-method-and-viewsets-in-django-rest-framework
Mike
I Just want to call function outside of AsyncWebsocketConsumer class
Vijay
If u are using apiview
Vijay
Then use all 4 listed method
Mike
Actually that was websocket channels
Mike
from channels.generic.websocket import AsyncWebsocketConsumer
Ameer
My django template html registration details file when I click the register button the details will store in mangodb can anyone help me to solve the problem
Андрей
Hello everyone! How can I authorize a user by sms code in Django project?
Patrick
My django template html registration details file when I click the register button the details will store in mangodb can anyone help me to solve the problem
Connect your django project with MongoDB Create a model with fields Create a html form Add a post request with url in form with submit button Create a View for that post method url Inside view save data into the model!
Андрей
You can use any paid or free sms apis
No matter. The main thing is to understand how it works.
Patrick
No matter. The main thing is to understand how it works.
You ask them to send a message in your case to the OTP. Now you have to save this OTP somewhere with user. While validation you check if both user and OTP matched then allow user to login and you provide him access token
Patrick
one time password
Андрей
Hitman47
Hi, in django doc. app part 2 , why we create second urls.py in polls/urls.py while such file exists in mysite/urls.py ?
Hitman47
and in mysite/urls.py we import include() but not in polls/urls.py
Hitman47
cant we handle all urlpatterns in mysite/urls.py? wy 2 seperate urls.py?
Veridian
I always have Not implemented error anytime I added restframework to INSTALLED_APPS in setting.py file .What am i doing wrong?
Veridian
I'm using window operating system.
Rohan
Hey guys I'm working on one NGOs website for my last year project, So I want to ask how many user screen shoul I work?
Rohan
Or make
MARYAM
Hi guys
MARYAM
I recently learned the basics of Python to ba able to learn Django.
MARYAM
Now I search for course to learn Django.
MARYAM
Do you have any suggestion?
Doragonsureiyā
Do you have any suggestion?
Check out PythonRes, a channel for Python resources - video courses, pdf books, tutorials and other info to help you learn Python.
Patrick
Do you have any suggestion?
Do this if you're going to start django E commerce website, social media website, blog website using django templates. Same websites using Django Rest Framework. Mostly django is used for apis but django templates will make you more friendly with file structure initially. Once you are done with both try improving database architecture and then well organised project structure
Patrick
I actually met someone who need guidance over django. We're having a session for django basics tomorrow, anyone wants to join?
.
cant we handle all urlpatterns in mysite/urls.py? wy 2 seperate urls.py?
1. mysite/urls is the project level URL 2. polls/urls is an app level URL 3. We can handle all urlpatterns in mysite, it will still work 4. The separation of project and app levels is to help organize them more systematically. 5. A project can have multiple apps, perhaps some that you create yourself, some that you get from other sources. 6. Having the urls separated makes it much easier to manage the apps individually - let it be to include, exclude, or modify them. 7. If you mix the urls from all apps into the project level, it get seriously messy and will need much more steps when making changes.
Nati
Can django combine with react language?
Maxim
but yes, you can
Sina
React is js library or framework?
.
Can django combine with react language?
You can google plenty of tutorials that do that https://www.digitalocean.com/community/tutorials/build-a-to-do-application-using-django-and-react
Vladimir
Hi all, I have problem with migrating data from old database structure to new one. The problem apears when i want to migrate field in table that have foreign key to some other table but in that table that field doesnt exist anymore(old database who know what happaned), so my script throws me error. I just want in that case to fill with NULL but. Can anyone help me with suggestions, i tried a lot of different things like disable foreign key check ant others...
Badal
How can i do form validation with js instead of views ? I tried using onsubmit ="return function ()"
Mirco
Meanse ?
Your backend must always do the validation
Badal
Don't do it 🙂 Frontend validation is a opened gate
I just want to show windows alert when user tried to put invalid username or something like that
Badal
Your backend must always do the validation
Views reload the page and then shows error
Badal
Badal
How to do that
Mirco
That's wht m asking
Check on Google how to control submit with js 🙂
Mirco
You will find a lot of answers and tutorials
Badal
Ok
Neeraj
How to create groups in django can any one please explain
Veridian
Hi! You should add: 'rest_framework',
rest_framework was exactly what I added to the INSTALLED_APPS and got Not implemented error.
Alexander
Hello, i have installed python 3.10 , django 4.1.3. , and i try to developpe a server with py manage.py runserver
Alexander
But i have only this
Alexander
But runserver doent work !
Saddam
Ok
Where do you wrote the js code in js file? or you have in wrote in script tag?
Soheyl Taheri
Hi everyone How to empty the domain section in cookies ?
Soheyl Taheri
Maxim
What’s that?
an explanation of why you should approach the issue you're trying to solve from the other side
Maxim
or better explain your question