We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
При использовании внешней БД для хранения данных
FIAS_DATABASE_ALIAS = 'fias' DATABASE_ROUTERS = ( 'fias.routers.FIASRouter' )
при выполнении миграции возникает ошибка
root@rancher:~/app# ./manage.py migrate Traceback (most recent call last): File "./manage.py", line 22, in <module> execute_from_command_line(sys.argv) File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 363, in execute_from_command_line utility.execute() File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 355, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 283, in run_from_argv self.execute(*args, **cmd_options) File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 327, in execute self.check() File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 359, in check include_deployment_checks=include_deployment_checks, File "/usr/local/lib/python2.7/dist-packages/django/core/management/commands/migrate.py", line 62, in _run_checks issues.extend(super(Command, self)._run_checks(**kwargs)) File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 346, in _run_checks return checks.run_checks(**kwargs) File "/usr/local/lib/python2.7/dist-packages/django/core/checks/registry.py", line 81, in run_checks new_errors = check(app_configs=app_configs) File "/usr/local/lib/python2.7/dist-packages/django/core/checks/model_checks.py", line 30, in check_all_models errors.extend(model.check(**kwargs)) File "/usr/local/lib/python2.7/dist-packages/django/db/models/base.py", line 1283, in check errors.extend(cls._check_fields(**kwargs)) File "/usr/local/lib/python2.7/dist-packages/django/db/models/base.py", line 1358, in _check_fields errors.extend(field.check(**kwargs)) File "/usr/local/lib/python2.7/dist-packages/django/db/models/fields/__init__.py", line 913, in check errors = super(AutoField, self).check(**kwargs) File "/usr/local/lib/python2.7/dist-packages/django/db/models/fields/__init__.py", line 219, in check errors.extend(self._check_backend_specific_checks(**kwargs)) File "/usr/local/lib/python2.7/dist-packages/django/db/models/fields/__init__.py", line 321, in _check_backend_specific_checks if router.allow_migrate(db, app_label, model_name=self.model._meta.model_name): File "/usr/local/lib/python2.7/dist-packages/django/db/utils.py", line 293, in allow_migrate for router in self.routers: File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", line 35, in __get__ res = instance.__dict__[self.name] = self.func(instance) File "/usr/local/lib/python2.7/dist-packages/django/db/utils.py", line 251, in routers router = import_string(r)() File "/usr/local/lib/python2.7/dist-packages/django/utils/module_loading.py", line 18, in import_string six.reraise(ImportError, ImportError(msg), sys.exc_info()[2]) File "/usr/local/lib/python2.7/dist-packages/django/utils/module_loading.py", line 15, in import_string module_path, class_name = dotted_path.rsplit('.', 1) ImportError: f doesn't look like a module path
Debian, Django 1.11.3
The text was updated successfully, but these errors were encountered:
DATABASE_ROUTERS = ( 'fias.routers.FIASRouter' )
==>
DATABASE_ROUTERS = ( 'fias.routers.FIASRouter', )
Sorry, something went wrong.
No branches or pull requests
При использовании внешней БД для хранения данных
при выполнении миграции возникает ошибка
Debian, Django 1.11.3
The text was updated successfully, but these errors were encountered: