Hi i'm new on python and django!

2021-05-11 Thread Juan Leon
anyone can help me to understandt how i can start in django, with any tips... because in the moment when i clone the project in local i saw commits with "hastags", for example: #123 what is the significate of this and how can i work with that? i am going to really appreciate yours answers 😃 -

Do people actually squash migrations?

2021-05-11 Thread 'Mike Lissner' via Django developers (Contributions to Django itself)
I have a pretty big django project, and since I created the 100th migration within one of its apps today, I thought I'd finally do some squashing. It hasn't gone well, but I eventually got the data migrations cleaned up. Finally, I run it, and it runs smack into a CircularDependencyError, as d

Re: Do people actually squash migrations?

2021-05-11 Thread Matthew Pava
I've had similar issues. I just avoid squashing anymore. It's just not with the pain, and having so many little files that get looked at a minimal amount of time isn't worth fretting over. Saying that, I'd love to get it fixed... Sent from my Verizon, Samsung Galaxy smartphone Get Outlook for An

Re: Do people actually squash migrations?

2021-05-11 Thread Kye Russell
I’ve never successfully squashed my migrations to any material degree, but I’ve chalked that up to lack of doing it with any regularity. I suspect that squashing works a lot better if you aren’t trying to clean up a mess of hundreds of migrations files over 5 years, which is where I find myself!

Re: Do people actually squash migrations?

2021-05-11 Thread Benny
Sorry in advance of this isn’t helpful - We’ve done it successfully a few times since 1.11… but not without a sacrifice of the virgins-in-volcano variety. Just about any kind of RunPython command seems to get in the way. And sometimes it’s easier to blow them all away and create fresh migrations

Re: Do people actually squash migrations?

2021-05-11 Thread Andrew Godwin
Migration squashing was always meant to be something that was useful in a rapid development environment where you can't control all the installs (since it was a feature developed alongside a CMS run by many clients at the time). If you have control of all the places your project is installed and