Django Dg

1

votes
2

answer
64

views

how to fix django error MultiValueDictKeyError

I am new to Django and I am trying to fetch data from the database into a dropdown list where i have 3 chained dropdown list. When I use request.GET, the system display the below error: raise MultiValueDictKeyError(key) django.utils.datastructures.MultiValueDictKeyError: 'cnt' traceback Traceback (...
Django Dg
1

votes
2

answer
31

views

how to store in the database the value of choicefiled in model using django

i have a form that allow user to enter a new record to the database by filling the text fields and choose one of the radio button. the system work as it should and save the data of the text field except the radio button where its always empty. Yet if i print the radio button value its printed corre...
Django Dg
1

votes
2

answer
20

views

how to fix the error AttributeError: 'Country' object has no attribute 'City_set' . in django

i have 3 dependent dropdownlists country city road. where country is pre-populated from the database and based on the selection of the first the second will display the related cities. the problem is that once the user select from the first dropdownlist the system display the below error : all_citi...
Django Dg
0

votes
0

answer
3

views

how to create 3 dependent dropdown list using django and ajax

i am trying to build a 3 dependent dropdownlist where the user select the first dropdownlist and the system will open display just the data related to the selected option. the 3 dropdown list contains conuntries citys roads where all the data are fetched from the sqlite 3 database . until now i was...
Django Dg
0

votes
0

answer
4

views

fix error KeyError: 'id' in import_export django package while importing excel file

i am trying to import excel file into sqlite 3 database using import_export package in django. excel file consiste of 2 columns : id:(empty values) name:(contains values) its not working and display the below error: Errors Line number: 1 - 'id' None, smugling Traceback (most recent call last): File...
Django Dg