Найти - Пользователи
Полная версия: Некорректная работа syncdb
Начало » Python для новичков » Некорректная работа syncdb
1
-den-
Всем привет! Начал осваивать python+django и сразу же столкнулся с проблемой(( Делаю все как описано здесь - http://djbook.ru/rel1.6/index.html, дохожу до момента python manage.py syncdb и получаю вот такое сообщение
c:\myProjects\mysite>python manage.py syncdb
Creating tables ...
Creating table django_admin_log
Creating table auth_permission
Creating table auth_group_permissions
Creating table auth_group
Creating table auth_user_groups
Creating table auth_user_user_permissions
Creating table auth_user
Creating table django_content_type
Creating table django_session
Traceback (most recent call last):
File "manage.py", line 11, in <module>
execute_from_command_line(sys.argv)
File "C:\Python27\lib\site-packages\django-1.6.5-py2.7.egg\django\core\managem
ent\__init__.py", line 399, in execute_from_command_line
utility.execute()
File "C:\Python27\lib\site-packages\django-1.6.5-py2.7.egg\django\core\managem
ent\__init__.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "C:\Python27\lib\site-packages\django-1.6.5-py2.7.egg\django\core\managem
ent\base.py", line 242, in run_from_argv
self.execute(*args, **options.__dict__)
File "C:\Python27\lib\site-packages\django-1.6.5-py2.7.egg\django\core\managem
ent\base.py", line 285, in execute
output = self.handle(*args, **options)
File "C:\Python27\lib\site-packages\django-1.6.5-py2.7.egg\django\core\managem
ent\base.py", line 415, in handle
return self.handle_noargs(**options)
File "C:\Python27\lib\site-packages\django-1.6.5-py2.7.egg\django\core\managem
ent\commands\syncdb.py", line 112, in handle_noargs
emit_post_sync_signal(created_models, verbosity, interactive, db)
File "C:\Python27\lib\site-packages\django-1.6.5-py2.7.egg\django\core\managem
ent\sql.py", line 216, in emit_post_sync_signal
interactive=interactive, db=db)
File "C:\Python27\lib\site-packages\django-1.6.5-py2.7.egg\django\dispatch\dis
patcher.py", line 185, in send
response = receiver(signal=self, sender=sender, **named)
File "C:\Python27\lib\site-packages\django-1.6.5-py2.7.egg\django\contrib\auth
\management\__init__.py", line 101, in create_permissions
auth_app.Permission.objects.using(db).bulk_create(perms)
File "C:\Python27\lib\site-packages\django-1.6.5-py2.7.egg\django\db\models\qu
ery.py", line 359, in bulk_create
self._batched_insert(objs_without_pk, fields, batch_size)
File "C:\Python27\lib\site-packages\django-1.6.5-py2.7.egg\django\db\models\qu
ery.py", line 838, in _batched_insert
using=self.db)
File "C:\Python27\lib\site-packages\django-1.6.5-py2.7.egg\django\db\models\ma
nager.py", line 232, in _insert
return insert_query(self.model, objs, fields, **kwargs)
File "C:\Python27\lib\site-packages\django-1.6.5-py2.7.egg\django\db\models\qu
ery.py", line 1514, in insert_query
return query.get_compiler(using=using).execute_sql(return_id)
File "C:\Python27\lib\site-packages\django-1.6.5-py2.7.egg\django\db\models\sq
l\compiler.py", line 903, in execute_sql
cursor.execute(sql, params)
File "C:\Python27\lib\site-packages\django-1.6.5-py2.7.egg\django\db\backends\
util.py", line 69, in execute
return super(CursorDebugWrapper, self).execute(sql, params)
File "C:\Python27\lib\site-packages\django-1.6.5-py2.7.egg\django\db\backends\
util.py", line 53, in execute
return self.cursor.execute(sql, params)
File "C:\Python27\lib\site-packages\django-1.6.5-py2.7.egg\django\db\utils.py"
, line 99, in __exit__
six.reraise(dj_exc_type, dj_exc_value, traceback)
File "C:\Python27\lib\site-packages\django-1.6.5-py2.7.egg\django\db\backends\
util.py", line 53, in execute
return self.cursor.execute(sql, params)
File "C:\Python27\lib\site-packages\django-1.6.5-py2.7.egg\django\db\backends\
sqlite3\base.py", line 451, in execute
return Database.Cursor.execute(self, query, params)
django.db.utils.OperationalError: unable to open database file
уже 2 дня бьюсь ничего не помогает, нагуглить тож не получается((
Операционная система - Win7, антивирус отключен.
Помогите, пожалуйста. может кто сталкивался!!!
McClay
А пробовали удалить БД и снова запустить? А еще проверьте, правильный ли путь указали в settings.py
-den-
БД удалить пробовал, пути тоже по-разному пробовал.
Прошу прощения, создал такую же тему, только в разделе с django - http://python.su/forum/topic/24375/ (сразу не увидел этого раздела)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB