I think my first 'result' may be more down to the set up of my testing
environment......
I set up 4 test environments using pyenv and each of them fails in a
different way when I run
python manage.py createdb --settings=settings
I had to use --settings=settings because the correct settings file was
not being picked up
With Python 2.7.9 and Django 1.7 below is what happens
Advice on what to do next please
Regards
G
(py2.7.9-dj1.7)graham@graham-laptop:~/mp-py2.79-dj1.7$ python manage.py
createdb --settings=settings
/home/graham/.pyenv/versions/py2.7.9-dj1.7/lib/python2.7/site-packages/mezzanine/utils/conf.py:51:
UserWarning: You haven't defined the ALLOWED_HOSTS settings, which
Django requires. Will fall back to the domains configured as sites.
warn("You haven't defined the ALLOWED_HOSTS settings, which "
/home/graham/.pyenv/versions/py2.7.9-dj1.7/lib/python2.7/site-packages/mezzanine/utils/conf.py:59:
UserWarning: TIME_ZONE setting is not set, using closest match:
Pacific/Auckland
warn("TIME_ZONE setting is not set, using closest match: %s" % tz)
System check identified some issues:
WARNINGS:
?: (1_6.W001) Some project unittests may not execute as expected.
HINT: Django 1.6 introduced a new default test runner. It looks
like this project was generated using Django 1.5 or earlier. You should
ensure your tests are all running & behaving as expected. See
https://docs.djangoproject.com/en/dev/releases/1.6/#new-test-runner for
more information.
System check identified some issues:
WARNINGS:
?: (1_6.W001) Some project unittests may not execute as expected.
HINT: Django 1.6 introduced a new default test runner. It looks
like this project was generated using Django 1.5 or earlier. You should
ensure your tests are all running & behaving as expected. See
https://docs.djangoproject.com/en/dev/releases/1.6/#new-test-runner for
more information.
Traceback (most recent call last):
File "manage.py", line 34, in <module>
execute_from_command_line(sys.argv)
File
"/home/graham/.pyenv/versions/py2.7.9-dj1.7/lib/python2.7/site-packages/django/core/management/__init__.py",
line 385, in execute_from_command_line
utility.execute()
File
"/home/graham/.pyenv/versions/py2.7.9-dj1.7/lib/python2.7/site-packages/django/core/management/__init__.py",
line 377, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File
"/home/graham/.pyenv/versions/py2.7.9-dj1.7/lib/python2.7/site-packages/django/core/management/base.py",
line 288, in run_from_argv
self.execute(*args, **options.__dict__)
File
"/home/graham/.pyenv/versions/py2.7.9-dj1.7/lib/python2.7/site-packages/django/core/management/base.py",
line 338, in execute
output = self.handle(*args, **options)
File
"/home/graham/.pyenv/versions/py2.7.9-dj1.7/lib/python2.7/site-packages/django/core/management/base.py",
line 533, in handle
return self.handle_noargs(**options)
File
"/home/graham/.pyenv/versions/py2.7.9-dj1.7/lib/python2.7/site-packages/mezzanine/core/management/commands/createdb.py",
line 40, in handle_noargs
migrate.Command().execute(**options)
File
"/home/graham/.pyenv/versions/py2.7.9-dj1.7/lib/python2.7/site-packages/django/core/management/base.py",
line 338, in execute
output = self.handle(*args, **options)
File
"/home/graham/.pyenv/versions/py2.7.9-dj1.7/lib/python2.7/site-packages/django/core/management/commands/migrate.py",
line 63, in handle
executor = MigrationExecutor(connection,
self.migration_progress_callback)
File
"/home/graham/.pyenv/versions/py2.7.9-dj1.7/lib/python2.7/site-packages/django/db/migrations/executor.py",
line 17, in __init__
self.loader = MigrationLoader(self.connection)
File
"/home/graham/.pyenv/versions/py2.7.9-dj1.7/lib/python2.7/site-packages/django/db/migrations/loader.py",
line 48, in __init__
self.build_graph()
File
"/home/graham/.pyenv/versions/py2.7.9-dj1.7/lib/python2.7/site-packages/django/db/migrations/loader.py",
line 173, in build_graph
self.load_disk()
File
"/home/graham/.pyenv/versions/py2.7.9-dj1.7/lib/python2.7/site-packages/django/db/migrations/loader.py",
line 103, in load_disk
migration_module = import_module("%s.%s" % (module_name,
migration_name))
File
"/home/graham/.pyenv/versions/2.7.9/lib/python2.7/importlib/__init__.py", line
37, in import_module
__import__(name)
File
"/home/graham/.pyenv/versions/py2.7.9-dj1.7/lib/python2.7/site-packages/mezzanine/generic/migrations/0002_auto_20141227_0224.py",
line 8, in <module>
class Migration(migrations.Migration):
File
"/home/graham/.pyenv/versions/py2.7.9-dj1.7/lib/python2.7/site-packages/mezzanine/generic/migrations/0002_auto_20141227_0224.py",
line 19, in Migration
preserve_default=True,
TypeError: __init__() got an unexpected keyword argument 'preserve_default'
--
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.