Python

TwitterFacebook
Get flash to fully experience Pearltrees
Welcome to the South tutorial; here, we’ll try and cover all the basic usage of South, as well as giving you some general hints about what else to do. If you’ve never heard of the idea of a migrations library, then please read What are migrations?

Part 1: The Basics — South 0.7.6 documentation

http://south.readthedocs.org/en/latest/tutorial/part1.html
http://slavus.net/blog/2008/06/18/interactive-django-shell-in-pydev We all know that Django is great Python web framework, however one thing that bothers me is the lack of good development tool (Yes, I know there is VIM, and there is Emacs but guys it is 2008.)

Interactive Django shell in Eclipse/PyDev interactive console - Slavus programing blog

Managing static files

https://docs.djangoproject.com/en/dev/howto/static-files/ Django developers mostly concern themselves with the dynamic parts of web applications – the views and templates that render anew for each request. But web applications have other parts: the static files (images, CSS, Javascript, etc.) that are needed to render a complete web page. For small projects, this isn’t a big deal, because you can just keep the static files somewhere your web server can find it.
http://onstartups.com/tabid/3339/bid/20493/Why-PHP-Is-Fun-and-Easy-But-Python-Is-Marriage-Material.aspx I think a lot about choices and decisions at startups.

Why PHP Is Fun and Easy But Python Is Marriage Material

User authentication in Django

Django comes with an user authentication system. https://docs.djangoproject.com/en/dev/topics/auth/
https://docs.djangoproject.com/en/dev/topics/auth/#basic-usage Django comes with an user authentication system. It handles user accounts, groups, permissions and cookie-based user sessions. This section of the documentation explains how the default implementation works out of the box, as well as how to extend and customize it to suit your project’s needs.

User authentication in Django

https://pypi.python.org/pypi/virtualenv/

virtualenv 1.7.2

Virtual Python Environment builder Warning We advise installing virtualenv-1.9 or greater.
To get started with Django in PyDev, the pre-requisite is that Django is installed in the Python / Jython / IronPython interpreter you want to use (so, "import django" must properly work – if you're certain that Django is there and PyDev wasn't able to find it during the install process, you must go to the interpreter configuration and reconfigure your interpreter so that PyDev can detect the change you did after adding Django). If you don't have Django installed, follow the steps from http://www.djangoproject.com/ .

Django

windows

Templating

Templating, and in particular Web templating, involves the presentation of information in a form which is often (but not always) intended to be readable, even attractive, to a human audience.

HOWTO Use Python in the web

Programming for the Web has become a hot topic since the rise of “Web 2.0”, which focuses on user-generated content on web sites. It has always been possible to use Python for creating web sites, but it was a rather tedious task.
This document contains all the gory details about all the field options and field types Django’s got to offer. Field options

Model field reference

Mechanical Girl : Working with the Django admin and legacy databases, pt.3

Part 1 | Part 2 After you've run inspectdb and done all your syncing and basic admin setup, take a peek at the models you generated - depending on the state of your legacy db, you've probably wound up with something that looks like this (column names have been changed to protect the innocent, although I'm not sure that the so-called architects who created these tables deserve anyone's protection):