Recently learning Python, today to do a small practiced hand program--todolist, here to record the process.
Tools: pycharm4.5,django,python2.7, MySql5.6
Platform: Ubuntu15.04 x86_64
First, tool version view
1. Django:
2. MYSQL:
Ii. Establishment of Pycharm project
1. Create New project-> django->location->interpreter-->application Name
After the establishment is completed, for example, the project name is Projecttdl, add only one by one apps for ToDoList
2. settings.py file
a) Base_dir = Os.path.dirname (Os.path.dirname (Os.path.abspath (file) )
b) Module Configuration
c) Database Configuration
d) template, static file configuration
Templates under the project directory, the static directory is in the templates directory
settings.py Basic Completion
.......待续
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Using Django to develop a todolist small project