I am trying to customize the blog app in mezzanine. I created a new app
called mediablog and copied everything but migrations from the
mezzanine/blog folder.
I did a global search and replace using notebook++ in the mediablog folder.
I replaced all "blog" occurrences with "mediablog". I replaced
"mezzanine.blog.models" to ".models.
I used south to create a migrate file.
python manage.py schemamigration mediablog --initial.
the south command ran and came back with no errors.
+ Added model mediablog.mediablogPost
> + Added M2M table for categories on mediablog.mediablogPost
> + Added M2M table for related_posts on mediablog.mediablogPost
> + Added model mediablog.mediablogCategory
> Created 0002_initial.py. You can now apply this migration with:
> ./manage.py migr
> ate mediablog
But when I tried "python manage.py migrate media" and migrate the changes,
here is what I got.
Traceback (most recent call last):
> File "manage.py", line 29, in <module>
> execute_from_command_line(sys.argv)
> File
> "C:\django\web\lib\site-packages\django\core\management\__init__.py", line
> 399, in execute_from_command_line
> utility.execute()
> File
> "C:\django\web\lib\site-packages\django\core\management\__init__.py", line
> 392, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
> File "C:\django\web\lib\site-packages\django\core\management\base.py",
> line 242, in run_from_argv
> self.execute(*args, **options.__dict__)
> File "C:\django\web\lib\site-packages\django\core\management\base.py",
> line 285, in execute
> output = self.handle(*args, **options)
> File
> "C:\django\web\lib\site-packages\south\management\commands\migrate.py",
> line 66, in handle
> import_module('.management', app_name)
> File "C:\django\web\lib\importlib\__init__.py", line 90, in import_module
> return _bootstrap._gcd_import(name[level:], package, level)
> File "<frozen importlib._bootstrap>", line 1584, in _gcd_import
> File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
> File "<frozen importlib._bootstrap>", line 1532, in
> _find_and_load_unlocked
> File "<frozen importlib._bootstrap>", line 584, in _check_name_wrapper
> File "<frozen importlib._bootstrap>", line 1022, in load_module
> File "<frozen importlib._bootstrap>", line 1003, in load_module
> File "<frozen importlib._bootstrap>", line 560, in
> module_for_loader_wrapper
> File "<frozen importlib._bootstrap>", line 853, in _load_module
> File "<frozen importlib._bootstrap>", line 967, in get_code
> ValueError: bad marshal data (unknown type code)
I have checked for the bad marshal data (unknown type code) and could not
find anything that made sense in this application.
Thanks in advance.
--
You received this message because you are subscribed to the Google Groups
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.