This post originated from an RSS feed registered with Python Buzz
by Carlos de la Guardia.
Original Post: First steps with Django
Feed Title: I blog therefore I am
Feed URL: http://blog.delaguardia.com.mx/feed.atom
Feed Description: A space to put my thoughts into writing.
I needed to write a small web application for my wife's cousin, so I thought, why not try something new for this? I decided to give Django a try and I am not disappointed.
The installation was a piece of cake. I got Django from the Subversion repository and installed SQLite and pysqlite according to the Django install guide. I only wanted a development setup, so I didn't install Apache or mod_python.
Next, using the Django tutorial as a guide, I created my application's model and set up admin views and a couple of user views. The tutorial was easy to follow and I had a simple running app in a very short time. I really don't care about those 20 or 30 minute world records these modern frameworks claim to set, but it felt fast and I lost little time trying to figure out things.
The only question that forced me to look at the FAQs was how to let the Django development server serve my CSS stylesheets and images, because by default there is no view set up for that (the reason being that static files should be served by a web server like Apache, not the app server itself). Maybe this should be mentioned at the end of the tutorial or something.
Overall, I had a good time playing with Django, but more experimentation is needed to see how it stacks up against my usual Zope and Plone setups.