Prasanthari
Check what you are returning after clicking submit
Prasanthari
And please add required fields so that it can't submit empty values
The
ok
The
let me check
The
thanku for the response @PrasanThari
Prasanthari
👍
The
i have passed {request, name.html, {form: 'form'}}
The
inside the template after csrf_token I had given {{form}}
The
form action i had given url 'name'
Anuj
Can you tell how to use form assets
Yusuf
Hey, anybody here used django, channels and mqtt before?
Doragonsureiyā
Hey, anybody here used django, channels and mqtt before?
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! With 60k+ people the probability that someone will help is pretty high. Also please read: http://catb.org/~esr/faqs/smart-questions.html
Chill
Bro how can I create my localhost link like this public link
Chill
I'm college student please suggest me I doesn't create my project in virtual environment now is it possible to host my project if yes please suggest me
bikrant
i have passed {request, name.html, {form: 'form'}}
I think the context should be passed as: {'form':form}
Anonymous
help me, what's wrong with my regular expression. I want to use variable inside regular expression. But it doesnt work title__iregex=r'(%s)\s\d$'%post
Anonymous
please
Anonymous
anybody knows how to use variable inside regular expression 🙏
iiiiiiπoW
Hi I added list_per_page in settings.py and set the value in each model.. is it possible to use this property for all model., With out writing code in each model
Lone
I'm college student please suggest me I doesn't create my project in virtual environment now is it possible to host my project if yes please suggest me
yes it is possible but it would be a walk through hell ...virtual envs are here to simplify working with multiple projects with differrent dependencies ..so yes it is possible but i highly recommend you use virtual envs
Lone
Hi I added list_per_page in settings.py and set the value in each model.. is it possible to use this property for all model., With out writing code in each model
not sure but my take would be u create a global function ...or a factory handler that accepts the model as a parameter then import it to the needed files
Anonymous
Yes..
Abrar
what is the regex for?
Ankush
Can anyone help me with testing,it was in emergency
OneZer0
good afternoon ... can someone who has done unit tests with pytest in django help me?
Chill
Can anyone tell me where do I host my project for free while I'm using python anywhere it's asking for upgrade to work with postgresql other than that any other please tell me to work with postgresql+django
Chill
Ok thanks dude
Doragonsureiyā
Ok thanks dude
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Anonymous
Hey anyone online?
Doragonsureiyā
Hey anyone online?
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! With 60k+ people the probability that someone will help is pretty high. Also please read: http://catb.org/~esr/faqs/smart-questions.html
Anonymous
I need help with add to cart function in my project 😬
Anonymous
Anyone?
Mirco
It's still a meta question, explain your issues
Anonymous
Ok
Anonymous
I am working on a django e-commerce website for educational purposes but I don't know how to add a function called add to cart which will allow users to select products and add them
Mirco
One book for example is Practical Django 2
Anonymous
Is it free?
Mirco
The book isn't free, but lots of resources online yes
Anonymous
I saw many youtube videos but they are telling to copy paste or something like that but nobody explains the concept 😅
Mirco
Buy a good book and learn 😁 The one I suggested to u is pretty cheap and good
Anonymous
Kk
Mirco
It explains step by step how to have what you wanna build
Anonymous
Ok
Vishal
Thanks
Mirco
Doragonsureiyā
Thanks
You're welcome! 😊
محمد دلشاد
Can someone personally help me?
how do u want to add to cart the products?
محمد دلشاد
like in database or js localstorage?
Anonymous
I want it like this:- Each user will have different carts for example the things user 1 adds user 2 shouldn't be affected
Mirco
Can someone personally help me?
You have to create a cart related to the user , this is usually done with sessions to keep its status while browsing
محمد دلشاد
Anonymous
Include
محمد دلشاد
okk then here ir the key
Anonymous
Kk
محمد دلشاد
u will have 2 models in ur project for this purpose
Anonymous
Ok
محمد دلشاد
1 will have some fields like id,transaction_id(null=True),completed(boolean)
محمد دلشاد
default=False for completed
Anonymous
Kk
محمد دلشاد
and this model will be called as Order
Anonymous
Is there any way I can dm you
محمد دلشاد
next u will have a different model called OrderItems
محمد دلشاد
محمد دلشاد
Dm me
Mirco
Kk
Believe or not , if you wanna understand what is really needed buy a book and study In this way is just another way of "copy" and "pasting"
Anonymous
How😂🤦‍♂️
Mirco
Even if Lucifer explains very well to u