Django’da bir kısıma girince Sqlite3’e veri gitsin istiyorum. Burada tıkandım. Ne yapmam gerek? Amacım 127.0.0.1:8000/index/ linkine girince veri yollamak. Sonradan bunu CMD’den input alarak yapacağım. Eğer bilgiler doğru girilirse bu adrese ping atacak ve ona göre bilgi gönderilecek.
Böyle bir şey çıktı linkte. |Request Method:|GET|
| — | — |
|Request URL:|http://127.0.0.1:8000/index/|
|Django Version:|3.2.6|
|Exception Type:|ProgrammingError|
|Exception Value:|SQLite objects created in a thread can only be used in that same thread. The object was created in thread id 17068 and this is thread id 16412.|
|Exception Location:|C:\Users\emiry\Desktop\Djangop\project1\app1\views.py, line 8, in index|
|Python Executable:|C:\Users\emiry\AppData\Local\Programs\Python\Python39\python.exe|
|Python Version:|3.9.7|
|Python Path:|[‘C:\Users\emiry\Desktop\Djangop\project1’, ‘C:\Users\emiry\AppData\Local\Programs\Python\Python39\python39.zip’, ‘C:\Users\emiry\AppData\Local\Programs\Python\Python39\DLLs’, ‘C:\Users\emiry\AppData\Local\Programs\Python\Python39\lib’, ‘C:\Users\emiry\AppData\Local\Programs\Python\Python39’, ‘C:\Users\emiry\AppData\Local\Programs\Python\Python39\lib\site-packages’]|
|Server time:|Tue, 14 Sep 2021 15:46:19 +0000|