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
T4P4N
pavan
Alex
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 ?
Fan / Ac
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
Fan / Ac
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
(⌐■-■)
Santhosh
(⌐■-■)
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
₩
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
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
Shyamkumar
Light yagami
I read the error
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?
Олег
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
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
FA
shiva
Guys how to validate request data using django serializers
shiva
Can anyone?
FA
Can anyone?
You should read serializer documentation
Maxim
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
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 🥺
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ā
RK
Can anybody suggest how to deploy django project..Plz provide tutorials link
Maxim
Najim patel
components["port"] = int(components["port"])
ValueError: invalid literal for int() with base 10: 'sql\\SQLEXPRESS'
How can solve this error
Maxim