Description of problem: When running /usr/share/openstack-dashboard/manage.py syncdb --noinput after creating the database it errors with this message: Traceback (most recent call last): File "/usr/share/openstack-dashboard/manage.py", line 23, in <module> execute_from_command_line(sys.argv) File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 338, in execute_from_command_line utility.execute() File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 330, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/lib/python2.7/site-packages/django/core/management/base.py", line 390, in run_from_argv self.execute(*args, **cmd_options) File "/usr/lib/python2.7/site-packages/django/core/management/base.py", line 440, in execute self.check() File "/usr/lib/python2.7/site-packages/django/core/management/base.py", line 478, in check include_deployment_checks=include_deployment_checks, File "/usr/lib/python2.7/site-packages/django/core/checks/registry.py", line 72, in run_checks new_errors = check(app_configs=app_configs) File "/usr/lib/python2.7/site-packages/django/contrib/auth/checks.py", line 12, in check_user_model cls = apps.get_model(settings.AUTH_USER_MODEL) File "/usr/lib/python2.7/site-packages/django/apps/registry.py", line 202, in get_model return self.get_app_config(app_label).get_model(model_name.lower()) File "/usr/lib/python2.7/site-packages/django/apps/config.py", line 162, in get_model "App '%s' doesn't have a '%s' model." % (self.label, model_name)) LookupError: App 'openstack_auth' doesn't have a 'user' model. Version-Release number of selected component (if applicable): openstack-dashboard-2015.1.0-7.el7.noarch.rpm How reproducible: Steps to Reproduce: 1. Install openstack-dashboard-2015.1.0-7.el7.noarch.rpm 2. Create MySQL database & configure it in local_settings 3. Run /usr/share/openstack-dashboard/manage.py syncdb Actual results: Error above Expected results: No error and a populated horizon database. Additional info:
I was able to fix this issue by adding from user import User to openstack_auth/__init__.py: git diff diff --git a/openstack_auth/__init__.py b/openstack_auth/__init__.py index 67e4860..cf681c2 100644 --- a/openstack_auth/__init__.py +++ b/openstack_auth/__init__.py @@ -13,5 +13,6 @@ import pbr.version +from user import User __version__ = pbr.version.VersionInfo('django_openstack_auth').version_string() A package update will follow shortly.
build for f23 http://koji.fedoraproject.org/koji/taskinfo?taskID=10175913
The version should be in repos now.
one additional word: for django-1.8, one should rather use ./manage.py migrate
Thanks Matthias! Looking good.