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