2014-11-17 227 views
1

我有一個在Heroku上使用Django 1.7.1和Python 3在Cedar棧上運行的Django-CMS項目。在Heroku上遷移失敗

我可以創建就好使用遷移:heroku run python manage.py makemigrations返回:

Migrations for 'zinnia': 
    0002_entry_content_placeholder.py: 
     - Add field content_placeholder to entry 

然而,通過運行遷移:heroku run python manage.py migrate回報:

Operations to perform: 
    Synchronize unmigrated apps: mptt, tagging, djangocms_admin_style, localflavor, django_comments, robots, ckeditor, sekizai, compressor, cmsplugin_plaintext, storages 
    Apply all migrations: admin, cms, zinnia, sessions, contenttypes, sites, auth, djangocms_link, djangocms_file, djangocms_picture, djangocms_text_ckeditor, menus 
Synchronizing apps without migrations: 
    Creating tables... 
    Installing custom SQL... 
    Installing indexes... 
Running migrations: 
    No migrations to apply. 
    Your models have changes that are not yet reflected in a migration, 
     and so won't be applied. 
    Run 'manage.py makemigrations' to make new migrations, and then re-run 
     'manage.py migrate' to apply them. 

重新運行makemigrationsmigrate簡單的返回同樣的錯誤陳述。我究竟做錯了什麼?

回答

0

我不是那麼肯定在那一個,可是你跑遷移,創建該文件後:

技術 _entry_content_placeholder.py

是當你看到,第二個遷移文件。 如果它是您的選項,您可以嘗試刪除/重命名遷移文件夾/文件並再次運行makemigrations。 前段時間我也遇到了同樣的錯誤,如果我沒記錯的話,那就算了。

對不起,因爲糟糕英語

+0

我會給一個嘗試,謝謝。 – Brandon