Re: Advice needed: Adaptive/Responsive Images in Django?

2014-11-20 Thread Patrick Beeson
AListApart recently published a great article on responsive images: http://alistapart.com/article/responsive-images-in-practice On Thursday, November 20, 2014 1:05:45 AM UTC-5, ThomasTheDjangoFan wrote: > > Hi guys, > > do you have a tip for implementing adaptive (responsive) images in django? >

Re: Making a field Read-Only in Django

2014-11-17 Thread Patrick Beeson
I believe you can set this via a built-in widget's attrs: somefield = forms.CharField( widget=forms.TextInput(attrs={'readonly':'readonly'})) On Monday, November 17, 2014 1:48:44 AM UTC-5, Frankline wrote: > > Hi all, > > I'm running Django 1.7 and Python 3.4. I'm trying to make the username

Can't figure out how to attach file to email using EmailMessage

2014-02-21 Thread Patrick Beeson
Good morning y'all! I'm having a heck of a time figuring out what I'm doing wrong in attaching a file uploaded via a ModelForm to an email that's sent if the form is valid. Here's a link to my code on Stackoverflow: http://stackoverflow.com/questions/21938849/inmemoryuploadedfile-object-has-no-