Igor👨‍💻
is django more useful than flask in html css websites
cj
is django more useful than flask in html css websites
it's like wanting to compare a pizza and a tomatoe
Igor👨‍💻
what is better python and django with HTML/CSS or js with HTML/CSS?
amariah_and_amaris
what is better python and django with HTML/CSS or js with HTML/CSS?
For frontend Html/CSS with js is amazing, the librarys that J's has for frontend are spectacular you can use react as well
amariah_and_amaris
what is better python and django with HTML/CSS or js with HTML/CSS?
Python does have something called brython to write python code right on html but still Js is the goto
Igor👨‍💻
ok thanks
Ixlos
hello how to integrate hikvison face control with django web app?
🏅♐Mark
hi
🏅♐Mark
i am facing a issue that i want to display booking tickets actual amount in razorpay payment page
Abbos
is django more useful than flask in html css websites
You are better at which one. It is good for you. I mean. It's up to you.
Emmanuel
Hello, high traffic is about how many people ?
It's based on load not people
Maltapopoulos 🇲🇹
It's based on load not people
Ok and have an idea of load ?
Sam
Guys this is my context_processor code: def context_processors(request): try: if request.user.is_authenticated is True: cart = Cart.objects.get(user=request.user) else: cart = Cart.objects.get(session_id=request.session['anonymous_user']) except Cart.DoesNotExist: cart = {"total_quantity": 123, "len": 0, "total_cart_price": 0 } return {"cart": cart} and this is my template: {{ cart.len}} {{ cart.total_quantity }} but it doesnt show them in the template! what is the solution? my context_processor was working pretty well until i changes some things
Charly
notice: it is returning the 'except '
So the object doesn't exist on the database
Sam
So the object doesn't exist on the database
Problem was from the template, i was using the wrong template 😁
Yo_
Does anyone here have experience in building django chatting applications? I need to ask you about something
Frozen
Does any one tell me I have a model and have attachment field in model which is a Filefield... How to handle multiple file uploads in Django Rest Framework
Doragonsureiyā
Does anyone here have experience in building django chatting applications? I need to ask you about something
Please don't ask meta questions like: - Any user of $x here? - Anyone used technology $y? - Hello, I need help on $z! Just ask about your problem directly! If you don't know what to ask, please read: http://catb.org/~esr/faqs/smart-questions.html
Frozen
I want to select multiple files while post
The Inspired
I want to select multiple files while post
google "input type file multiple attribute html"
aмιrнoѕѕeιn
Hi guys, can anyone help me?
aмιrнoѕѕeιn
i want to add the sessions in my django login project.
aмιrнoѕѕeιn
if anyone know the Way tell me......
Sam
if anyone know the Way tell me......
Bro django`s default login uses sessions for logging in
Sam
i mean the from django.contrib.auth import login function
🏅♐Mark
i am facing a issue that i want to display booking tickets actual amount in razorpay payment page
🏅♐Mark
How to do that please help
Kirill
Help me with how I can pass a request token to the server if HttpOnly is enabled. I implemented the transfer with HttpOnly disabled, here it is: const UserProjects = () => { const [projects, setProjects] = useState([]); useEffect(() => { const fetchProjects = async () => { try { const accessToken = Cookies.get('jwt_token'); const refreshToken = Cookies.get('refresh_token'); console.log('Access Token:', accessToken); console.log('Refresh Token:', refreshToken); const response = await fetch('http://127.0.0.1:8000/api/projects', { headers: { Authorization: `Bearer ${accessToken}`, 'X-Refresh-Token': refreshToken, }, }); if (response.ok) { const data = await response.json(); console.log(data); setProjects(data); } else { console.error('error get project:', response.status); } } catch (error) { console.error('error get project:', error); } }; But I don't understand how to get a token when HttpOnly is enabled
Андрей
Hello everyone! Please help, I'm not familiar with Django and I'm trying to deploy the open-source solution DefectDojo, but I can't get it to work with LDAP. Can anyone suggest where to look?
Charly
And we he talk about developing with Django, not supporting things made on django
Андрей
"Unfortunately, there are no details. I am following the guide, everything seems to be correct, but there are no requests to my LDAP server."
Андрей
https://documentation.defectdojo.com/dev/integrations/ldap-authentication/
Андрей
What commands to enter, what logs to check in order to provide details? Thank you.
Charly
and again, it might be better if you ask on their github or something
Charly
we can only support thing you done here
Charly
not third party projects
DR
Hello friends How is it possible to register a database table that has 20 rows and 30 columns for each year? If I choose the year in the output, for example, will it show the data of the same year of the desired variables?
DR
Yes
solution?
Charly
solution?
Create your model then just write a query,.it is bsic filtering
Suryo Adhy Chandra
what is better python and django with HTML/CSS or js with HTML/CSS?
https://django-tailwind.readthedocs.io/en/latest/installation.html try this, its cool
DR
Create your model then just write a query,.it is bsic filtering
If I want to register Should I create a table for each year?
DR
No, just a field with the year
Can you send me a link to learn about this? in direct
‌‌ ㅤSina
what is better python and django with HTML/CSS or js with HTML/CSS?
you should use js for client side browser only understand javascript. not python
Shivam
Can anyone help me , creating a django single sign on application with email authentication having login ,signup , forget password features
park seo joon
How to use custom manager in database please any ideas
Yo_
I want to send files to the chat application so that chat room guys can see it
Yo_
How to do this using django
Charly
How to do this using django
It depends on how your chat is implemented
Yo_
It is based on Django channel and redis channel layers
Yo_
Is there any tutorials
Charly
Is there any tutorials
No because it depends on your specific implementation of the chat
Charly
It should be the same as sending a message
Charly
You just put a url of the file
Suryo Adhy Chandra
what is that,a subversion of django?
with that, you can use tailwind using django template.
Siva
I m getting blank not found page for my django project...
Siva
How can I solve this issue
Doragonsureiyā
How can I solve this issue
Please provide a full explanation including all the details that you consider relevant. Your statement is too broad and there is no clear way to answer you, you have to explain: - what you're doing - what you're expecting - what you're using - where you're running the script - what Python version you're using - what packages and their versions you're using - and the most important thing: show the code YOU wrote (read rule 5️⃣ for that) and more details, that way your chances to get help will increase.
Doragonsureiyā
This is not a Django specific question, please delete your offtopic message. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
clouded
Charly
Ok
So are you going to move your post?
Otabek
So are you going to move your post?
I've deleted sorry if i was wrong
Charly
I've deleted sorry if i was wrong
It says where you can ask...
cj
It's related to django
do you have a Django issue? I mean, something with the code you wrote using Django? like migrations issue, urls, views, models? like that?
KartiK
how to write a docker file like in my django app its pipfile and pipfile.lock in place of requirements.txt also when i asked gpt about this it showed too much i think it was very unnecesarry does anybody know dockerfile of django with dependencies inside pipfile.'
Doragonsureiyā
how to write a docker file like in my django app its pipfile and pipfile.lock in place of requirements.txt also when i asked gpt about this it showed too much i think it was very unnecesarry does anybody know dockerfile of django with dependencies inside pipfile.'
This is not a Django specific question, please delete your offtopic message. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
Charly
Yes but your question does not involves Django