Tuesday, November 28, 2017

Re: FileField - not stored to disk when using mod_wsgi?


What's your view that's responsible for handling that model instanciation?
 
This of course quickly gets slightly unwieldy - but thanks for the interest. The view/endpoint accepting the POST is this:

https://github.com/joakim-hove/fmu_storage/blob/master/ensemble/api/views.py#L56

The relevant function call is the `Simulation.upload( )` call on line 74; and that is implemeted here: https://github.com/joakim-hove/fmu_storage/blob/master/simulation/api/views.py#L107 (observe that there is a 'import as ' which enforces a class rename). The full model module is here: https://github.com/joakim-hove/fmu_storage/blob/master/simulation/models.py

Regards - Joakim




--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CALKD1M97vZW6Su%2BSpeX_kHktFFN598sSW9x%3DBRmuFUAVm-mU%2BA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment