Related
Simon I'm new to Django, but I've been stuck with it because I haven't been able to solve my problem for a day. I have to create a form with a lot of fields. The fields are from different models and I want to save them all at once. I want to display it in a sl
Simon I'm new to Django, but I've been stuck with it because I haven't been able to solve my problem for a day. I have to create a form with a lot of fields. The fields are from different models and I want to save them all at once. I want to display it in a sl
Simon I'm new to Django, but I've been stuck with it because I haven't been able to solve my problem for a day. I have to create a form with a lot of fields. The fields are from different models and I want to save them all at once. I want to display it in a sl
Simon I'm new to Django, but I've been stuck with it because I haven't been able to solve my problem for a day. I have to create a form with a lot of fields. The fields are from different models and I want to save them all at once. I want to display it in a sl
CH Andre Meloa I have some questions about Django nested models. As far as I know, to handle nested data structures, I have to deserialize each data and then create objects that will be concatenated with the ForeignKeyField. I can handle this by overriding the
CH Andre Meloa I have some questions about Django nested models. As far as I know, to handle nested data structures, I have to deserialize each data and then create objects that will be concatenated with the ForeignKeyField. I can handle this by overriding the
CH Andre Meloa I have some questions about Django nested models. As far as I know, to handle nested data structures, I have to deserialize each data and then create objects that will be concatenated with the ForeignKeyField. I can handle this by overriding the
CH Andre Meloa I have some questions about Django nested models. As far as I know, to handle nested data structures, I have to deserialize each data and then create objects that will be concatenated with the ForeignKeyField. I can handle this by overriding the
buzzing Please consider I have 2 tables that will be displayed in a single view, student table and teacher table. Each has a different form action. I need to pass both models through the controller at once. So I decided to put 2 into a new model category: Publ
buzzing Please consider I have 2 tables that will be displayed in a single view, student table and teacher table. Each has a different form action. I need to pass both models through the controller at once. So I decided to put 2 into a new model category: Publ
Lilia I want to upload image from form without model. I tried doing: In the template: det.html Upload image
<form enctype="multipart/form-data" action="" method="post">{% csrf_token %}
<input type="file" name="myfile" id="myfile" />
<input
Graham S. So I have two models Roomand Reservation. The Roomobject is pre-created by the person who owns the room and is stored in the database. I want to allow other users to later create reservations in that room that belong to this room (on a different page
Graham S. So I have two models Roomand Reservation. The Roomobject is pre-created by the person who owns the room and is stored in the database. I want to allow other users to later create reservations in that room that belong to this room (on a different page
Graham S. So I have two models Roomand Reservation. The Roomobject is pre-created by the person who owns the room and is stored in the database. I want to allow other users to later create reservations in that room that belong to this room (on a different page
Fool I have two models. Products and product prices (with table products and product prices), each product has a price. I want to create a form for both models, but after copying the solution to a similar situation, my form still doesn't show the price field.
Amanda_K96 This is a continuation of the previous question Coding mind block with specific Django task the answer is: A pure Django solution would be: Create a form with three integer fields (like num1, , num2and result) In your opinion, fill num1and num2add t
Yahya ST18 I have a model that has a foreign key relationship with two oder models, one of which is "level". The view knows what level you are at based on the session variable, and then filters the class. Here's the class model: class Lesson(models.Model):
lev
Toby I am trying to display many tables of my university administration website on one page. The idea is that teachers should be able to enter all the scores for a group in the group assessment on the same page. The view should display a group element form and
Toby I am trying to display many tables of my university administration website on one page. The idea is that teachers should be able to enter all the scores for a group in the group assessment on the same page. The view should display a group element form and
João Areias I have a template from which I need to render information from multiple models. My models.py looks like this: # models.py
from django.db import models
class foo(models.Model):
''' Foo content '''
class bar(models.Model):
''' Bar content '
Mirko Brombin Can I use Django CreateViews to make forms that add data to multiple tables? I created a model called UserMeta to store some additional information about my users. question I want to use CreateViews to create a view that shows the fields for crea
Mirko Brombin Can I use Django CreateViews to make forms that add data to multiple tables? I created a model called UserMeta to store some additional information about my users. question I want to use CreateViews to create a view that shows the fields for crea
Joe This is my first project in Django and I want to recreate a static HTML/CSS/js website as a dynamic website using the admin panel. However, I'm having a hard time understanding the view/url. On my index I have Main News, Events, Mini News - 3 categories. I
João Areias I have a template from which I need to render information from multiple models. My models.py looks like this: # models.py
from django.db import models
class foo(models.Model):
''' Foo content '''
class bar(models.Model):
''' Bar content '
João Areias I have a template from which I need to render information from multiple models. My models.py looks like this: # models.py
from django.db import models
class foo(models.Model):
''' Foo content '''
class bar(models.Model):
''' Bar content '
João Areias I have a template from which I need to render information from multiple models. My models.py looks like this: # models.py
from django.db import models
class foo(models.Model):
''' Foo content '''
class bar(models.Model):
''' Bar content '
Mirko Brombin Can I use Django CreateViews to make forms that add data to multiple tables? I created a model called UserMeta to store some additional information about my users. question I want to use CreateViews to create a view that shows the fields for crea
Joe This is my first project in Django and I want to recreate a static HTML/CSS/js website as a dynamic website using the admin panel. However, I'm having a hard time understanding the view/url. On my index I have Main News, Events, Mini News - 3 categories. I
Chris Shelton I'm looking for some advice on how to perform a query on multiple objects and then use them together in a detailed view of their related objects . Here's what I'm using now: -- app/models.py --
class Material(models.Model):
created = models.Da