My friend Chris is a Django newbie who has managed to build a whole e-shop site in Django. It will launch on a couple of days and when it launches I will blog about it here too. He sent me this today which gave me a smile:

"I spent today setting up django_static for the site, and optimising it for performance. If there's one thing I've learned from you, it's optimisation.

So, my homepage is now under 100KB (was 330KB), and it loads in @5-6 seconds from hard refresh (was 13-14 seconds at its worst). And I just got a 92 score on Yslow. I do believe I have the fastest tea website around now, and I still haven't installed caching.

Wicked huh?"

He's talking about using django-static. Then I get another email shortly after with this:

"correction - I get 97 on YSlow if I use a VPN.

I just found that the Great Firewall tags extra HTTP requests onto every request I make from my browser, pinging a server in Shanghai with a PHP script which probably checks the page for its content or if its on some kind of blocked list. Cheeky buggers!"

It's that interesting! (Note: Chris is based in China but hosts the test site in the UK)

Your email will never ever be published.

Previous:
How I profile my Nginx + proxy pass server February 16, 2011 Python, Web development
Next:
Optimization of getting random rows out of a PostgreSQL in Django February 23, 2011 Django
Related by category:
Best Django Redis configuration for speed and size July 19, 2026 Django
How to use a list/tuple/array in Django with a raw SQL cursor July 14, 2026 Django
Native connection pooling in Django 5 with PostgreSQL June 25, 2025 Django
Combining Django signals with in-memory LRU cache August 9, 2025 Django