Skip to content

xlhu19/yinhublog-django

Repository files navigation

安装

sudo apt-get install nginx

pip install -Ur requirements.txt

python3 manage.py makemigrations python3 manage.py migrate

./manage.py createsuperuser

创建测试数据

终端下执行:

./manage.py create_testdata

收集静态文件

终端下执行:  

./manage.py collectstatic --noinput
./manage.py compress --force

开始运行:

执行:
./manage.py runserver

浏览器打开: http://127.0.0.1:8000/ 就可以看到效果了。

sudo ln -s /etc/nginx/sites-available/djangoblog.conf /etc/nginx/sites-enabled/djangoblog.conf

About

A blog based on django. Deprecated now.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published