Лупеко И. В.
Thank u☺️
Shadow
Welcome, have fun reading :)
Hoper
sqlite3.IntegrityError: FOREIGN KEY constraint failed
Hoper
any solution guys
Егор
sqlite3.IntegrityError: FOREIGN KEY constraint failed
How should we solve this without the code?
Hoper
ok wait
Aman
how can select multiple objects on frontend using checkboxes and delete from database the selected ones
Neeraj
how can select multiple objects on frontend using checkboxes and delete from database the selected ones
You can use input box for this in every input box has value is pk-id and name must be same and access by this name in views.py(backend). You will get all the id in list which you select and submit Now run query a=[1, 2,6,56,85,8,25] TableName.object.filter(id__in=a).delete()
Aman
thanks alot i'll check it
Anonymous
Hello who can help me in websocket django please
Serghei
hi, i get in vs code, when activated enverovment for django project this message: is not digitally signed. You cannot run this script on the current system. What is mean?
Егор
Reinstall python/pip/vs/windows
Komal
Hlo somebody tell me which command we use to run project in vs code ?
Komal
When we use django as a back end
Komal
Actually I copy source code from GitHub and then I convert it into vs code but the project is not running so that’s why I need ur help guys for how I run that project which he create in django
Manish
To run Django project on other machine. You need to install Python . After installing python you need to install Django Library pip install Django .. .. python managa.py runserver
Komal
Thanku so much dear
Elena
The most efficient way to export csv?
Mirco
The most efficient way to export csv?
Just use the csv module of stdlib
Elena
No need to introduce dataframe or something?
Mirco
No need to introduce dataframe or something?
Not needed, you will just overcomplicate your goal
Elena
Thank you
Elena
No Django
Mirco
You are using flask?
If she's in a Django group, I don't suppose it 😅 Flask, Django it doesn't matter csv is part of stdlib
Elena
I need to create a csv report that won't take for ages
Mirco
I need to create a csv report that won't take for ages
csv of stdlib is enough Then if you really have loooots of data then you can think about using Pandas
Manish
Pandas can save you
Elena
I don't know. I'm a bit confused how the csv library works. It looks not the most efficient. Bit maybe it is due to lack of understanding
Mohit
I don't know. I'm a bit confused how the csv library works. It looks not the most efficient. Bit maybe it is due to lack of understanding
You can go for django documentation and there is a example just copy and play with that I think that will help
Mohit
https://docs.djangoproject.com/en/4.0/howto/outputting-csv/
Elena
Thank you, I'll check ♥️
Mohit
You can find that example here
Mirco
I don't know. I'm a bit confused how the csv library works. It looks not the most efficient. Bit maybe it is due to lack of understanding
Pre optimizations are the source of evil Start with csv lib of stdlib and then measure and you can think about using other tools if it's not fast enough for your needs
Elena
Thank you, I will
Moshe
What environment (ide) you guys most prefer using for django?
Mohit
What environment (ide) you guys most prefer using for django?
I use VSCode you can try that as well or use PyCharm
Mika
Hello somebody here?
Doragonsureiyā
Hello somebody here?
Maybe anyone is here, yes, but they are not obliged to read everyone's message here neither to reply to everyone's message, if someone wants to reply to your message, they will do that, just don't try to draw attention to your message writing "anyone?" every 5 minutes, that will lead you to be warned for SPAM/Flood, just be patient or use Google/DuckDuckGo to research about your question instead of wasting time here waiting for people to do your work. Have a nice day 😊
Mika
What is the best practice to deploymemt django app with cicd? That is because i have my app in localhost and the server in aws with cicd codepipeline. However if i do some changes in my localhost (migrations) and i apply it. When i try to migrate ot then in the server..the server send me no migrations detected Not tracking the migrations folders may could be a solution?
Mirco
Your CD just has to run migrate command
Mika
Your CD just has to run migrate command
That is the problem, in the first time i deploy success...when i do changes in localhost and test it . And then i wanna deploy. The server in the cloud doesnt recognized the changes of migrations
Mika
I dont know how to mangament that
Mika
Yes
Mika
I run make migrations then run migrate...and all its okey IN LOCALHOST. when i push it and i wanna run the same command to do the changes in the database of production. I cant do it..
Mirco
I run make migrations then run migrate...and all its okey IN LOCALHOST. when i push it and i wanna run the same command to do the changes in the database of production. I cant do it..
You don't have to run make migrations in Prod Just migrate and versioning the migrations you create locally via makemigrations
Mika
But if l run just migrate...the console throw me something like(nothins to migrate) and if i go to the database the table doesnt do the changes
Mika
Yes i tracking it
Д
Yes i tracking it
are the python files for the migrations in the migrations directory (on the remote server)
Mika
Yes, well i will try doing it all again to see whats happen 🤦‍♂️
Д
Yes, well i will try doing it all again to see whats happen 🤦‍♂️
python manage.py makemigrations <appname> should create them from the models it finds
Д
then it tries to migrate to the DB defined in settings.py
Д
if it's not finding migrations, there's something silly going on
Hoper
OperationalError at /login no such column: App1_customuser.profession how how to solve this error i tried so hard to solve
Enes
Maybe you add profession field to this model but your old objects of this model don't have this field and login page couldn't get the field
Hoper
ok i will see
Matt
Remove db and create new one 😁
Maxim
Remove db and create new one 😁
the person you're saying it to won't know it's for him or her
Lucky
Give any Django tasks
Sayidbek
Give any Django tasks
Text to html converter project using django
Axror
Hi guys. I cannot deploy django project to aws server. Can you help me pls?
Kshitij
can anyone help me
Kshitij
i need it for college project
Kshitij
Login signup with name password email and postal address authentication via jwt … session should end in 5 minutes and after login simple table .. in which name email and postal address of user is shown.
Kshitij
i have done jwt but cant integrate with frontend i have checked from postman