Skip to content

BigBorg/Blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Blog

My blog using py3, Django1.9. Checkout how it works: bigborg.top

Installation

Step1: Virtual Environment

clone the repository, create a virtual env with all dependencies installed.

git clone https://github.com/BigBorg/Blog
cd Blog/Blog
conda create -n web3 -f condarequirement python=3.6
source activate web3

Step2: Configuration

  • Go to the file Blog/Blog/private_settings.py and customize your setting. The variables are self-explanatory.
  • Remove the baidu-site-verification meta line in the file Blog/Blog/templates/posts/base.html since the code is just for myself.

Step3: Mysql Database

Remember to create database and database user in mysql.

Celery

You need to start celery worker process so that the blog could send activation email asynchronously.

celery -A Blog worker

Step4: Deploy or Debug

To debug just run python manage.py runserver. For deployment, I recommend gunicorn and nginx. Note that you need to set up nginx to serve static and media files. This is important! Don't use django to serve static files.

About

My blog using py3, django

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published