🏳️🌈Robby [ Private Message = Spam]
🏳️🌈Robby [ Private Message = Spam]
cj
now, please calm down and keep the topic of the group 😉
🏳️🌈Robby [ Private Message = Spam]
🏳️🌈Robby [ Private Message = Spam]
I did answer you.
🏳️🌈Robby [ Private Message = Spam]
You're just not understanding and rather than ask follow-up questions... you're acting like a child.
cj
you kids, go fight in the backyard
Juris
🇸🇦
Anonymous
🏳️🌈Robby [ Private Message = Spam]
Dope
you definitely will want to work on that attitude though. People have to like you to help you.
Anonymous
I think we've disturbed people enough
🏳️🌈Robby [ Private Message = Spam]
Ajay
Anyone have product recommendation code for e-commerce website
Ильяс
https://gist.github.com/Achekeev/f1c86934bdf195474b554542f743b6cc
Ильяс
When i confirm registration this kind of mistake shows up, UserProfile() got an unexpected keyword argument 'user'
Ильяс
Can anyone explain?
Oleg
https://gist.github.com/Achekeev/f1c86934bdf195474b554542f743b6cc
Reverse for 'activation' with keyword arguments '{'uidb64': '', 'token': '55y-dbb4b1aaa3fed83e9555', 'email': 'achekeev88@gmail.com'}' not found. 1 pattern(s) tried: ['users/activate/(?P<uidb64>[^/]+)/(?P<token>[^/]+)/(?P<email>[^/]+)/$']
uidb64 param requires at least one character as seen from the regexp: [^/]+
But it's empty.
Ajay
Anonymous
hlo
Anonymous
i have ambiguity that is in url i want to use slug with and pattern that occurs
Mirco
cvam
How to set permission to the default django admin urls ...? Only admin can access the url
Mirco
cvam
Mirco
Anonymous
rofl 70 ?
Anonymous
yes 70
highnes
Troublig to setup a payment gateway in django. Can someone help
Mirco
highnes
I would have ,but i didn't start to code it, im new to it, i mean its good if i could get some tutorial links or something that can help from scratch.
Mirco
highnes
👍
highnes
https://dpaste.de/nUGj
highnes
but the if condition doesnt work! its logs in user even if its false!
Mirco
highnes
i have added a boolean field payment_status to my model, i want the user to be logged in only if its true
highnes
Thank you
Mirco
Thank you
Pay attention on form_valid of LoginView , Django uses a method called auth_login , so use it instead of login
highnes
👍
Pradeep
Can someone please help me with one if the django basic question
Pradeep
In one of the model i found ordering = (-"created_date") and get_latest_by = "created_date"
Pradeep
Why both (ordering and get_latest_by) have used, can't any of these will work?
Mirco
Pradeep
These both are used in a model meta class
Shaun
anyone at Pycon?
Anonymous
Anonymous
Anonymous
That I understand but when I create path like /index/category/slug/<int>/<int>
Anonymous
It doesn't route it
Anonymous
Yes. Of course
Anonymous
I did
Mirco
And ?
Anonymous
It says not matching url found
Mirco
Share your urlspattern
Anonymous
re_path('category/(?P<category>[ \' a-z A-Z àâçéèêëîïôûùüÿñæœ & \' , \s]+)/<int:start>/<int:end>/$',Index.as_view(),name="index_category_price")
Mirco
check your regex , imho the main problem is it
Anonymous
without the parameters it is working just fine
Mirco
Anonymous
ys
Mirco
ys
Use the regex even for them
Anonymous
tried once though
Anonymous
let me try again
Mirco
Yep 😁
Anonymous
nope
Anonymous
index/ category/(?P<category>[ ' a-z A-Z àâçéèêëîïôûùüÿñæœ & ' , \s]+)/(?P<start>[0-9]{4})/(?P<end>[0-9]{4})/$ [name='index_category_price']
Mirco
Anonymous
what tool??
Anonymous
web regex
Mirco
Whatever regex validator online to be sure yours works
Anonymous
i does
Mirco
Does it work as u expect ?
Anonymous
oh man
Anonymous
go it testing was not correct