python - column <column> does not exist (Django 1.8) -


i trying interact development server django project. page on server returns same error:

exception type: programmingerror  exception value: column myapp_verb.date not exist 

i had not added field date model verb (it's been there while, , i'm not sure caused error begin). collaborators have identical files on local machines, , none of them having issues.

i have tried various things:

i have tried removing date field (and references it). makemigrations did not detect changes, , migrate failed error:

django.db.utils.programmingerror: column "date" not exist

i have tried renaming field. once again makemigrations did not detect changes, , migrate failed same error above.

i have tried deleting of migrations. changed nothing.

i'm out of ideas @ point. appreciated.

thanks in advance!

edit: here verb class, requested. pretty simple:

class verb(models.model):     english_gloss = models.charfield(max_length = 20)     first_person = models.charfield(max_length = 20)     second_person = models.charfield(max_length = 20)     third_person = models.charfield(max_length = 20)     fourth_person = models.charfield(max_length = 20)     transitivity = models.booleanfield()     classifier = models.charfield(max_length = 20)     inner_lexical = models.charfield(max_length = 20)     outer_lexical = models.charfield(max_length = 20)     perfective = models.charfield(max_length = 20)     imperfective = models.charfield(max_length = 20)     date = models.datetimefield(auto_now_add = true) 

you can create manual migration fix issue.

first comment out coloumn(s) throwing error.

then write manual migration. this:

# -*- coding: utf-8 -*- __future__ import unicode_literals django.db import migrations, models      class migration(migrations.migration):         dependencies = [         ('my_field', 'last_migration_filename'), # no .py     ]              operations = [         migrations.addfield(             model_name='my_model',             name='my_field',             field=models.myfield(blank=true, null=true),         ),     ] 

then run python manage.py migrate. create that/those field(s).

afterwards, uncomment fields cause errors.

worked me charm.


Comments

Popular posts from this blog

java - Andrioid studio start fail: Fatal error initializing 'null' -

android - Gradle sync Error:Configuration with name 'default' not found -

StringGrid issue in Delphi XE8 firemonkey mobile app -