Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

dengzhenzhen/Django_Blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Single Django Blog

This is a single blog demo built by Django.

1.Why I do this?

Daily work is so boring that I'm afraid of losing my python skills. So I'm tring to make some interesing demos for fun after work. The following plan is to update frontend and backend functions.

2.What's is made of?

frontend backend
only HTML and JS Django

Django version: 2.0.7

python version : Anaconda 4.3.30

Check your python and django version

PS C:\Users\BENCH\Documents\GitHub\Django_Blog> conda -V

conda 4.3.30

PS C:\Users\BENCH\Documents\GitHub\Django_Blog> python
Python 3.6.6 |Anaconda custom (64-bit)| (default, Jun 28 2018, 11:27:44) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

>>> import django
>>> django.VERSION
(2, 0, 7, 'final', 0)
>>>

I'm not sure if it can run in other environment successfully.


2020-02-24 update:

Rewrite frontend with Vue.js, instead of backend rendering.

3.How to use?

1.Excute run.ps1 in powershell

2.If you don't want to run a powershell script on your shell, you could choose this:

  • Open powershell(or cmd with your like)

  • cd to project dir and excute following commands

    python manage.py migrate
    python manage.py runserver   

    You should run 'migrate' command to init database when you run the server first time, then a database file db.sqlite3 would be created. You can start server using only 'runserver' command afterward.

    Default port is 8080, you can use

    python manage.py runserver 80

    to assign a port which your server runs on.

4. What to update in following versions?

  • Complete frontend
  • Beautfy and modify frontend pages
  • Add about page
  • Try to refactoring frontend with frontend framework, for example, Vue
  • Deploy this blog on a linux server with a shell file run.sh
  • Frontend converter used to convert markdown file to html
  • Comment function
  • Tag function

5. Contact information

E-mail: [email protected]

Wechat: 图片名称

About

A single blog using Django

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published