Перейти к содержимому
Калькуляторы

Munis

Пользователи
  • Публикации

    1
  • Зарегистрирован

  • Посещение

О Munis

  • Звание
    Абитуриент
  1. Здравствуйте. Поставил себе NOC 0.2.2, при установке особых проблем не возникло, но при выполнении ./manage.py migrate возникла такая ошибка: Running migrations for main: - Migrating forwards to 0008_default_mime_types. > main: 0005_init_languages = INSERT INTO main_language(name,native_name,is_active) VALUES(%s,%s,%s) ['Afar', 'Afaraf', False] = INSERT INTO main_language(name,native_name,is_active) VALUES(%s,%s,%s) ['Abkhazian', '\xd0\x90\xd2\xa7\xd1\x81\xd1\x83\xd0\xb0', False] Traceback (most recent call last): File "./manage.py", line 11, in <module> execute_manager(settings) File "/usr/local/lib/python2.5/site-packages/Django-1.0.2_final-py2.5.egg/django/core/management/__init__.py", line 340, in execute_manager utility.execute() File "/usr/local/lib/python2.5/site-packages/Django-1.0.2_final-py2.5.egg/django/core/management/__init__.py", line 295, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/local/lib/python2.5/site-packages/Django-1.0.2_final-py2.5.egg/django/core/management/base.py", line 192, in run_from_argv self.execute(*args, **options.__dict__) File "/usr/local/lib/python2.5/site-packages/Django-1.0.2_final-py2.5.egg/django/core/management/base.py", line 219, in execute output = self.handle(*args, **options) File "/usr/local/lib/python2.5/site-packages/South-0.5-py2.5.egg/south/management/commands/migrate.py", line 81, in handle skip = skip, File "/usr/local/lib/python2.5/site-packages/South-0.5-py2.5.egg/south/migration.py", line 526, in migrate_app result = run_forwards(mapp, [mname], fake=fake, db_dry_run=db_dry_run, silent=silent) File "/usr/local/lib/python2.5/site-packages/South-0.5-py2.5.egg/south/migration.py", line 320, in run_forwards silent = silent, File "/usr/local/lib/python2.5/site-packages/South-0.5-py2.5.egg/south/migration.py", line 264, in run_migrations runfunc() File "/opt/noc/main/migrations/0005_init_languages.py", line 203, in forwards db.execute("INSERT INTO main_language(name,native_name,is_active) VALUES(%s,%s,%s)",[lang,native,lang=="English"]) File "/usr/local/lib/python2.5/site-packages/South-0.5-py2.5.egg/south/db/generic.py", line 70, in execute cursor.execute(sql, params) File "/usr/local/lib/python2.5/site-packages/Django-1.0.2_final-py2.5.egg/django/db/backends/util.py", line 19, in execute return self.cursor.execute(sql, params) psycopg2.DataError: character 0xd090 of encoding "UTF8" has no equivalent in "LATIN1" При запуске, в веб-интерфейсе, во всех таблицах кроме main происходит следующее: Environment: Request Method: GET Request URL: http://10.1.1.7:8080/admin/sa/managedobject/ Django Version: 1.0.2 final Python Version: 2.5.4 Installed Applications: ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin', 'south', 'noc.main', 'noc.sa', 'noc.fm', 'noc.cm', 'noc.ip', 'noc.vc', 'noc.dns', 'noc.peer', 'noc.kb'] Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.middleware.doc.XViewMiddleware', 'django.middleware.transaction.TransactionMiddleware') Traceback: File "/usr/local/lib/python2.5/site-packages/Django-1.0.2_final-py2.5.egg/django/core/handlers/base.py" in get_response 86. response = callback(request, *callback_args, **callback_kwargs) File "/usr/local/lib/python2.5/site-packages/Django-1.0.2_final-py2.5.egg/django/contrib/admin/sites.py" in root 157. return self.model_page(request, *url.split('/', 2)) File "/usr/local/lib/python2.5/site-packages/Django-1.0.2_final-py2.5.egg/django/views/decorators/cache.py" in _wrapped_view_func 44. response = view_func(request, *args, **kwargs) File "/usr/local/lib/python2.5/site-packages/Django-1.0.2_final-py2.5.egg/django/contrib/admin/sites.py" in model_page 176. return admin_obj(request, rest_of_url) File "/usr/local/lib/python2.5/site-packages/Django-1.0.2_final-py2.5.egg/django/contrib/admin/options.py" in __call__ 189. return self.changelist_view(request) File "/usr/local/lib/python2.5/site-packages/Django-1.0.2_final-py2.5.egg/django/contrib/admin/options.py" in changelist_view 630. self.date_hierarchy, self.search_fields, self.list_select_related, self.list_per_page, self) File "/usr/local/lib/python2.5/site-packages/Django-1.0.2_final-py2.5.egg/django/contrib/admin/views/main.py" in __init__ 39. self.root_query_set = model_admin.queryset(request) File "/opt/noc/sa/admin.py" in queryset 93. return ManagedObject.queryset(request.user) File "/opt/noc/sa/models.py" in queryset 147. ids=[o.id for o in cls.objects.all() if o.has_access(user)] File "/usr/local/lib/python2.5/site-packages/Django-1.0.2_final-py2.5.egg/django/db/models/query.py" in _result_iter 185. self._fill_cache() File "/usr/local/lib/python2.5/site-packages/Django-1.0.2_final-py2.5.egg/django/db/models/query.py" in _fill_cache 618. self._result_cache.append(self._iter.next()) File "/usr/local/lib/python2.5/site-packages/Django-1.0.2_final-py2.5.egg/django/db/models/query.py" in iterator 275. for row in self.query.results_iter(): File "/usr/local/lib/python2.5/site-packages/Django-1.0.2_final-py2.5.egg/django/db/models/sql/query.py" in results_iter 206. for rows in self.execute_sql(MULTI): File "/usr/local/lib/python2.5/site-packages/Django-1.0.2_final-py2.5.egg/django/db/models/sql/query.py" in execute_sql 1734. cursor.execute(sql, params) File "/usr/local/lib/python2.5/site-packages/Django-1.0.2_final-py2.5.egg/django/db/backends/util.py" in execute 19. return self.cursor.execute(sql, params) Exception Type: ProgrammingError at /admin/sa/managedobject/ Exception Value: relation "sa_managedobject" does not exist Вопрос: связано-ли первое со вторым и как с этим бороться. Система Slackware 12.1, все пакеты ставил по мануалу. Заранее спасибо.