Using Django to develop a todolist small project

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.