Más contenido relacionado La actualidad más candente (20) Similar a How to create a basic website with Python on Django (20) How to create a basic website with Python on Django7. Python;
Open source
Interpreted
Interactive
Object Oriented
Clear syntax
High-level programming language
Batteries included
9. High-level Python Web Framework
MTV instead of MVC
Built-in ORM (Object –relational Mapper)
Simple but powerful URL Patterns
Built-in Authentication System
Automatic Admin Interface
13. Let’s start to work
First;
$pip install virtualenv
virtualenv devfestwoman
Activate virtual environment
$pip freeze
$pip install Django
14. Creating a project
$django-admin.py startproject devfestwoman
Let’s look at what startproject created:
devfestwoman/
manage.py
devfestwoman/
__init__.py
settings.py
urls.py
wsgi.py
17. We need to create the tables in the
database before we can use them
$python manage.py syncdb
19. Let’s look at what startapp
created:
core/
__init__.py
admin.py
models.py
tests.py
views.py
21. add the app to settings.py
$python manage.py syncdb
22. Enter the admin site
Browse localhost:8000/admin
Register your models on admin.py
24. Showing your data
First, create a directory called templates in
your core directory and write your first template.
28. Me on web
Linkedin
http://www.linkedin.com/profile/view?id=175690905&
trk=nav_responsive_tab_profile
Github
https://github.com/broccolinisoup
Armağan Ersöz
03.05.2014