Django
|
Size: 573
Comment:
|
← Revision 18 as of 2012-04-26 13:38:07 ⇥
Size: 793
Comment: mod_python is deprecated, and the examples.setting is not in the ubuntu django or django-doc deb. Related: http://stackoverflow.com/questions/4699824/django-on-ubuntu
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 3: | Line 3: |
| In django, first you define your database models, which generate SQL for the database and allow django to know about the data. This is essential for the DRY concept. Next, the views are defined, this is where any buisness logic, interactions with the database and the like go. Then, the urls are defined as regualar expression the map to views. Finally, templates are written, which are html (or anything composed of text) with data and simple data control sprinkled throughout. | In Django, first you define your database models as Python classes, to allow Django to understand the data and generate SQL for the database. This is essential for the DRY concept. Next, the views are written; this is where any business logic, interactions with the database and the like go. Then, regular expressions are defined to map requested URLs to the views previously written. Finally, templates are written, which are HTML(or anything composed of text) with data and simple data control sprinkled throughout. Also see http://docs.djangoproject.com/ == Django on Ubuntu == In Ubuntu the package is called [[http://packages.ubuntu.com/search?keywords=python-django|python-django]] |
Django is a python based web-framework. It can be found at http://www.djangoproject.com/.
In Django, first you define your database models as Python classes, to allow Django to understand the data and generate SQL for the database. This is essential for the DRY concept. Next, the views are written; this is where any business logic, interactions with the database and the like go. Then, regular expressions are defined to map requested URLs to the views previously written. Finally, templates are written, which are HTML(or anything composed of text) with data and simple data control sprinkled throughout.
Also see http://docs.djangoproject.com/
Django on Ubuntu
In Ubuntu the package is called python-django
Django (last edited 2012-04-26 13:38:07 by ww2)