Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

0 votes
0 answers
20 views

Retrieving image with javascript to display Django

I am trying to retrieve an image via Javascript function that calls a function from my views that has the image. I need help with populating the image: Views: def view_company_logo(request): print(...
Doing Things Occasionally's user avatar
0 votes
2 answers
22 views

forms.ModelMultipleChoiceField with widget=FilteredSelectMultiple not working on custom new Django Admin

I am trying to show the forms.ModelMultipleChoiceField on custom new admin form page but it doesn't seem to show it the way it is showing on the Django page that was already made e.g. model product ...
Salman Adnan's user avatar
0 votes
0 answers
35 views

How to get form file data rendered in form invalid cases in django

i have defined a form in django as : forms.py @parsleyfy class CreationForm(forms.Form): sample_name=forms.CharField(label="Agent Name",max_length=40, widget=forms.TextInput(attrs={'...
padmaja cherukuri's user avatar
-1 votes
0 answers
67 views

Django for loop not working in HTML in Django 4.2

HELP: There is some issue with for loop in my code. I cannot find the problem. This problem is not displaying data from backend. Can you help me with it? Whole code and process is given below. Models: ...
Shrez Ean's user avatar
0 votes
1 answer
20 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
36 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
-3 votes
0 answers
60 views

Twig Tags are not allowed in django-html

I am Learning django , i have learnt python , html , and basic css. I was trying to sort things out, like peoples who are above 18 they can vote and peoples below 18 they cannot vote, this is a part ...
Game King's user avatar
0 votes
2 answers
40 views

How to resolve this NoReverseMatch error?

I am currently try make a task manager such that there are folders which have tasks in them, I have been stuck on this problem for hours now and am not sure at all what is the issue this is urls.py ...
Srivatsava Dhanala's user avatar
0 votes
0 answers
19 views

Problem customizing search_get_results() method in Django Admin page to get Custom Search

I have an app in Django and I would like to use this template: {% load i18n static %} {% if cl.search_fields %} <div className="form-group"> <div class="search-notes col-md-...
eddyraz's user avatar
  • 41
-1 votes
0 answers
30 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
1 answer
41 views

htmx insert multiple table rows

I'm using Django, if that makes any difference. Anyway, I have this tbody element in my template: <tbody id="log-stream-table-body" hx-get="{...
michjnich's user avatar
  • 3,215
-4 votes
0 answers
51 views

Logout Process in Django and " Url Logout next" Parameter Error

I am creating a blog page using Django where users can log in and out, write, and share blog posts. After logging in, users should be able to add blog posts, and if they are not logged in, they should ...
BahriDgr's user avatar
1 vote
1 answer
20 views

Django templates and css: is there a workaround for getting my preload link tags to match my css relative paths to font sources?

Background I just started using Digital Oceans Spaces for storing my static files for my Django web app (connected using django-storages library). Previously, I used link elements in the head of my ...
DevinG's user avatar
  • 502
0 votes
1 answer
36 views

Learning Django without DTL [closed]

I just finished my second React course and become more confident with it by creating a several web application. Now my plan is to go fullstack, I decided to start learning Django because am kinda good ...
Mohammad Yazbeck's user avatar
1 vote
2 answers
62 views

Django View: `DoesNotExist` error when trying to edit a product

I'm trying to create an edit product feature in my Django application, but I'm running into a DoesNotExist error when I try to access the edit product page. Here's my view function: @login_required ...
Harry Khan's user avatar

15 30 50 per page
1
2 3 4 5
1231