On May 21, 2017 8:49 AM, <[email protected]> wrote:
Hi,
I'm fairly new to Django and I'm very much still in the learning process.
I'm using Django 1.10.3 on a project and have just added some new models.
When I run the server and enter a URL to visit one of my views, I get an
error, an excerpt of which is shown below:
File "/home/jja/testenv3.5/lib/python3.5/site-packages/
django/db/backends/sqlite3/base.py", line 337, in execute
return Database.Cursor.execute(self, query, params)
sqlite3.OperationalError: no such table: siggy_siggytemplate
I would like to look at the SQL tables and it looks like 'python manage.py
sql' is a command that could do the job, but whichh is no longer available.
Is this correct?
Is there an alternative command that I can run?\
I believe you're looking for the 'dbshell' command, which will open the
sqlite shell for you.
I would like to look at the tables to see if I can figure out why the table
'siggy_siggytemplate' was not generated. BTW, my project is 'siggy' and my
model is 'SiggyTemplate' so I think this would cause generation of the
table
'siggy_siggytemplate'.
Did you run the 'makemigrations' and 'migrate' commands? That pair of
commands will apply your changes to the DB schema.
-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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/CA%2Be%2BciUEmJ1cmbSvPH4P2US9V8k0TcZgWed4o351BsBOGhPHRw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.