How to Use django to develop a simple personal Blog, django blog

Source: Internet
Author: User

How to Use django to develop a simple personal Blog, django blog
How to Use django to develop a simple personal Blog

Function Overview: (functions have been implemented currently)

Public display:

1. The homepage displays published blog records, including the name, summary, release date, reading volume, and comment count.

2. The articles on the home page can be filtered by category.

3. Click the title or full-text link to go To the Blog reading page and display the title, content, and comment of the article.

Blog Background Management Section: (A background template named ACE is applied in the background and transformed into django form)

1. Administrator Logon

2. displays the list of articles by page. You can view, edit, and delete selected articles, and batch Delete is supported.

3. added the new article function. The Rich Text Editor of Baidu ueEditor supports code highlighting.

4. Added, deleted, modified, and queried categories.

Which of the following are:

The homepage Article displays:

Development Environment and software version:

The development is in windows 7, using the sublime text2 editor.

Use python2.7.3 + django1.7.0 + mysql

The front end uses bootstrap and some mature jquery plug-ins.

 

Development Process:

1. Create a project and an app, and plan the project structure.

2. design the data model, that is, the database table and table structure.

3. Design public display styles and display of background data and template views.

4. Modify the ACE background template and add the article management, Category Management, and logon verification functions.

5. Deployment to CentOS6.5. Deployment method: nginx + uwsgi + django1.6 + mysql

 

Each step has many smaller and more detailed knowledge points, and will be explained in detail in future articles based on each big point.

 

 


The python-django framework creates a simple blog that displays a comment box when an article is displayed. After the user inputs it, it submits it to the background to verify whether the article and comment are the same user, if yes, you will be prompted that you cannot give yourself a comment. If no, you will save the comment and prompt that the comment is successful.
How to Create a working directory with django to create a new project directory:
Django-admin.py startproject project_name

Create an application under the change project directory:
Cd project_name

Python manage. py startapp jobs

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.