no such table: blog_entry
Request Method: | GET |
---|---|
Request URL: | http://mysite.com/ |
Django Version: | 1.7 |
Exception Type: | OperationalError |
Exception Value: | no such table: blog_entry |
Exception Location: | /home/my_username/.env/env/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py in execute, line 485 |
Python Executable: | /home/my_username/.env/env/bin/python |
Python Version: | 2.7.8 |
Python Path: | ['/home/my_username/mysite.com/my_site', '/home/my_username/.env/env/lib/python2.7/site-packages', '/home/my_username/public_html', '/home/my_username/.env/env/lib/python27.zip', '/home/my_username/.env/env/lib/python2.7', '/home/my_username/.env/env/lib/python2.7/plat-linux2', '/home/my_username/.env/env/lib/python2.7/lib-tk', '/home/my_username/.env/env/lib/python2.7/lib-old', '/home/my_username/.env/env/lib/python2.7/lib-dynload', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk'] |
Server time: | Sat, 18 Apr 2015 16:57:50 +0000 |
You don't mention running 'manage.py makemigrations' or 'manage.py migrate' in any of your output. The error you are getting indicates that Django has access to a database, but the table schema is incorrect. If you haven't previously run migrate, then you have no tables, which explains the error you are getting.
-James
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d85339f1-0d45-4595-8d4e-2eb2ea04826b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No need to switch databases.
Do you have any shell access to the server? Can you manually inspect the database to see if the table actually exists (outside of any Django commands)? I'm not sure what ASO offers.
-James
Or I'm using sqlite should I switch to mysql?
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/89b0e022-7f83-4ceb-991f-dcbca49ce78d%40googlegroups.com.