db = sqlite3.connect('db.sqlite3')
cursor = db.cursor()
cursor.execute('insert into music_final(username,meaning) values(?,?)', (name, meaning))
db.commit()
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
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/5bb72467-21c0-426e-9699-1c654d4511b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Ruban,Well, what's the type of `name`? That's what the error is saying: You're passing a type that SQLite doesn't understand properly.Also, why are you not using models to do that for you?
On Mon, Aug 13, 2018 at 9:42 AM, ruban bharath <rubanbh...@gmail.com> wrote:
how to resolve from this error Error binding parameter 0 - probably unsupported typedb = sqlite3.connect('db.sqlite3')
cursor = db.cursor()
cursor.execute('insert into music_final(username,meaning) values(?,?)', (name, meaning))
db.commit()
--
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5bb72467-21c0-426e-9699-1c654d4511b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
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/a6950b99-c31a-494e-b24e-affe4e78a299%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a6950b99-c31a-494e-b24e-affe4e78a299%40googlegroups.com.