On Thu, May 15, 2014 at 10:33 AM, Amelie Bacle <[email protected]> wrote: > Hello everyone, > > I have to do a web application at my work. I use to program with Python > every day but never for web application. So I wanted to know if Django is > the best choice for my problem. Here it is, in my application there will be > only one form (with some file uploading). After the submission, I want to > execute an internal Python script on those files on our servers. > It seems pretty simple but I have no idea how to do this so do you think > that Django will be able to do this quickly and safely ? Do you have > examples of that kind of code ? > > Thanks in advance for your answers and sorry for possibly english mistakes > :D > > Amélie. >
I don't like to say "best", it is so subjective, but django can do that no problem. You will probably want a model that tracks each file upload, and allows you to store a status about its processing: https://docs.djangoproject.com/fr/1.6/topics/db/models/ Django has a very sophisticated file storage system, but it is also very simple in its basic form. Some docs: https://docs.djangoproject.com/fr/1.6/topics/http/file-uploads/ For background processing (even when not using django), people often use celery; this has a simple integration with django using django-celery, this might be useful if your task after the form submission may be slow: http://celery.readthedocs.org/en/latest/django/first-steps-with-django.html Cheers Tom -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFHbX1JyVGzkWHTn8g%3DPMJZY%2BRw2vLJPYUbXePEet-v6te-PRw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

