About Django
Django is one of the open source web framework written in Python that aims to make it easier for developers to build better web applications more quickly. Django known for its slogan:
"The Web framework for perfectionists with deadlines"
Main Features
- ORM (Object Relational Mapper)
- Automatic Admin Interface
- Elegant URL design
- Template System => (Model, Template, View)
- Cache System
- Internationalization
- Download Python (recommended> = 2.5, version 3.0 not compatible): http://www.python.org/download/ (For users of Linux / Mac, usually installed by default).
- Download Django: http://www.djangoproject.com/download/
- Documentation: http://docs.djangoproject.com/en/1.2/
- Tutorial: http://docs.djangoproject.com/en/dev/intro/tutorial01/
Linux/Mac:
Create a symbolic link to file django-admin.py:
WORKING-DIR/django-trunk/django/bin/django-admin.py ln-s / usr / local / bin
Windows:
Copy the file:
django-trunk/django/bin/django-admin.py
into the Python installation path, for example:
C: \ Python27 \ Scripts
Starting a Project
Create a new project:
django-admin.py startproject myproject
django will create a directory named 'myproject' and generate some initial files needed.
Create a new application:
enter to directory 'myproject', then run the command:
manage.py startApp kaskus
Django will generate a directory to save the new application called 'gan'.
Run the server:
manage.py runserver 8080
Next, browse to: http://localhost:8080/
0 komentar:
Posting Komentar