Monkey.D
at starting it is hart to learn and understand any thing and we need some guidance
Meft
Deploy Django on ubuntu
Anonymous
Hey anyone know how to make add to Cart in django?(E-commerce webpage)
Doragonsureiyā
need some help to solve a little problem for my django task.who can help?
No one can help you until you explain your difficulties.
Doragonsureiyā
how can i learn django free and fast ??
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Anonymous
Depends on how is your app designed
I want only normal code of it (by the help of create and read ?)
AZ
Hey anyone know how to make add to Cart in django?(E-commerce webpage)
Add model called Cart and add model for user, then you should migrate between them with Many-to-many relationships in user model : models.ManyToManyField(Cart), after that the user will have his cart and you can request it from frontend to show it to user, that’s it
Amit
Does anyone know about celery?
AZ
After that you can get the list of user carts and you can edit it and you can delete it by the id of cart send request to django with id of the cart user want to delete then give this id to django and delete it, or updated the cart, it is easy it was difficult to me until i build my e-commerce website
@akash
Does anyone know about celery?
Yes its basically a task scheduler
Amit
Yes its basically a task scheduler
Bro how many years of experience you have in django
Charly
I want only normal code of it (by the help of create and read ?)
There is no normal code because it is particular to your specific implementation
Doragonsureiyā
Bro how many years of experience you have in django
looks like you need an offtopic group, please continue this conversation at @pythonofftopic
Anonymous
There is no normal code because it is particular to your specific implementation
Like there is one product on anything in section having a add to Cart only I want that
Charly
If you don't have anything else built then check something like this: https://medium.com/@ayoubennaoui20/building-a-shopping-cart-in-django-a-step-by-step-guide-d696439ec6e5
Mehdi
sorry guys do you have any thing for learning templates in django I can’t understand somethings like {%csrf%} or sth like that
ali
need some help to solve a little problem for my django task.who can help?
the problem is that i put some of css an js etc... on static folder in one of my apps and load the statics at the first line of my html codes {% load static %} and replace tag with the right way that django template tag says like {% static(space)'style. css' %} after running the project i got no error but just the html file comes up without any style and image etc... the point is when i copy static files in a folder named assets in the project's main directory that manage. py is, everything will be ok. so my problem is, i really confused that what is difference between static and assets. explain this to me please. or give me a link.
tsai
what if migrassion is not detected even though everything is correct?
~
why after this code: docker compose exec web django-admin makemessages --all creates python file, explain home.html.py in templates?
Kiran
Hello guys, can anyone help me for Django custom authentication
Doragonsureiyā
Hello guys, can anyone help me for Django custom authentication
No one can help you until you explain your difficulties.
Kasem
Hello everyone, I hope you are all doing well. I have implemented Stripe Checkout, and when I'm testing the API endpoint, the transaction is not being saved in the database. The important error message in the Stripe dashboard, or even when I printed it out, says "no such token," which means there’s an error with the secret token. I’m sure my secret token is true. Could it be because I’m not doing anything from the client side? I read that we use the secret key on the server side and the publishable key on the client side. Could this be the reason? Am I only developing from the backend? Thank you
Z
Hi, I planned to create a website for EV charging slot booking using Django. I'm stuck on implementing role-based access authentication and have no idea how to create it. Can anyone share the steps or any documentation?
Joy
Hi, I have started with django recently. I have worked on frontend before. I am quite confused on should I be using js to handel the methods like calculating and updating the balance or do it with django itself(utils.py) ? Would be really glad for the help. Thanks.
choyon
I was confused as things can be handeled both ways. Wanted to know what would be best practice.
I think if you want to do it for backend then django is a good choice but if you want to do it for frontend then definitely go for js. Django gives you some privilege for managing backends like security or others thing. In the end It's up to you
Anonymous
Anyone here who developed a e-commerce website..? (I want to add something In my website like ..order section,and add to Cart section through django)
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
I have completed python Django course, Now do i need to learn MySql or something else or do i need to projects with Django?
Kasem
Hello everyone, I hope you are all doing well. I have implemented Stripe Checkout, and when I'm testing the API endpoint, the transaction is not being saved in the database. The important error message in the Stripe dashboard, or even when I printed it out, says "no such token," which means there’s an error with the secret token. I’m sure my secret token is true. Could it be because I’m not doing anything from the client side? I read that we use the secret key on the server side and the publishable key on the client side. Could this be the reason? Am I only developing from the backend? Thank you
Kasem
what does this have to do with Django?
I made stripe checkout when i tested my api give me no such token I make sure my secret token is true when I searched about this I read from client sode should be handle publishable key I developed only backend is this problem I mean if I hanld client side problem will be solved,did you test this ? Thanks
Achiever’s
My urls not getting views and not showing any logs to console when i am hitting url Can anyone help me out
Charly
My urls not getting views and not showing any logs to console when i am hitting url Can anyone help me out
Show your urls.py file and the exact url you are visiting in the browser and what you see in the browser
AZ
I have completed python Django course, Now do i need to learn MySql or something else or do i need to projects with Django?
No need to learn about database Django can handle it, instead of that try to build website with it
Francis
What kind of advice is this 😳
To some point he is right.. if he's comfortable with Django's ORM, then he can go straight to creating a project instead without learning MySQL . However, understanding MySQL or the underlying database can be beneficial later, especially for performance optimization, complex queries, or when working outside of Django.
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
What kind of advice is this 😳
I also thought for a sec, last time i did project, i haven't used any sql or etc
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
That's my point it's essential to learn database
I'll learn it later, I'll try to build more projects and improve my skills in Django 1st
Charly
Yes exact url i am calling
I telling you to show it
Mr
I'll learn it later, I'll try to build more projects and improve my skills in Django 1st
Exactly, learn according to what you prioritize as important to you first, then improve on the rest later.
072391
I'll learn it later, I'll try to build more projects and improve my skills in Django 1st
It isn't about building more projects idk about you but i would rather stick to one project and make it more professional
Kasem
what does this have to do with Django?
Sorry I can't understand, I think I explain my problem is there something unclear?
Francis
Sorry I can't understand, I think I explain my problem is there something unclear?
Assuming you are trying to integrate your application with stripe checkout, Could you please provide a bit more detail on the problem you're encountering with the Stripe Checkout integration? Maybe you can share any error messages or describe what isn’t working as expected. It would also help if you could check your grammar so it’s a bit clearer.
Adithya
Can anyone help me, how to generate an html template as pdf in django? And Which library is used and how to do that??
Adithya
But I'm using Tailwindcss as my frontend, hence it's generating raw html as pdf. Weasyprint doesn't support tailwindcss
A.L
Can anyone help me, how can I using a variable in a specific template in another template directly?
Adithya
Thanks 👍
Francis
Can anyone help me, how can I using a variable in a specific template in another template directly?
I have been doing some research, and I think direct access to a variable from one template in another is not supported in Django. Instead, you should pass the variable through the context from your views or use template inheritance or the include tag to share the context. you can try sharing a screenshot of the code to try and understand more because I might be talking of the wrong thing
AZ
What kind of advice is this 😳
I build a website without knowing MySql, it is good to know but you can build websites without knowing it, Django will take care of it remove updating and creating columns and fields
AZ
The website is build is e-commerce website, i used django rest framework and i created django as backend only then with js frameworks with vuejs i build the frontend for users then i connected them together with requests, so i build this without knowing Mysql or postgresql, but I think should you take looks about databases how it’s works so you will have a good knowledge about your project.
AZ
Well i am the type of guy who really wants to know from its core. So you are a type of guy who always wants to treat tables as classes good for you, but it comes with efficiency and reliability
That is good and i will study the databases but now i am working on my website so now not the good time to learn something and working on other things
Kasem
Assuming you are trying to integrate your application with stripe checkout, Could you please provide a bit more detail on the problem you're encountering with the Stripe Checkout integration? Maybe you can share any error messages or describe what isn’t working as expected. It would also help if you could check your grammar so it’s a bit clearer.
Sorry, I will do I used stripe package for building logic for checkout, when I run app the order is not saved in database and message error: No such token "my secret token" . I searched I read this in stripe documentation: "Test mode secret key: Use this key to authenticate requests on your server when in test mode. By default, you can use this key to perform any API request without restriction. Test mode publishable key: Use this key for testing purposes in your web or mobile app’s client-side code.." Only I write code in server side (Django rest) I don't handle checkout in client side. My question is this cause the error? Thanks for your response
Z
Hi, I’m new to Django and working on an EV charging slot booking app. At the start of the project, I'm stuck with implementing the Sign-Up/Login functionality. I need to allow users to create accounts and log in securely. The features I’d like to include are: Email verification after sign-up Password encryption Optional two-factor authentication (2FA) Custom HTML forms for both Sign-Up and Login (instead of using Django’s default templates) Could you please guide me on how to implement these in Django, or point me to the best resources for building these custom forms and integrating the security features?
Sahnoon
Hello, does anyone know about "cross-site scripting (XSS) and SQL injection prevention" & it's implementation in django?
Francis
Sorry, I will do I used stripe package for building logic for checkout, when I run app the order is not saved in database and message error: No such token "my secret token" . I searched I read this in stripe documentation: "Test mode secret key: Use this key to authenticate requests on your server when in test mode. By default, you can use this key to perform any API request without restriction. Test mode publishable key: Use this key for testing purposes in your web or mobile app’s client-side code.." Only I write code in server side (Django rest) I don't handle checkout in client side. My question is this cause the error? Thanks for your response
I think that the problem you are encountering is related on stripe tokens from the error message "No such token 'my secret token'". This might be if stripe is not receiving a valid payment token. You need to configure stripe on both the client side and on the server side because stripe needs them both configured. On the client side you need to collect payment details from the user, then the details sent securely to stripe, then a token is generated that you need to send to the back-end, where you can use it to create a charge or payment.
Hart
Hello friends, My team and I built an hotel management system with bootstrap and Django then hosted it on render. But we are having some issues with the website. When the hotel makes a reservation and we update our code and push to github, the website will deploy again and return total reservation to null Please how can we stop the reservations from going to null.
Adithya
Can anyone tell me, if it is possible to integrate React in django without using drf?? Like using react in django templates
Mirco
Can anyone tell me, if it is possible to integrate React in django without using drf?? Like using react in django templates
Yes you can, it's the hybrid solution But then maybe you can think about using htmx
OG
Can anyone tell me, if it is possible to integrate React in django without using drf?? Like using react in django templates
Same doubt today. Also how should we integrate it? Like how'd be the whole directory structure of full stack app with django+react ??
Mirco
Same doubt today. Also how should we integrate it? Like how'd be the whole directory structure of full stack app with django+react ??
https://www.saaspegasus.com/guides/modern-javascript-for-django-developers/integrating-django-react/