M
M
maxclax2014-12-23 23:54:01
Django
maxclax, 2014-12-23 23:54:01

Django, beginner questions?

Migrations:
Development is underway, I constantly change the data in the models and, of course, when necessary, I carry out makemigrations and the migration itself. Next, I connect a third-party battery to the fields in the models. And I'm running the migration again. After a while, I decide to replace this battery with another one. When using the makemigrations command, I get an error that in some migration it was not possible to pull up the module (I deleted it). And the migration fails. At the moment, I'm doing this: demolishing the database, deleting all migration files. And all over again, + loading fixtures. As a result, it turns out that all GITHOM commits were previously made with migrations to one place. How to be in this situation?
---------------------------------
PIP
When testing some packages during installation, they install dependencies for their work. How, when removing these batteries, remove all installation dependencies? At the moment I'm uninstalling everything manually, one package at a time pip uninstall [packet]

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sim3x, 2014-12-24
@maxclax

pip
if you manually add all the packages, then it's easier to remove the virtualenv and

When using the makemigrations command, I get an error that a module could not be pulled in a certain migration
into the studio

V
Vladislav, 2014-12-24
@RGV

Did you remove the module from INSTALLED_APP?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question