Wednesday, May 2, 2018

Re: DJANGO Migrations from older version : South db

I tried it and getting this error

INFO 2018-05-02 15:15:22,713 CATMAID was unable to load the h5py library, which is an optional dependency. HDF5 tiles are therefore disabled. To enable, install h5py.
WARNING 2018-05-02 15:15:22,982 NeuroML module could not be loaded.
Traceback (most recent call last):
  File "manage.py", line 11, in <module>
    execute_from_command_line(sys.argv)
  File "/home/ankush/.virtualenvs/catmaid/lib/python3.5/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
    utility.execute()
  File "/home/ankush/.virtualenvs/catmaid/lib/python3.5/site-packages/django/core/management/__init__.py", line 356, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/ankush/.virtualenvs/catmaid/lib/python3.5/site-packages/django/core/management/base.py", line 283, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/home/ankush/.virtualenvs/catmaid/lib/python3.5/site-packages/django/core/management/base.py", line 330, in execute
    output = self.handle(*args, **options)
  File "/home/ankush/.virtualenvs/catmaid/lib/python3.5/site-packages/django/core/management/commands/makemigrations.py", line 96, in handle
    loader = MigrationLoader(None, ignore_no_migrations=True)
  File "/home/ankush/.virtualenvs/catmaid/lib/python3.5/site-packages/django/db/migrations/loader.py", line 52, in __init__
    self.build_graph()
  File "/home/ankush/.virtualenvs/catmaid/lib/python3.5/site-packages/django/db/migrations/loader.py", line 203, in build_graph
    self.load_disk()
  File "/home/ankush/.virtualenvs/catmaid/lib/python3.5/site-packages/django/db/migrations/loader.py", line 114, in load_disk
    migration_module = import_module("%s.%s" % (module_name, migration_name))
  File "/home/ankush/.virtualenvs/catmaid/lib/python3.5/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 986, in _gcd_import
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 665, in exec_module
  File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
  File "/home/ankush/catmaid/django/applications/catmaid/migrations/0004_auto__add_tool_display_to_user_profiles.py", line 3, in <module>
    from south.db import db
ImportError: No module named 'south'

Best regards
​Ankush ​


On Wed, May 2, 2018 at 11:48 AM Gerald Brown <gsbrown43@gmail.com> wrote:

If you have the original models.py files just run "python manage.py makemigrations" and then "python manage.py migrate".


On Wednesday, 02 May, 2018 05:11 PM, Ank wrote:
Dear All,

I would like to do some migrations that are compatible with older django version using southdb to the newer version. How can these files be updated.iḿ attaching one of the file that is needed to be migrated. 

Any help will be appreciated

 Best
Ank
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/043a69c6-4ea9-48b8-9b42-b088e02ddd37%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b35c7fd6-6af9-fe90-fdad-f2220f968363%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAALWEk14yLR8LNexZE5u9KtBerYfZGnAYYJgYRmeQfBN1Aryag%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment