makes me think something on your system is interfering with homebrew
though evidently homebrew can't etll
*tell
malgorath
I'm about to reinstall this MBPr tbh. I probably screwed something up on setting things up
gonna swap to my windows laptop brb
malgorath has quit
jessamynsmith
ok
Malgorath joined the channel
Malgorath
Back :D
josuebrunel joined the channel
jessamynsmith
welcome back
READ10 joined the channel
Malgorath
tbh I think cleaning the drive out and starting fresh will be best anyways as I had a lot of dev stuff for PHP on it also
choosegoose has quit
kuter has quit
jessamynsmith
If you want to...
Malgorath
only takes me like 30 minutes instead of the 2 days I've spent trying to get this to work and searching google
jessamynsmith
that is fair...
meninoebom joined the channel
Malgorath
I'm getting to where I like having different laptops for different applications, even selling my mac pro tower off cause I really don't like using it much anymore
jessamynsmith
interesting
My mbp is a mess of different env setups
Bryson has quit
mattmcc
VMs FTW
Bryson joined the channel
jessamynsmith
it is also my only computer, so I would be loathe to reformat it
Malgorath
Well I do like using my MBPr for dev work, and my windows laptop for gaming. Considered getting a 3rd for linux but I'm not really sure if its needed
ycon_ joined the channel
I have so many backups of stuff that its not a big issue for me to wipe a computer clean
Skandocious joined the channel
Skandocious
does anyone know how to cleanse sensitive request headers from traceback emails?
i know this can be done for POST parameters... but i'd like to **not** include HTTP_AUTHORIZATION headers in my traceback emails
READ10 has quit
colinbits joined the channel
Malgorath
I spent entirely to much money a few years ago on Apple, probably should have just got either a laptop from APple or just bought a low end windows laptop with a nice keyboard. I mean that is like 99% of why I like my MBPr is the keyboard. If I could get python stuff to work on my windows laptop I'd probably sell the MBPr but my virtualbox-fu is not good enough to get the environment setup where I can share folders and such.
Skandocious
or even where the class that sends these emails lives? i would assume its middleware but i don't see it in my middleware classes list
underthehill joined the channel
RohitV joined the channel
Tyriss joined the channel
Tyris has quit
jessamynsmith
Malgorath: I find mac dev tolerable
windows dev not so much :/
linux dev is nice but then there are other issues
pyface joined the channel
Malgorath
yeah, I like mac well enough just more for me its keyboard layout and feeling
jessamynsmith
:)
alright, I'm out for a bit
maybe things will be better for you by time I get back :)
Malgorath
I hope so
ycon_ has quit
apiarian joined the channel
gp_tablet joined the channel
gp_tablet
How does one go about testing max_length of a varchar field in the db? Not testing the form validation, but that the db constraint works
Debnet has quit
mattmcc
You want to write a unit test to verify your DB works?
Skandocious
found it-- AdminEmailHandler
wintrmute joined the channel
gp_tablet
Mattmcc: Yes
Mattmcc: for a custom field
mattmcc
gp_tablet: Ah. I'd take a look at Django's migration operations tests, then.
gp_tablet
mattmcc: thanks
jessamynsmith has quit
jiang42 joined the channel
READ10 joined the channel
colinbits has quit
crakrjak joined the channel
xterm joined the channel
transit has quit
stantonk has quit
foist
I need to prevent just a few fields on my model from ever being updated. What’s an elegant way to accomplish this? Just add some lines to the `clean()` method that will compare new and old values and raise a `ValidationError` if they don’t match?
mattmcc
Exclude them from the form
dray3 has quit
foist
What about enforcing it at the model level? What if someone makes two forms for it? They might not know the rule.
a_little_birdie joined the channel
jiang42 has quit
I generally prefer to enforce business rules at the model level.
sudomarize has quit
mattmcc
How does the field get populated initially? You might use editable=False.
fission6 joined the channel
gp_tablet
mattmcc: Having trouble finding a reference and your reply made me question testing it. Do you think it is not worthwhile to test a custom charfield defining a db_type respects max_length? http://dpaste.com/08E03B8
mattmcc: this came up because sqlite doesn't
dronezero has quit
xterm has quit
mattmcc
Right, sqlite doesn't put constraints on varchar fields.
foist
mattmcc: it’s an idea. Is there something wrong with having a policy of asking all devs to call `full_clean()` before saving an instance?
BabySuperman joined the channel
gp_tablet
foist: I've seen that handled by caching a copy of the value under a "private" attribute when the model is populated from the database and checking on save. But it doesn't work on bulk operations if I remember correctly
Ariel_Calzada has quit
foist
gp_tablet: yes, bulk operations are different. I am only concerned with operations on individual records. My application will not provide bulk editing facilities.
gp_tablet: do you happen to have a snippet of that anywhere?
busla has quit
fission6_ joined the channel
gp_tablet
foist: don't seem to have it available =/ sorry
CMSBottu has quit
laptop crashed and I don't have all of my files recovered yet
RohitV has quit
CMSBottu joined the channel
sudomarize joined the channel
heatmeiser has quit
foist
gp_tablet: okay, thanks. I’ll take a look at that approach.
kissgyorgy has quit
bcSquared joined the channel
vlt joined the channel
mattmcc
foist: ModelForms will run model validation, so the only case you'd have to worry about is when they're saving model objects directly. At that point, yeah, they'd have to be told to run model validation, since it's opt-in.
heatmeiser joined the channel
vlt has left the channel
telmich joined the channel
foist
mattmcc: do you think it makes sense to put such a validation in `clean()`? The old vs. new-value comparison.
telmich
good evening
vlt joined the channel
robvdl joined the channel
josuebrunel has quit
I've setup a variable "hosting" via context in the view and would like to use that part as an argument to {% static %}, however when I use {% static "hosting/css/{{hosting}}hosting.css" %} the {{ hosting }} part is not replaced
transit joined the channel
elyezer has quit
darylantony joined the channel
SteenJobs joined the channel
heatmeiser has quit
Lobstaman3 has quit
pydave6367 joined the channel
domino14 joined the channel
SuperLag joined the channel
acangiani has quit
Marcelo has quit
pilva joined the channel
chachan has quit
tchalla
hello, would there be any reason why i can't perform a select_related on a foriegn key?
stantonk joined the channel
Lobstaman3 joined the channel
michalmo has quit
Tyriss has quit
kissgyorgy joined the channel
kissgyorgy has quit
vlt
tchalla: Other than it's spelled "foreign"?
telex has quit
Tyris joined the channel
Andy80 has quit
brockhaywood has quit
tchalla
vit: correct (keyboard is not cooperating today). the foreign key would be accessed by it's related_name