Latest posts on Не могу сделать миграцию после добавления функций блога topichttp://python.su/forum/topic/35551/2018-07-12T23:50:33+03:00Общий :: Центр помощи :: Не могу сделать миграцию после добавления функций блога
2018-07-12T23:50:33+03:00Vladimirv193494python manage.py syncdb<br/>это старьё, у вас ‘новая’ версия django. Там следующий заход для обновления дб, вместо указанного на сайте<br/>python manage.py makemigrations your_app<br/>python manage.py migrate your_app<br/>и доки 14 года, возможно совместимо.
Общий :: Центр помощи :: Не могу сделать миграцию после добавления функций блога
2018-07-12T11:17:32+03:00Monster_Venum193456Делал все по инструкции <a href="http://aldryn-newsblog.readthedocs.io/en/latest/introduction.html#database-migrations">http://aldryn-newsblog.readthedocs.io/en/latest/introduction.html#database-migrations</a> <br/>Прошу помощи. Буду благодарен тем кто объянит<br/><br/>C:\Users\vasil\Desktop\website\blog>python manage.py syncdb<br/>Traceback (most recent call last):<br/> File “manage.py”, line 22, in <module><br/> execute_from_command_line(sys.argv)<br/> File “D:\Python\lib\site-packages\django\core\management\__init__.py”, line 364, in execute_from_command_line<br/> utility.execute()<br/> File “D:\Python\lib\site-packages\django\core\management\__init__.py”, line 338, in execute<br/> django.setup()<br/> File “D:\Python\lib\site-packages\django\__init__.py”, line 27, in setup<br/> apps.populate(settings.INSTALLED_APPS)<br/> File “D:\Python\lib\site-packages\django\apps\registry.py”, line 85, in populate<br/> app_config = AppConfig.create(entry)<br/> File “D:\Python\lib\site-packages\django\apps\config.py”, line 94, in create<br/> module = import_module(entry)<br/> File “D:\Python\lib\importlib\__init__.py”, line 37, in import_module<br/> __import__(name)<br/>ImportError: No module named djangocms_column<br/><br/>C:\Users\vasil\Desktop\website\blog>python manage.py migrate<br/>Traceback (most recent call last):<br/> File “manage.py”, line 22, in <module><br/> execute_from_command_line(sys.argv)<br/> File “D:\Python\lib\site-packages\django\core\management\__init__.py”, line 364, in execute_from_command_line<br/> utility.execute()<br/> File “D:\Python\lib\site-packages\django\core\management\__init__.py”, line 338, in execute<br/> django.setup()<br/> File “D:\Python\lib\site-packages\django\__init__.py”, line 27, in setup<br/> apps.populate(settings.INSTALLED_APPS)<br/> File “D:\Python\lib\site-packages\django\apps\registry.py”, line 85, in populate<br/> app_config = AppConfig.create(entry)<br/> File “D:\Python\lib\site-packages\django\apps\config.py”, line 94, in create<br/> module = import_module(entry)<br/> File “D:\Python\lib\importlib\__init__.py”, line 37, in import_module<br/> __import__(name)<br/>ImportError: No module named djangocms_column<br/><br/>C:\Users\vasil\Desktop\website\blog>