Questions tagged [django-views]
Django views are MVC views; they control rendering (typically through templates), and the data displayed.
django-views
24,377
questions
0
votes
0
answers
6
views
PDF not generated from Django template
I am working on a form where I need to pass the user inputs into a context which is then passed to Django template which should be converted to a PDF file. However, instead of getting a PDF attachemnt ...
0
votes
1
answer
13
views
Entries not showing on page
Cant seem to figure out why my entries from my database are not appearing on my page but my topics name on the entry page is
I'm trying to show show entries from my database on a page, the link to the ...
0
votes
1
answer
33
views
TemplateDoesNotExist at / (Django)
Trying to my create a home page, with django. I keep running into a TemplateDoesNotExist at error.
Im pretty sure it has something to do with my paths set up. I havent worked with django enough to ...
0
votes
0
answers
16
views
how to send content from celery task to websucket
please i am trying to process some data in a celery task and pass it to websucket connection to the clientside but the bellow code deosnt seam to be doing what i intend to achieve .
Consumers.py file
...
0
votes
0
answers
22
views
Manager isn't available; 'auth.User' has been swapped for 'main.User'
I had to recreate User model. I have added custom phone and zip_code fields to the model. But I am encountering Manager isn't available; 'auth.User' has been swapped for 'main.User' error.
This is my ...
-1
votes
0
answers
23
views
My django form keeps giving me the error message even though i still get the data i'm trying to send in the database, what could be wrong? th
I'm trying to add a staff with django everything seems to be working fine i even see the entry in the database but once i click the submit button instead message.success i get message.error i cant ...
0
votes
0
answers
43
views
NOT NULL constraint failed on PUT request in Django [duplicate]
I'm new to Django and I'm having trouble handling form-data and raw data in PUT requests. I need to update records of a Person model via a PUT request. The Person model has several fields including ...
0
votes
1
answer
43
views
Best approach to object creation in the background without using a task queue system?
I have been thinking of the best approach to a record creation in the background without using django signals, or celery, etc.
I do not want to use signals due to the fact that the sender Model would ...
0
votes
1
answer
27
views
Nested Serializers create method for each serializer
I have a Club Model as well as an Address model.
class Club(models.Model):
name = models.CharField(max_length=100)
owner = models.ForeignKey(UserAccount,on_delete=models.CASCADE,related_name = ...
0
votes
0
answers
43
views
I have problems loading a machine learning model on my Django site
I've build an image classification model that classifies images as one of three classes: cucumber, zucchini, or neither.
Now I want to deploy this model to a Django website but I am currently ...
0
votes
0
answers
13
views
My recipe.html file is rendering as both home page and recipes page on server
In my project im trying to render index.html as my home page and recipes.html to render on /recipes. Currently recipes.html is rendering on both my home page and /recipes page.
I have tried changing ...
0
votes
0
answers
41
views
Django: Vendor Dashboard Not Displaying All Orders for Products Sold
I'm working on a Django project where I have a vendor dashboard that should display all orders for the products uploaded by the current vendor. However, the dashboard is only showing orders placed by ...
-1
votes
0
answers
28
views
Django Invalid JSON Response Syntax Error, possible jquery error
So I'll preface this question by stating I think the error could be in a few places though the most likely, especially according to the windows command prompt is SyntaxError: Invalid syntax on this ...
0
votes
0
answers
20
views
how to solve UnboundLocalError
I'm trying to export data from database to display it on my django server. I'm still new to django, so I have been following some tutorials. I did exactly what's on the tutorial and I'm still getting ...
1
vote
1
answer
32
views
Trouble Filtering CartOrderItems by Vendor Using Django ORM
I'm facing an issue with filtering CartOrderItems by Vendor using Django's ORM. Here's the scenario and the problem I'm encountering:
Scenario
I have a Django application where vendors can upload ...