Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elliotxx/mingblog
A personal blog based on Django
https://github.com/elliotxx/mingblog
blog django markdown markdownx python python-web python2
Last synced: about 2 months ago
JSON representation
A personal blog based on Django
- Host: GitHub
- URL: https://github.com/elliotxx/mingblog
- Owner: elliotxx
- License: gpl-2.0
- Created: 2017-01-09T10:01:55.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-11-11T08:03:52.000Z (about 5 years ago)
- Last Synced: 2024-04-21T00:15:51.718Z (8 months ago)
- Topics: blog, django, markdown, markdownx, python, python-web, python2
- Language: JavaScript
- Homepage:
- Size: 3.16 MB
- Stars: 27
- Watchers: 4
- Forks: 19
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
个人博客:[呓语 | 杨英明的个人博客](http://www.yangyingming.com)
欢迎访问!
## 特性
* 采用markdownx编辑器,支持编辑页和预览页双排显示,支持图片拖曳上传
* 支持markdown和html两种编写博文的方式
* 采用多说评论框
* 文章分类
* 文章标签
* 文章归档
* 广告滚动条
* 适配移动端## 部署项目
### 下载项目
```
clone https://github.com/windcode/MingBlog.git
```### 修改 MingBlog/setting.py
* 1、关闭DEBUG功能
DEBUG=False
* 2、ALLOWED_HOSTS = [] 改为 ALLOWED_HOSTS = ['*']
允许所有IP访问
* 3、填写数据库信息
```python
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'blog',
'USER': 'youruser',
'PASSWORD': 'yourpwd',
'HOST': '127.0.0.1', # 默认
'PORT': '3306', # 默认
}
}
```
* 4、填写网站基本信息
```python
SITE_HOST = 'http://www.your-domain.com'
SITE_NAME = 'xxx的个人博客'
SITE_DESC = '这是我的博客,专注于技术分享,欢迎交流'
ZHIHU_PAGE = ''
PRO_RSS = ''
PRO_EMAIL = 'youremail'
```