python - Django 1.5 DatabaseError at / (1146 , "Table 'x.y' doesn't exist") -


i'm facing error:

databaseerror @ / (1146 , "table 'mycompany_db.mycompany_table' doesn't exist") 

for project, i'm running python 2.7, django 1.5 , mysql 5.26 (and cannot change or upgrade stack while).

all dependecies installed via pip.

here settings.py (snippet):

databases = {     'default': {         'engine': 'django.db.backends.mysql',         'name': 'mycompany_db',                  'user': 'root',         'password': 'development',            'host': '127.0.0.1',             'port': '3306',     } } 

the console shows me:

failed submit message: u'databaseerror: (1146, "table \'mycompany_db.mycompany_table\' doesn\'t exist")' 

of course, before running development server, ran syncdb , migrate.

so, should in order resolve this?

gratitude,

syncdb not create joining tables many many fields. can create table migration (with south django < 1.7), or running create table statements manually.

you can see sql required create table sqlall command.

./manage.py sqlall yourapp 

since haven't shown model, , have censored error messages, it's not possible give more specific advice.


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -