🏳️‍🌈Robby [ Private Message = Spam]
cj
now, please calm down and keep the topic of the group 😉
Anonymous
You're an entitled little shit.
entitled to what ?? an answer to a question 🤷‍♂
🏳️‍🌈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
🏳️‍🌈Robby [ Private Message = Spam]
you kids, go fight in the backyard
nah, I'm done with this fool.
Juris
🇸🇦
🏳️‍🌈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]
I think we've disturbed people enough
I'm telling you for the future.
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.
Anonymous
hlo
Anonymous
i have ambiguity that is in url i want to use slug with and pattern that occurs
Mirco
i have ambiguity that is in url i want to use slug with and pattern that occurs
If u don't share anything, it's hard to help ya
cvam
How to set permission to the default django admin urls ...? Only admin can access the url
Mirco
How to set permission to the default django admin urls ...? Only admin can access the url
Have a look at official docs There's an entire topic about permissions
Mirco
Thanks 😊
Yw 😁
Anonymous
rofl 70 ?
Anonymous
yes 70
highnes
Troublig to setup a payment gateway in django. Can someone help
Mirco
Troublig to setup a payment gateway in django. Can someone help
Share your code and explain where you have troubles
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.
highnes
👍
highnes
https://dpaste.de/nUGj
highnes
https://dpaste.de/nUGj
here i have a boolean variable payment_status
highnes
but the if condition doesnt work! its logs in user even if its false!
highnes
i have added a boolean field payment_status to my model, i want the user to be logged in only if its true
Mirco
i have added a boolean field payment_status to my model, i want the user to be logged in only if its true
http://ccbv.co.uk/projects/Django/2.1/django.contrib.auth.views/LoginView/ Use this one and override form_valid , so u can just focus on checking your payment_status instead of many if about user and user is active Less headaches
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?
Pradeep
These both are used in a model meta class
Shaun
anyone at Pycon?
Anonymous
That you for your response
U know any source for understanding path and repath
Mirco
U know any source for understanding path and repath
repath accepts regex , path don't ( simplified ) All you need to know is on official docs
Anonymous
That I understand but when I create path like /index/category/slug/<int>/<int>
Anonymous
It doesn't route it
Mirco
That I understand but when I create path like /index/category/slug/<int>/<int>
When u use <int> u need to specify the name of parameter so <int:num_of_places> The same with <str> etc.
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
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']
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