are there any unexpected consequences if my urlconf has '^foo/?', include(foo.urls)? note the /? instead of the usual /
maroloccio joined the channel
Kk2 has quit
dray3 is now known as daaray_away
jpadilla joined the channel
seagreen has quit
mattmcc
Stavros: That's specific to the default user model. Non-integer models work just fine.
Stavros
mattmcc: well, they don't work with the admin
mattmcc
I use UUID models all over the place in the admin. They work fine.
Stavros
oh i can override it, right
thanks
didn't notice that
mind pasting your password-changing code?
mattmcc
Oh, we still have just the default user. But replacing that one method should suffice.
kanahee
how do install group_messaging? I cant find it :(
mattmcc
I won't have 1.5 in production for probably another 4-5 months.
Stavros
mattmcc: oh, so you don't have a UUID-based user model, right
i misunderstood
what do you use for uuids, by the way?
mattmcc
Universal uniqueness? :)
It's a quasi-multi-tenant environment.
Stavros
haha, no, i mean to generate them
just the uuid module?
mattmcc
Oh. There are a handful of UUIDField implementations floating around.
Ours I think started out as a copy of the one in django-extensions, with some tweaks for native Postgres support.
Stavros
ah, i see, thanks
i generally use a textfield defaulting to the shortuuid module, is there any advantage to a dedicated uuidfield?
mattmcc
This is where SmileyChris chastises me for not using his version.
daaray_away has quit
dray3 joined the channel
maroloccio has quit
NaOH has quit
diphtherial
mattmcc: er, sorry to bother you about cloud hosting again, but have you used ec2?
i apparently signed up for an ec2 account a long time ago, so i think my free year has expired; does that mean i'll get billed just for using it, even if i stay within the micro tier limitations?
they seem purposefully vague about it in the documentation
mattmcc
Well, AWS docs tend to suck across the board.
diphtherial
indeed :x much of it reads like a sales pitch
i'm afraid that i'm running up a monster bill without any means of being able to tell
er, and on a more django-specific front, is there a nice way to write a management command that monitors the db for changes without having to be constantly polling it?
mattmcc
Stavros: Postgres' native data type validates and stores them more efficiently than a text field.
diphtherial
(right now, i do a query for pending jobs in some table, and process them one at a time if i find any; if i don't, i sleep for a little bit and then try the query again)
Dex26354 has quit
Stavros
mattmcc: interesting
i'm using user-facing ones, so i prefer the uuids being as short/readable as possible, so i guess they're different use cases
mattmcc
Yeah.
For user-facing stuff, I just use a fairly basic url shortener.