Bunty chhatri wala..
TM
Bunty chhatri wala..
Yes
Delete the old migrations and then do..makemogration
Bunty chhatri wala..
Make migration*
TM
Bunty chhatri wala..
In migration folder..files named..001 or something
TM
Bunty chhatri wala..
Have you done any migration before?
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
Chandu
TM
Yuvraj
Украинский
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
Anonymous
Yuvraj
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
Manish
Manish
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
Stump Lowell
You have to user a foreignkey to join ur signup form model with it
Anonymous
Any document so please share me
John
queryset=model.objects.all() for this how to calculate queryset response time.
Sadra
Sadra
Or just calculating the delay?
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
Sadra
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?
John
John
Sadra
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
?
John
Sadra
Sadra
@BoxerRobert
https://docs.python.org/2/library/timeit.html
Sadra
Aryas
Aryas
but the error has not proved
Aryas
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
Mirco
Endless Life
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
Mirco
If you need to serve your API under the same origin, the session auth is perfect
John
Anonymous
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
and thanks for replying :)