www.improvecode.com Python Django Guide Table of Contents 1) Setup python development environment ..................................................................................... 2 2) Python Templates for Visual Studio .............................................................................................. 2 3) Create a Simple Hello World Application ...................................................................................... 3 4) Python Interactive Window (PIP) .................................................................................................. 3 5) Django Setup .................................................................................................................................. 4 6) Python Syntax Cheat Sheet ............................................................................................................ 5 7) Django Project Structure ................................................................................................................ 6 8) Django Templates........................................................................................................................... 6 9) Django Layout Master .................................................................................................................... 7 10) Django Modules ............................................................................................................................. 7 11) Sqlite3 database ............................................................................................................................. 8 12) Configuration.................................................................................................................................. 9 13) Deployment .................................................................................................................................... 9 14) Use with ExtJS............................................................................................................................... 10 15) Use with Angular or Jade ............................................................................................................. 11 16) Caching ......................................................................................................................................... 12 17) REST APIs ...................................................................................................................................... 13 Appendix ............................................................................................................................................. 14
12
Embed
Table of Contentsimprovecode.com/docs/PythonDjangoGuide.pdf · Python Django Guide 1 – Setup Python Development Environment : There are three three ways to setup Python. Using Anaconda
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
www.improvecode.com Python Django Guide
Table of Contents 1) Setup python development environment ..................................................................................... 2
2) Python Templates for Visual Studio .............................................................................................. 2
3) Create a Simple Hello World Application ...................................................................................... 3
Commonly used modules. Here is a list of the high level namespaces.
1. views.py from django.shortcuts import render from django.http import HttpRequest from django.template import RequestContext from datetime import datetime
2. tests.py import django from django.test import TestCase
3. models.py from django.db import models
4. forms.py from django import forms from django.contrib.auth.forms import AuthenticationForm from django.utils.translation import ugettext_lazy as _
Use the import command to include the following libraries.