Django + Python

With my friends we decided to make a website using Django and Python instead of PHP.
Django is a web framework which is used a lot. It is written in Python.

To install Django on Unbuntu:

sudo apt-get install python-dev python-setuptools
sudo easy_install virtualenv
virtualenv name
source name/bin/activate
pip install django
and you must have installed:
- Python-setuptools

- libmysql++-dev

- mysqldb python driver

- python-dev

Sample URL filtering:

url(r’^(?P<pk>d+)/, DetailView.as_view( model=Poll, template_name=’polls/detail.html’)) – WHAT THE FUCK !?

Sample tutorial for the framework: HERE HERE.

You may also like...