Re: working ImageField upload example

2016-08-25 Thread Greg Gilley
com/divio/django-cms/issues/5013 > <https://github.com/divio/django-cms/issues/5013> > > https://github.com/divio/django-cms/issues?utf8=%E2%9C%93&q=is%3Aissue%20rest%20framework > > <https://github.com/divio/django-cms/issues?utf8=%E2%9C%93&q=is%3Aissue%20rest%2

Re: working ImageField upload example

2016-08-24 Thread Greg Gilley
It appears to be a conflict with django cms. If I have this middleware installed, it fails. 'cms.middleware.toolbar.ToolbarMiddleware', Any ideas what is going on? Greg > On Aug 24, 2016, at 1:49 PM, Greg Gilley wrote: > > Okay, I created a small project and it wo

Re: working ImageField upload example

2016-08-24 Thread Greg Gilley
ake life easier for sharing. > > ~ Andrew > >> Greg Gilley <mailto:ggil...@gmail.com> August 25, 2016 at 1:46 AM >> >> >> The same pattern I’m using works fine for regular django forms, but I will >> try this (I’m open to anything at this point :-) — jus

Re: working ImageField upload example

2016-08-24 Thread Greg Gilley
ndline > IS_TESTING = not {'testserver', 'test', > 'jenkins'}.isdisjoint(set(sys.argv[1:2])) > # elsewhere in settings > if IS_TESTING: > DEFAULT_FILE_STORAGE = ‘inmemorystorage.InMemoryStorage' Cool. I had not seen that I’ll check it out. Greg

Re: working ImageField upload example

2016-08-24 Thread Greg Gilley
Okay, knowing that its working for someone is helpful. It’s possible it’s a problem with my tests. I get errors back: response.data= {'name': ['This field is required.'], 'image': ['No file was submitted.'], 'recipe_as_image': ['No file was submitted.']} If I print out what the view is getting