при выполнение команды migrate появляется вот это
D:\blog_v>.\manage.py migrate weblog
Running migrations for weblog:
- Migrating forwards to 0002_auto__add_field_posts_slug.
> weblog:0001_initial
FATAL ERROR - The following SQL query failed: CREATE TABLE "weblog_posts" ("id"
integer NOT NULL PRIMARY KEY, "title" varchar(100) NOT NULL, "authors" varchar(1
00) NOT NULL, "post" text NOT NULL, "data_posts" date NOT NULL, "category" varch
ar(100) NULL)
The error was: table "weblog_posts" already exists
! Error found during real run of migration! Aborting.
! Since you have a database that does not support running
! schema-altering statements in transactions, we have had
! to leave it in an interim state between migrations.
! You *might* be able to recover with: = DROP TABLE "weblog_posts"; []
= DROP TABLE "weblog_bloguser"; []
! The South developers regret this has happened, and would
! like to gently persuade you to consider a slightly
! easier-to-deal-with DBMS (one that supports DDL transactions)
! NOTE: The error which caused the migration to fail is further up.
Error in migration: weblog:0001_initial
Traceback (most recent call last):
File "D:\blog_v\manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "C:\Python27\lib\site-packages\django\core\management\__init__.py", line
443, in execute_from_command_line
utility.execute()
File "C:\Python27\lib\site-packages\django\core\management\__init__.py", line
382, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "C:\Python27\lib\site-packages\django\core\management\base.py", line 196,
in run_from_argv
self.execute(*args, **options.__dict__)
File "C:\Python27\lib\site-packages\django\core\management\base.py", line 232,
in execute
output = self.handle(*args, **options)
File "C:\Python27\lib\site-packages\south-0.8.1-py2.7.egg\south\management\com
mands\migrate.py", line 111, in handle
ignore_ghosts = ignore_ghosts,
File "C:\Python27\lib\site-packages\south-0.8.1-py2.7.egg\south\migration\__init__.py",
line 220, in migrate_app
success = migrator.migrate_many(target, workplan, database)
File "C:\Python27\lib\site-packages\south-0.8.1-py2.7.egg\south\migration\
migrators.py", line 232, in migrate_many
result = migrator.__class__.migrate_many(migrator, target, migrations, database)
File "C:\Python27\lib\site-packages\south-0.8.1-py2.7.egg\south\migration\
migrators.py", line 307, in migrate_many
result = self.migrate(migration, database)
File "C:\Python27\lib\site-packages\south-0.8.1-py2.7.egg\south\migration\
migrators.py", line 132, in migrate
result = self.run(migration, database)
File "C:\Python27\lib\site-packages\south-0.8.1-py2.7.egg\south\migration\
migrators.py", line 116, in run
return self.run_migration(migration, database)
File "C:\Python27\lib\site-packages\south-0.8.1-py2.7.egg\south\migration\
migrators.py", line 86, in run_migration
migration_function()
File "C:\Python27\lib\site-packages\south-0.8.1-py2.7.egg\south\migration\
migrators.py", line 62, in <lambda>
return (lambda: direction(orm))
File "D:\blog_v\weblog\migrations\0001_initial.py", line 18, in forwards
('category', self.gf('django.db.models.fields.CharField')(max_length=100, null=True)),
File "C:\Python27\lib\site-packages\south-0.8.1-py2.7.egg\south\db\generic.py"
, line 47, in _cache_clear
return func(self, table, *args, **opts)
File "C:\Python27\lib\site-packages\south-0.8.1-py2.7.egg\south\db\generic.py"
, line 361, in create_table
"columns": ', '.join([col for col in columns if col]),
File "C:\Python27\lib\site-packages\south-0.8.1-py2.7.egg\south\db\generic.py"
, line 282, in execute
cursor.execute(sql, params)
File "C:\Python27\lib\site-packages\django\db\backends\util.py", line 40, in execute
return self.cursor.execute(sql, params)
File "C:\Python27\lib\site-packages\django\db\backends\sqlite3\base.py", line
344, in execute
return Database.Cursor.execute(self, query, params)
django.db.utils.DatabaseError: table "weblog_posts" already exists