The Soundslice philosophy:
The best way to learn music is by listening to it, not just reading it.
Setting up Django in Virtualenv on WebFaction’s Apache with mod_wsgi
If you want to run a Django application on WebFaction, you may simply use their automatic application creation scripts. Unfortunately, if you want to place your application in a Virtualenv, the automatic installer will not help you. I’m sure that WebFaction will eventually add an installer to set this up, but for now, you can use the following tutorial. In this text we set up a Django project in a Virtualenv running on WebFaction’s Apache with mod_wsgi.
Web API performance: profiling Django REST framework
I’m going to be making the case that Web API developers who need to build high performance APIs should be focusing on a few core fundamentals of the architecture, rather than concentrating on the raw performance of the Web framework or API framework they’re using.
Creating a JSON response using Django and Python
<span class="kwd">import</span><span class="pln"> json </span><span class="kwd">from</span><span class="pln"> django</span><span class="pun">.</span><span class="pln">http </span><span class="kwd">import</span> <span class="typ">HttpResponse</span><span class="pln"> response_data </span><span class="pun">=</span> <span class="pun">{}</span><span class="pln"> response_data</span><span class="pun">[</span><span class="str">'result'</span><span class="pun">]</span> <span class="pun">=</span> <span class="str">'failed'</span><span class="pln"> response_data</span><span class="pun">[</span><span class="str">'message'</span><span class="pun">]</span> <span class="pun">=</span> <span class="str">'You messed up'</span>