Bunty chhatri wala..
Bunty chhatri wala..
Yes
Delete the old migrations and then do..makemogration
Bunty chhatri wala..
Make migration*
Bunty chhatri wala..
In migration folder..files named..001 or something
Bunty chhatri wala..
Have you done any migration before?
Carlos
No such file is showing
you have to make migrations
Carlos
python manage.py makemigrations
Carlos
And then, migrate those changes to the database
Carlos
python manage.py migrate
TM
Exactly...when I am trying to make migration ...it's showing error no changes detected
Holla
Delete the migration folder and rerun
chinna
Guys, can anyone help me to install django in my system.Even though i selected the path in environment variables I am getting error
Anonymous
If you're on windows try installing WSL and everything is easier
Generalmax
Widget is not effecting on my form. How do I solve it please? Django 3
Anonymous
Hello. Recently, I have started learning django from youtube tutorials ,however, i can't open http://127.0.0.1:8000/ could anyone help please ? Sorry if problem id not stated clearly.
Manish
Can i use two tables in one model?
Manish
How to create model for view table. NOTE: TABLE ONLY IN VIEW. I'M USING POSTGRES DB
Yuvraj
Hello. Recently, I have started learning django from youtube tutorials ,however, i can't open http://127.0.0.1:8000/ could anyone help please ? Sorry if problem id not stated clearly.
What happens ? Does it show this site can't be reached ? That means python manage.py runserver command is not working properly. Or if port 8000 is occupied by some other application, then you can use python manage.py runserver 5000 to run on 5000 port. So on and so forth you can use different ports.
Mikhail
Can i use two tables in one model?
No, you can't. But for what do you need it?
Mikhail
How to create model for view table. NOTE: TABLE ONLY IN VIEW. I'M USING POSTGRES DB
If you want to use model for posgresql view, just add this: class Meta: managed = False https://stackoverflow.com/a/38188332/5996922
Stump Lowell
Please am trying to use session for the first time . am building a shopping cart, now i want to create orderitem for anonymous users
Stump Lowell
I got to thus point
Anonymous
Hi, I am creating a web app project I am test our singup form and save data to data base data is store in the auth user but do not store in the singup table how can fix it this , I using Postgrasql please help
Stump Lowell
You have to user a foreignkey to join ur signup form model with it
Anonymous
Any document so please share me
Mirco
Any document so please share me
Any django login registration tutorials on internet
Mikhail
I want to join two tables..
Get 2 tables or just set conditions on 2nd table?
John
queryset=model.objects.all() for this how to calculate queryset response time.
Sadra
queryset=model.objects.all() for this how to calculate queryset response time.
What is the purpose? Do u wanna make a conditional statement?
Sadra
Or just calculating the delay?
John
What is the purpose? Do u wanna make a conditional statement?
I want know how much time it take to retrieve value from database
Sadra
I want know how much time it take to retrieve value from database
So, u just want to know that time? Don't wanna use it right?
John
class StoreClosingViewset(viewsets.ModelViewSet): serializer_class = StoreClosingStockSerializer # start = time.time() queryset = StoreClosingStock.objects.all() #print(timeit.timeit(len(queryset)))timeit #result = ping_host(queryset) # duration = time.time() - start filter_backends = [SearchFilter, OrderingFilter] search_fields = ['ITEM_CODE', 'CLOSING_STOCK']
John
This is my class but response time not working
John
When I hit url Always it showing 0.0 seconds
 Aryas
Hey guys. I have chose pythonanywhere.com for deploying my project. But I got errors that said "No module named 'django'" in wsgi.py file. What should I do?
Sadra
Sadra
I need to write here only
Do you need this latency? I mean do you want to use it or you just need to know the latency?
Shubham
For a specific type of user, Seller, can we make is_active = False, by default, so that , once the admin verify the info, then seller could log in
Shubham
?
Sadra
Want to use it. And pass to front end
Use either time, or timeit module.
Sadra
@BoxerRobert https://docs.python.org/2/library/timeit.html
 Aryas
but the error has not proved
 Aryas
Use either time, or timeit module.
thanks for your guiding
Avi
Hello guys I am a Python developer I want a great Course on django3 Please recommend some course
Neo
hello guys, can you help me why DRF validator not working, https://pastebin.com/7kf8xXyT
Endless Life
Hello guys I am a Python developer I want a great Course on django3 Please recommend some course
http://www.techpedal.tech/2020/08/django-3-full-stack-websites-with.html?m=1
SkyLord
Hello need advice on how to implement the functionality. task: I need to create a platform with authorization. after authorization, the user enters his dashboard. dashboard has 2 zones: left bar + content zone my question is related to the implementation of what should be in the left bar, there should be a tree like this: P1 P2 -P2.1 P3 - P3.1 - P3.2 --P3.2.1 --P3.2.2 -P3.3 P4 P5 we see that this is a tree with three levels. so, the user should be able to build such a tree, save the tree, change/add elements in the tree, change the order of the elements in the tree And at the end save the data in the database can you suggest, advise how / where ...
Generalmax
I am unable to migrate my model from Django to MYSQL database. It's saying a particular table already exists. The table in question is one of my models. And it is not even the one I wanted to migrate. Any help pls?
Anonymous
hi
Anonymous
anyone using django rest in production?
Anonymous
just wanna know about the authentication using :)
Mirco
just wanna know about the authentication using :)
Whatever you prefer, from JWT to Session auth
Mirco
If you need to serve your API under the same origin, the session auth is perfect
John
Anonymous
i have api and clients in different domains
Anonymous
i tried session auth
then the cookies are not getting saved in react clients' browser due to some samesite cookie issue
Anonymous
Whatever you prefer, from JWT to Session auth
i thought about jwt and token but how to save it in the client side?
Anonymous
and thanks for replying :)
Anonymous
i have api and clients in different domains
like i'd like to use it for a native mobile app also :)