Santhosh
I'm using mongo db for my new project. So i installed djongo. But it's shows error like Djongo isn't an available database backend.
pavan
In template i had given like this i want to get only one project value as number. <td class="c1">{{ row.name }}</td> <td class="c1">{{ row.id }}</td> {% for heading in project_list %} <td class="c1"> {% if heading in row.projects %} {{row.projects}} {% else %} 0 {% endif %}</td>> {% endfor %} output: {'Example Project 2': 25, 'Tool Makers': '75', 'New Project': '75'} my output looks like this but i need 25 as output
pavan
what can I change in if condition to achieve my output ,can anyone pls help me to sort it.
pavan
thanks in advance
User
There is a button in home.html without form that takes user to other page, now other page needs an id that is available on first page based on which the database query will run , so how to get that id on second page without post or get as there is no form
User
I can't send it as a param in url
User
I am new to django, can canyone please help ?
 
hello friends i have written the bellow code if request.method == 'POST': content = Content.objects.get(title=title.replace('-', ' ')) content.title = content.title = request.POST['title'] content.image = content.image = request.FILES.get('image') content.description = content.description = request.POST['description'] content.save() but this code does'nt update the object this code is create a new object what is it wrong?
Santhosh
Did you install djongo at all?
Yep I installed it. In virtual environment this doesn't work, but conda environment it worked. I didn't know what is the problem? Thank you bro
 
Venkatesh
Note's send me Django
Doragonsureiyā
Note's send me Django
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Saikat
Hi guys is it possible that I can use a file's url of s3 ... Which is not publicly available ... only for iam or some ip...??
Saikat
Actually image is not working in wkhtmtopdf module ...that why need to render it...via url...any help will be appreciated
Santhosh
you can easily do it.
Thank you, I completed it.
₩
Guys who saw dr.chuck django course?? Is it good?
Marcos Alberto
Hello guys, how do you make or save foreign keys using createview without save the user, I mean, What I'm trying to do is to make a relation of id not uses
Sub
Fixed time format
Doragonsureiyā
Guys who saw dr.chuck django course?? Is it good?
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Light yagami
I'm getting IntegrityError (1062 duplicate entry for key primary) when updating into existing id
Light yagami
Is anyone familiar with this type of error
Light yagami
I read the error
R.
I'm getting IntegrityError (1062 duplicate entry for key primary) when updating into existing id
It means that the primary key already exists, and you are trying to duplicate. Check what you are doing.
Light yagami
By employee id I'm generating otp where my employee id is pk
Light yagami
When I update on the same emp id i get otp which is fine
Light yagami
But when I m using different emp id i do get otp once
Light yagami
After that if I try again on any of the empid for getting otp then I get the following error
shiva
How to validate input data using django serializers
Doragonsureiyā
How to validate input data using django serializers
Step 1: Open a browser Step 2: Write down https://google.com or https://duck.com and press Enter Step 3: In the search box, write down the same words you asked here Step 4: Read the first results
Avengers
Any django free tutorial available ?
Doragonsureiyā
Any django free tutorial available ?
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Олег
Hello to all! How can I set up https in my django project?
Doragonsureiyā
Hello to all! How can I set up https in my django project?
Step 1: Open a browser Step 2: Write down https://google.com or https://duck.com and press Enter Step 3: In the search box, write down the same words you asked here Step 4: Read the first results
EL
Hi How can I implement sharing in my app please help me
Anonymous
hi why does the error occur? https://pastebin.com/Qbw5tH0V
Saikat
And why pdfkit is not able to generate images in pdf ?
Saikat
Any link
None
I have two models CustomUser and Manager_profile given below. There are 2 types of users a manager and a customer. There is a form to register as a manager. How can I set the is_manager field to True when a manager registers? https://pastebin.com/tjUSCNDT
FA
Possible risks of using update_or_create() method
shiva
Guys how to validate request data using django serializers
shiva
Can anyone?
FA
Can anyone?
You should read serializer documentation
FA
Ok
Maxim
Ok
have you tried reading the documentation? it states that
FA
Yes I tried but I didn't see that
FA
So I have to read again
Muhammadali
hello everybody, anyone was used to mocks ?
Muhammadali
for test django test framework
Doragonsureiyā
hello everybody, anyone was used to mocks ?
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z!" Just ask directly! The better you are at explaining the problem, the more likely you are to get help. Asking smart questions
Shiva Prasad
Can anyone help me to solve my program please..
A
What's the problem?
Nats
hello everybody, anyone was used to mocks ?
what's exactly your problem?
Kuntal
How to automatically delete an object after 5 minutes from publication pls help I do many implementation but not work
Kuntal
Anyone help me please 🥺
Muhammadali
what's exactly your problem?
when i'll run python3 manage.py test it returns Object of type HttpError is not JSON serializable
SJ
Looking for someone who can deploy Django web app on cpanel.
FA
Does anyone here familiar with django update_or_create() method.
Doragonsureiyā
Does anyone here familiar with django update_or_create() method.
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z!" Just ask directly! The better you are at explaining the problem, the more likely you are to get help. Asking smart questions
Doragonsureiyā
SJ
Do you want to hire someone?
No, Just want some projects to be get deployed.
Maxim
No, Just want some projects to be get deployed.
you have already been advised not to use hosting with cpanel to deploy Django
RK
Can anybody suggest how to deploy django project..Plz provide tutorials link
Maxim
Can anybody suggest how to deploy django project..Plz provide tutorials link
depends on so many things it's not Ikea furniture assembly so any such tutorials are only suitable for a very limited set of cases in any case, you need a search engine, not a group
Maxim
Can anybody suggest how to deploy django project..Plz provide tutorials link
i'm not kidding, no one will google django deploy tutorial for you
Najim patel
components["port"] = int(components["port"]) ValueError: invalid literal for int() with base 10: 'sql\\SQLEXPRESS' How can solve this error
Najim patel
show components["port"] value
components["5000"] But keyError :5000