All Questions
Tagged with django python-3.x
14,473
questions
0
votes
0
answers
11
views
How to send MDM commands to push an app to iOS device in python
"""<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple....
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={'...
0
votes
0
answers
34
views
Django DateField persistence
I have a model / Form / view for a request that works well, but when I want to update a request all the fields are loaded except the due_date field (with a date widget) witch remains empty. If I don't ...
1
vote
0
answers
48
views
In Django, how do I pass custom information from the user signup html form to the models?
In my Django project, I have two types of profiles (person and business). Based on the form a user fills in signup.html (which is very rudimentary right now) one of the types profiles will be created.
...
0
votes
1
answer
16
views
django.core.exceptions.ImproperlyConfigured: AUTH_USER_MODEL refers to model 'api.User' that has not been installed
I just create Django project and get this error
django.core.exceptions.ImproperlyConfigured: AUTH_USER_MODEL refers to model 'api.User' that has not been installed
this my files
settings
...
0
votes
0
answers
22
views
How to Create a Token Using Django REST Framework?
I am trying to implement token-based authentication in my Django project using Django REST Framework, but I am unsure of the steps required to create and manage tokens.
I Installed Django REST ...
-1
votes
0
answers
46
views
How can I log variables based on database configuration?
Backend: Python 3.11 and Django 5.0.6
Database: PostgreSQL 15.6
We are shifting to deploying a Python x Django .exe file for the backend. Consequently, we will be unable to modify the code directly on ...
-1
votes
0
answers
31
views
Django Rest Framework RetrieveUpdateAPIView not working
I'm having an issue with using RetrieveUpdateAPIView and RetrieveDestroyAPIView. I'm trying to Update or Delete a Newsletter object while logged in as an administrator. Unfortunately, after clicking '...
0
votes
1
answer
30
views
custom delete action admin class in django
I want to custom delete action admin class with overwrite function delete in admin.py , but it dosn't work !
this is the error : Post with ID “<django.db.models.query_utils.DeferredAttribute object ...
0
votes
0
answers
18
views
Google API, self project
I am trying to create a website using the Google, Place API, and Geocoding API. My get requests work, however, I receive a 404 error saying pro access only. I have a pro account for the API, and on ...
0
votes
0
answers
37
views
AWS ECS with Django + Python + Alpine produce Segmentation Fault
we are currently having trouble with Alpine Linux, since the Update to Version>=17.
It seems that since alpine17 the openssl library in alpine was updated to openssl3.
The problem is that we have ...
0
votes
1
answer
25
views
In python Django how to define test database and keep records inserted in test database until cleaned in tearDown method of testcase
I want a test database created for my default database in Django latest version, for that I configured in project settings.py file as below.
DATABASES = {
'default': {
'ENGINE': 'django.db....
1
vote
0
answers
29
views
Error 404 redirect not working in Django and static files not showing in edge
I am developing a single page webapp where I am trying to configure the error page if page not found so I have added proper settings but still my redirect not working on error page.
Here is my ...
1
vote
0
answers
36
views
Reverse for 'post_detail' with arguments ... not found
i'm having NoReverseMatch error message. already spend hours everything looks ok to me but couldn't figure it out. I would appreciate any help. thanks
views.py
from django.http import Http404
from ...
0
votes
1
answer
44
views
Error message: "GET /blog/about HTTP/1.1" 404 Not Found: /blog/about geting this while creating Blog app
views.py:
from django.shortcuts import render
from django.http import HttpResponse
def home(request):
return HttpResponse('<h1>Blog home</h1>')
def about(request):
return ...