Is Django the best for my web app ?

87 views
Skip to first unread message

Amelie Bacle

unread,
May 15, 2014, 5:33:05 AM5/15/14
to django...@googlegroups.com
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.

Tom Evans

unread,
May 15, 2014, 7:48:38 AM5/15/14
to django...@googlegroups.com
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

Avraham Serour

unread,
May 15, 2014, 7:47:30 AM5/15/14
to django...@googlegroups.com
follow the django tutorial


--
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...@googlegroups.com.
To post to this group, send email to django...@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/msgid/django-users/5790afb2-4890-48fd-8e42-8848ba20e691%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Amelie Bacle

unread,
May 15, 2014, 9:13:17 AM5/15/14
to django...@googlegroups.com
Ok thanks for your answers. Yeah maybe that best suits not here, I meant is Django able to do what I plan to do before I start studying the framework and loss time. Let's see the tutorial then ! 

Mark Phillips

unread,
May 15, 2014, 10:22:19 AM5/15/14
to django users

Amelie,

Django may be overkill for your application. However, it is very easy to use, and takes care of all the little, and big, details of getting a web application to work. The documentation is very good, and the community is very helpful. Good luck!

Mark

--
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...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.

Venkatraman S

unread,
May 16, 2014, 4:19:11 AM5/16/14
to django...@googlegroups.com
Honestly, django may be an overkill for you, as something lightweight like Flask might do the magic for this particular usecase.  Or even  a simple html with js should do without any added framework shebang.

BUT, django, comes with an awesome community and loads of packages that might help you a tonne when you want to grow your application or want to create/add more products/features.

--

Amelie Bacle

unread,
May 16, 2014, 5:24:47 AM5/16/14
to django...@googlegroups.com

Thanks again, I can see that the community of Django is very helpful now :). So if I understood well, I can just do a regular js script with AJAX that will execute a bash command on my python script ? I read that it may be dangerous, is that right ? And what about Python CGI ? 

Sorry if I ask basics questions, I feel a little bit lost on that subject... :(  

Mark Phillips

unread,
May 16, 2014, 12:00:14 PM5/16/14
to django users

Amelie,

You are asking the right questions, although perhaps on the wrong list. ;-)
One good reason for using a framework like django is that you don't have to worry so much about the "plumbing" of your application....there are a lot of really smart people doing that for you. The price you pay is the extra effort of learning how to use the new framework.

One final thought. In the time it would take to evaluate several different development options for your application (or even in the time we have been talking about this project), you could have run through the django tutorial and had your application up and running. IMO, you may be overthinking this project, given the description you gave us.

Mark

Reply all
Reply to author
Forward
0 new messages