Re: Django image upload not saving

2014-06-26 Thread Darren Spruell
e path from the MEDIA_ROOT where you want images for that model stored. -- Darren Spruell phatbuck...@gmail.com > View: > > from models import Article, Edit > from forms import ArticleForm, EditForm > from forms import * > from PIL import Image > from

Combining use of template tag + filter in same expression

2014-06-26 Thread Darren Spruell
this be made to work? Or is the combination of firstof and a filter on more than the last variable unsupported? Python 2.7.7 Django 1.6.5 -- Darren Spruell phatbuck...@gmail.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubs

Re: Have browsers broken post-redirect-get? best practice now?

2013-10-04 Thread Darren Spruell
from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgi

Re: Dealing with redundant JS inclusions at template levels

2013-09-30 Thread Darren Spruell
no app required to do this intelligently. DS > 2013/9/30 Darren Spruell <phatbuck...@gmail.com> >> >> Spent a bit of time debugging some faulty JavaScript library >> functionality before I realized that I had included the library at >> multiple levels in the proj

Dealing with redundant JS inclusions at template levels

2013-09-30 Thread Darren Spruell
for this. -- Darren Spruell phatbuck...@gmail.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to

Re: Executing validation on entry to class-based views

2013-09-30 Thread Darren Spruell
m it there but >> IIANM it lacks self.request at that point. >> >> What I'd like to implement: >> >> if not settings.SOMEAPP_SETTINGS.get('sender_address'): >> messages.error(self.request, "Configuration error: >> submission sender address not found. Configure SOMEAPP_SETTI

Executing validation on entry to class-based views

2013-09-26 Thread Darren Spruell
like to implement: if not settings.SOMEAPP_SETTINGS.get('sender_address'): messages.error(self.request, "Configuration error: submission sender address not found. Configure SOMEAPP_SETTINGS in your project settings file.") return redirect('index') -- Darr

Handling temporary file storage with WizardView

2013-09-13 Thread Darren Spruell
te later 3. View processes form 4. View calls shutil.rmtree to delete temporary directory and file 5. View complete How far off of target am I? Is there a good way to do the above file resource management using WizardView? -- Darren Spruell phatbuck...@gmail.com -- You received this message b

Warning about old install when upgrading via pip

2013-09-02 Thread Darren Spruell
when upgrading Django via pip? And any reason I'd be seeing references to the system-wide install (outside of virtualenv) when I'm doing this upgrade within an active virtualenv? -- Darren Spruell phatbuck...@gmail.com -- You received this message because you are subscribed to the Google Groups

Seeking pattern for building URLs with all query parameters intact

2012-11-25 Thread Darren Spruell
rams, }, context_instance=RequestContext(request)) What are better ways to handle this? -- Darren Spruell phatbuck...@gmail.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To un

Options for migrating from django.contrib.markup for rST

2012-11-24 Thread Darren Spruell
http://packages.python.org/django-markup/ ...although this project seems a bit dated. -- Darren Spruell phatbuck...@gmail.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@google

Using subclass of RegexValidator for form field

2012-06-27 Thread Darren Spruell
quot;, validators=[URLValidator]) Here, entering "foo" into the field for reference_url outputs a validation error on the form if I enter "foo". What am I missing? Thanks. -- Darren Spruell phatbuck...@gmail.com -- You received this message because you are subscribed to th

Handling multiple parameters on URI via GET

2012-01-27 Thread Darren Spruell
of {{ submissionlogs.paginator.num_pages }} {% if submissionlogs.has_next %} {% endif %} Thx, -- Darren Spruell phatbuck...@gmail.com -- You received this message because you are subscribed to the Google Groups "Django users" group.