Muhammad
when i request django api from react app, i am getting NS_ERROR_DOM_BAD _URI
I am using nginx as reverse proxy
Charly
Muhammad
Charly
Muhammad
in what context ?
url spelling is correct and frontend and backend are serving with subdomains of same domain
Muhammad
Charly
if you can call taht from the browser or cli then your issue is on your frontend code not django
Rahat
How to implement notification?
Doragonsureiyā
How to implement notification?
To get an answer to your question, it is worth to formulate it more clearly, perhaps add more details, perhaps add explanations.
Muhammad
Charly
V
Anyone sendme realtime django project
Maxim
Hasan
hi
why my post_save signal called 6 times per create opject in model?
Artur
how i can group by field and get the last element in django orm?
Shrey
If your django application has roles assigned to users, do we have to create multiple forms for displaying particular data for the particular role..... or is there any other way to do this !!
For example: there's something that only admin can create, so I want a form to be displayed only when accessed by admin........... Is this approach correct ???
@login_required(login_url="auth_login")
def createExchange(request):
username = None
if (request.user.is_authenticated) and (request.user.is_admin == "True"):
user = request.user
username = request.user.name
if request.method == "POST":
form = NewExchangeForm(request.POST)
if form.is_valid():
exchange_model.username = username
exchange_model.name = form.cleaned_data["name"]
exchange_model.type = form.cleaned_data["type"]
exchange_model.user = user
exchange_model.save()
return redirect('createExchange')
form = NewExchangeForm()
Az Oz
Hello guys, anyone help pls. I have this code:
first_name = request.POST['first_name']
phone_number = request.POST['phone_number']
session_file = request.FILES['session_file']
tg = request.user.all_accs.create(first_name=first_name,
phone_number=phone_number, session_file=session_file).
But django returned error: session_file multivaluedict err
Az Oz
I tried to send file in session_file model
Frenchie
Eman
- We know that models.ForeignKey achieves a one-to-many relationship, so if we create a model Song with a foreign key to Album, we'll guarantee that any album instance has 0 or more songs, but we want to enforce a 1-or-more relationship as much as we can, at least on django admin so that any admin can't create an album without first uploading a song, how can this be done?
- hint: You'll need to perform custom formset validation
- hint: Don't forget to handle the delete case, an admin user shouldn't be able to delete all songs of an album
Eman
how can i do that؟
Rajat
Doragonsureiyā
how can i do that؟
So, why don't you do it yourself first?
When you have an issue with the Python code you wrote (read rule 5️⃣ to show your code), come back here and people will help you.
😉
Eman
Eman
Ok thank you
TI Mercado Industrial
Hello, which hosting services do you recommend me for a Django E-Commerce site?
Charly
Thalib
ubuntu/Aldrich/myprojectenv/lib/python3.10/site-packages/django/core/management/commands/makemigrations.py:143: RuntimeWarning: Got an error checking a consistent migration history performed for database connection 'default': SCRAM authentication requires libpq version 10 or above
Thalib
Charly
Thalib
How can i update libq i tried several ways but dont workking.. It occurs when i tried to host my project
Charly
Thalib
I have tried to host my django project which using postgres sql as DB. In AWS EC2 by mistake i have got this error when i run my project i have got Operational error SCRAM Authentication requirs libpq version 10 then i have tried many ways to update refferd from google
Almortatha
Sukhmanjeet
I saw this syntax in forms.py which says:
self.fields['username'].validators.append(ForbiddenUsers)
where fields is a tuple with 'username' as one of the elements and ForbiddenUsers is a function raising Validation Error.
I am not able to understand from where does validators came from and how can we append a function to it?
PR
How can i set 2 varieble to url?
For example:
127.0.0.1/search/?page=2?q=test
TI Mercado Industrial
Charly
Charly
Santosh
Hi, i want to display excel file on UI and remove duplicate coloums using django
Can any one suggested me
Smile
Hello!
I started learning DRF. I have a django project but I can't figure out where to locate the apiview file. Should it be a separate directory? How does the django+drf project structure looks like?
The Inspired
F
Anyone help? Django can work with Oracle database 12.1.0.2?
ask
Hello everyone, I've have a model to save pdf files. After saving pdf files in database how can I get link of that file in fronted. I want if user click on that link able to view that file???
Akshay️ Vedpathak️
Mirco
F
Check docs
I found one document. But i need also your opinion. No can do anything?
F
In document said that new version can work only with 19C. Am i right? There are no any other ways?
G Bharath
Hai i want some information on encryption and decryption, in django and flutter
Mirco
G Bharath
At backend we are using django
And in frontend we are using Flutter....
We are encrypting the data at backend....
But when we are trying to decrypt from flutter we are not able to do.....?
G Bharath
We are using CTR method in AES
G Bharath
Kindly give some genuine info how to solve this issue...
Harshit
In the django admin page... The checkbox to select a particular record is not coming... Can anyone suggest how can I get that functionality?
Kapil
how to render json response in html table ,data comes in dictionary
Kapil
using ajax
Armond
Friends, how are the projects? Do we upload our own Vue and Django backend in a special way to show the customer, for example? It means that it should be on the same local system and let's make it appear on any platform. Phone and..
Mirco
Focky
Focky
Simple and works like a charm
Shiv chary
Hello everyone,
Need help 😅,
I completed django basics like forms and models and static files, render HTML pages, links to HTML pages, and what should I want to learn, to become well in django can anyone help me what more topics, I need to cover.
Thank you in advance!.
Doragonsureiyā
Yury
Hello everyone. I have on the main page three kinds of card (it’s article preview), how can i output records in one cycle in template? It has different css classes and i don’t really understood how i should to do it.
livelysravan
Can python be used as Backend for flutter
The Inspired
The Inspired
are the css applied on some sort of condition?