Questions tagged [django-database-functions]
21 questions
0
votes
1 answer
Referencing more than one field on a Django Model
I am trying to reference 2 fields from a particular django model but it keeps giving me error. The models are displayed below, i want to reference 'building_type' and 'location' from property table to client table
class Property(models.Model):
…

Dr. Ose Sunday
- 11
- 1
0
votes
1 answer
Django DB migration adds new columns, but do not edit the values already in the table
I have a python script for creating the tables and specifying the values that should be added to it. I use the following two commands to do the migration.
python manage.py makemigrations
python manage.py migrate
This is what happens:
When I use…

SameeraR
- 415
- 1
- 6
- 19
0
votes
1 answer
IntegrityError in database stored vlaues in django?
'''
My problem is database values can't stored properly
In below I uploded views functions file,model file as an images. so in model there are three fields but database stored only image stored and other vlaues strored by default get null values…
0
votes
2 answers
django not able to save all incidents in database
I have a working code which gets all incident details.
But i am unable to save complete data in database only the last record gets saved
def incidents(request):
incidentsServicenow = IncidentsServicenow()
c = pysnow.Client(instance='', user='',…

Vyshnavi
- 149
- 2
- 10
0
votes
1 answer
How to save model form Data(User input of multiple users) into the database or dict in Django
I am trying to set up a Website for Employee Scheduling with Django. I am new to Web development, therefore I run into some problems, scince I have the feeling the Web handles things differently. I need to pass information to a solver using pyomo.…

Lukas Humpe
- 421
- 3
- 10
-3
votes
1 answer
How to get several records to be shown in one row in MySQL?
I have questions related to SELECT statement for this case:
For example there are 4 tables, which are StdCandidate, CourseChoice, Course, and EntranceTest.
The tables are shown in the image
-->
enter image description here
Can you help me what is…