Skip to content

ButteredCat/my_blog

Repository files navigation

my_blog

A django blog system deployed on Sina App Engine (SAE).

Features

  • Editing in Markdown
  • Code highlighting
  • MathJax
  • duoshuo comments
  • Share to SNS
  • Mobile device friendly
  • Search in site
  • Archives views
  • Categories
  • Sitemaps
  • robots.txt

Installation on localhost

git clone https://github.com/ButteredCat/my_blog.git
cd my_blog
virtualenv env
source env/bin/activate
pip install -r requirements.txt

Before Use

  • Create your local MySQL database.
  • Create a sensitive.py in my_blog, in which you define 4 variables: SECRET_KEY, LOCAL_DB, LOCAL_DB_USER and LOCAL_DB_PASS.
  • Customise ALLOWED_HOSTS and STATIC_URL in my_blog/settings.py.
  • Setup database with django migration tool.

Deploy on SAE

  • Run pack.py to package code and static files.
  • Export local database.
  • Upload package and database file to SAE.

About

A django blog system deployed on Sina App Engine (SAE).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published