html5 + Django

95 views
Skip to first unread message

collectiveSQL

unread,
Apr 29, 2012, 8:39:15 AM4/29/12
to Django users
Hi Everyone,

I'm working on a heavily animated web site using the html5 canvas tag.
Its mainly made of html, javascript and css static files and I'd like
to integrate the Google Identity Toolkit for an Oauth 2.0 account
chooser for signup and registration.

The first question is Django a good candidate for serving up mainly
static files and using a small Django app for authentication?

And secondly what performance impact would this have over straight
apache?

More info:

1. Static web files such as html, javascript and css are stored on
Amazon AWS S3
2. Data is loaded via oData using jsdata for animations
3. Amazon AWS EC2 is used to scale apache web servers

Thanks in advance.

HarpB

unread,
Apr 30, 2012, 1:51:08 PM4/30/12
to django...@googlegroups.com
It is much better to use Apache for static files than Django. You can still run DJango for data validation, but all static content is typically served via Apache. In your  virtualhost, you should proxy the /static/ endpoint to the /static/ folder in Django app.

yati sagade

unread,
Apr 30, 2012, 3:47:16 PM4/30/12
to django...@googlegroups.com
I suggest Nginx to serve your static files, and possibly also as a reverse proxy to point to your Django with Gunicorn/Apache setup (If you haven't considered Gunicorn as a production server yet, please do. It is fantastic).

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/p30N-x76AEgJ.

To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.



--
Yati Sagade

Twitter: @yati_itay

Organizing member of TEDx EasternMetropolitanBypass
http://www.ted.com/tedx/events/4933
https://www.facebook.com/pages/TEDx-EasternMetropolitanBypass/337763226244869


collectiveSQL

unread,
May 1, 2012, 8:01:14 AM5/1/12
to django...@googlegroups.com
Thanks guys, both posts helped.

Cheers.

Daniel Sokolowski

unread,
May 1, 2012, 6:58:03 PM5/1/12
to django...@googlegroups.com
Hi there, you may also just serve both your static files and django through one apache instance – makes for simple setup and you’ll know when you need something more complicated.
 
Sample apache script: http://dpaste.com/741128/
To unsubscribe from this group, send email to mailto:django-users%2Bunsu...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
 
Daniel Sokolowski
Web Engineer
Danols Web Engineering
http://webdesign.danols.com/
Reply all
Reply to author
Forward
0 new messages