Mobil Mewah

Salah satu sumber Inspirasi.

Wednesday, 12 March 2014

Upgrade from Django15 to Django16

Here again I am trying to upgrade my application from Django1.5 to Django1.6 which I documented here. The bump I found in my code was the url import in urls.py Before we import urls like this : from django.conf.urls.defaults import * In Django1.5 there was warning that this will be deprecated. Now in Django1.6 , the app wont start. Instead we must use this for the import : from django.conf.urls import * The package moved to other place....

Tuesday, 11 March 2014

Testing web application performance

For developers, we need to know how to test the performance of our application. Some tools are available to hit your application and know about the maximum performance you can get. Of course the test done on the same machine of production or just in your local development machine. Why we need to make this test ? Actually is it a simple question. For most of the test done, we need to know the baseline of the application, and if we make some improvement, we need to know how it is affect the application performance. For new application baked from your development lab, of course the result give use some baseline for the application performance. After...

Sunday, 9 March 2014

Upgrade Django 1.4 to Django 1.5

After successfully upgrade my Django app from using Django 1.3 to Django 1.4, now i try to upgrade my app to be running Django 1.5.5 Some method i use are : + OS Debian 7 + Python 2.7 + Virtualenv Django 1.5.5 released around October 2013. Here are the Official Release Notes The deprecated feature was the new way of handling url in template. What i got was the project template still the same with Django 1.4.10 . After running I got bumped...

Saturday, 8 March 2014

Virtualenv with Virtualenvwrapper power

Work with python, you should know about virtualenv which enable us as python developer to build great thing with different setup. For the newbie, a quick info is you can run your app with different python version and different package version without version conflict. For example we have twitterclient application. It build on python2.7 and Django1.3 . Now i need to test it using Django1.4 . So how we do this ? We not need to uninstall the Django1.3, but we use virtualenv, and use virtualenvwrapper on top of it. It makes developer life easier. Lets dive in to the usage. First you have pip already installed, if not install it using : # easy_install...

Page 1 of 2512345Next
Twitter Delicious Facebook Digg Stumbleupon Favorites More