Skip to main content

Questions tagged [django-views]

Django views are MVC views; they control rendering (typically through templates), and the data displayed.

django-views
0 votes
1 answer
10 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 ...
Dokkaebi's user avatar
0 votes
1 answer
32 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 ...
Dokkaebi's user avatar
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 ...
nkdtech's user avatar
  • 53
0 votes
0 answers
21 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 ...
Shomalik Davlatov's user avatar
-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 ...
Okereke Chima Emmanuel's user avatar
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 ...
Fenil Trivedi's user avatar
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 ...
master_j02's user avatar
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 = ...
Evren Bingøl's user avatar
0 votes
0 answers
42 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 ...
Aske Olesen's user avatar
0 votes
0 answers
12 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 ...
user26295275's user avatar
0 votes
0 answers
40 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 ...
Harry Khan's user avatar
-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 ...
Macaire Alexander Bell's user avatar
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 ...
Gloria Matope's user avatar
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 ...
Harry Khan's user avatar
0 votes
2 answers
35 views

django orm - how to join multiple tables

I have a bunch of tables in postgresql (not all the fields are listed) create TABLE run ( id integer NOT NULL, build_id integer NOT NULL, ); CREATE TABLE test_info ( suite_id integer NOT ...
kdubs's user avatar
  • 1,672

15 30 50 per page
1
2 3 4 5
1626