в джанго обновилася система синхронизации
когда пишу python manage.py syncdb
выводит лог:
user@u:~/project/mysite$ python manage.py syncdb
Creating table auth_message
Creating table auth_group
Creating table auth_user
Creating table auth_permission
Creating table django_content_type
Creating table django_session
Creating table django_site
Creating table django_admin_log
You just installed Django's auth system, which means you don't have any superusers defined.
Would you like to create one now? (yes/no): yes
Error: You must use –username and –email with –noinput.
—————–
тогда пишу
python manage.py syncdb –noinput
тогд лог без ошибок
user@:~/django_project/mysite$ python manage.py syncdb –noinput
Creating table auth_message
Creating table auth_group
Creating table auth_user
Creating table auth_permission
Creating table django_content_type
Creating table django_session
Creating table django_site
Creating table django_admin_log
Installing index for auth.Message model
Installing index for auth.Permission model
Installing index for admin.LogEntry model
r@г:~/django_project/mysite$
тогда для создания нового суперюзера пишу новую команду с 7595
python manage.py createsuperuser –email=aaa@ho.ru –username=roza
выводит лог
File “manage.py”, line 11, in <module>
execute_manager(settings)
File “/usr/lib/python2.5/site-packages/django/core/management/__init__.py”, line 272, in execute_manager
utility.execute()
File “/usr/lib/python2.5/site-packages/django/core/management/__init__.py”, line 219, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File “/usr/lib/python2.5/site-packages/django/core/management/base.py”, line 72, in run_from_argv
self.execute(*args, **options.__dict__)
File “/usr/lib/python2.5/site-packages/django/core/management/base.py”, line 86, in execute
output = self.handle(*args, **options)
File “/usr/lib/python2.5/site-packages/django/contrib/auth/management/commands/createsuperuser.py”, line 105, in handle
if not password:
UnboundLocalError: local variable ‘password’ referenced before assignment
————————
Вопрос : что за local variable ‘password’ я не ввожу если в настройках (settings.py) пароль отработал при создании базы? или это есть БАГ?
спасибо кто ответит