last() doesn't return queryset but individual object.
So in those cases you need to drop to connection.queries.
fikka joined the channel
fikka has quit
sunil_bansal joined the channel
masaki has quit
fikka joined the channel
codermato has quit
fission6
hey all happy friday!
fikka has quit
jtiai do you use docker locally
fikka joined the channel
kristian__ has quit
fikka has quit
anyone have a CI/Build/deploy process they are in love with and want to chat a little
GraysonBriggs
we use GitLab pipelines for CI and it works really well but i didn't make it nor manage it, so I couldn't really help you
pradhvan
fission6, Will be Saturday here in 5 min :-P
djapo
I need to sort a query set by a datetime field, the values for the ones that need to be displayed first are suppose to be withing 3 days from today in the future, the rest should be past or further into the future
pradhvan
Happy Friday though :)
Knyght
happy slack being down day, apparently
fission6
same (kind of)
GraysonBriggs
djapo so not linearly sorted, you'll have to split it up for that
pterojackdyl joined the channel
fikka joined the channel
ticketbot has quit
azulakina has quit
ticketbot joined the channel
jtiai
fission6: Yes, since I develop in windows and pycharm pro has pretty good support for docker.
fikka has quit
drazan has quit
nix64bit joined the channel
Ergo joined the channel
safwan joined the channel
fission6: And we use jenkins at work. Works "perfectly".
fission6
niceee
kristian__ joined the channel
pterojackdyl
Hi guys, sorry to bother you but I'm just looking for any advice/ pointers on something. I'm just in the planning phases of a project for A-Level comp sci. I was thinking of making a site as a sort of front end of a simple enough mysql database and i was just wondering if it would be feasible to add something to the input page that would take a product code and look on a different website to maybe grab an image to make it easier
Im not the greatest, and dont need any sort of solution but if you could maybe point me in the right direction on how to achieve it I'd be super grateful
greg_f has quit
nix64bit has quit
lorddaedra has quit
tvm has quit
jtiai
pterojackdyl: guys only? Well switch mysql to postgres if possible. Then you're looking for some kind of web crawler or if you're lucky sites you're thinking of may have API you can leverage.
lorddaedra joined the channel
djapo
hmm true
kristian__
pterojackdyl: you need a simple form then you handle the input in the view, if you need to crawl a website you should have a look at beautiful soup. Also if you’re new to django I’d recommend going through the tutorial on django website
Haudegen joined the channel
fikka joined the channel
pterojackdyl
Yeah, I have messed about with django a bit with the tutorial and other tutorials too. I'm starting to get a rough and basic understanding
I'll definitely have a look at beautiful soup
drazan joined the channel
fission6
are people here developing locally using docker? curious if thats a popular means
fikka has quit
jtiai
fission6: Like I said, I do.
And in windows on top of all that.
fission6
niceee
pterojackdyl
Oh and jtiai, I'm not sure on the differences in honesty, and while i could probably benefit setting up my own server I've been given access to a mysql server. Would you highly recommend the change or is it just a mild improvement?
jtiai
Highly. mysql is pretty famous about destroying your data. And postgres has first class support in Django.
fikka joined the channel
fikka has quit
pterojackdyl
Oh boy. I might look into setting up something simple for myself then.. Even though its probably not going to be awfully important
djapo
hey guys have you guys used amzon cognito for auth yet?
jtiai
djapo: guys only? And no, I haven't used. What does it offer?
djapo
generic term of refrence, I would like to use it for my OAuth integration .. but the the boto package is very well documented
.. uhm i mean, not very well documented
Leeds has quit
jtiai
Well it seems to support oauth 2, so shouldn't oauth package be able to use it ootb?
fikka joined the channel
djapo
jtiai: yes, just wondering if it was a common choice here or is django-allauth is still the top package
jtiai_ joined the channel
graphene has quit
fikka has quit
jtiai has quit
graphene joined the channel
fikka joined the channel
graphene has quit
jackhum has quit
graphene joined the channel
fikka has quit
Ergo joined the channel
maryo has quit
kristian__ has quit
felixx joined the channel
korono89 has quit
fikka joined the channel
jackhum joined the channel
kristian__ joined the channel
fikka has quit
newdimension joined the channel
audioburn has quit
audioburn joined the channel
fikka joined the channel
newdimension has quit
newdimension joined the channel
xliiv__ has quit
fikka has quit
foul_owl joined the channel
eperzhand has quit
frog3r joined the channel
masterrex has quit
pwrentch has quit
frog3r has quit
fikka joined the channel
fikka has quit
masterrex joined the channel
jtiai joined the channel
kristian__ has quit
jtiai__ joined the channel
kristian__ joined the channel
jtiai_ has quit
jtiai has quit
lorddaedra has quit
daydreamm has quit
roadie joined the channel
lorddaedra joined the channel
GraysonBriggs has quit
fikka joined the channel
eperzhand joined the channel
czart has quit
fikka has quit
masterrex has quit
lomex joined the channel
csotelo joined the channel
fikka joined the channel
fikka has quit
tdy joined the channel
Jaykay joined the channel
PtxDK
I have this signup form: https://dpaste.de/00CP but i would like to reduce the default max_length of username, how?
was thinking maybe i can redefine it somehow?
but i dont want to touch the core-stuff too much.
v0lksman
PtxDK: you could reduce it by overriding the form
but it would only be enforced when using that form