# 主要功能介绍
* 基于python3.5,django1.10.4的多用户博客论坛系统,集成了xadmin的后台管理,采用了djangoUeditor富文本处理文章。
* 多用户登录,注册,密码修改,上传头像
* 每个用户可以发表文章,评论别人的文章
* 每点击打开一篇文章,该文章访问量加1
* 文章有类型,标签,可以通过类型标签来筛选文章
* 热门文章,最新评论,友情链接
* 通过发表文章的数量,访问量和点赞数排出活跃的用户
* 参考了https://github.com/billvsme/vmaig_blog和https://github.com/zaxlct/imooc-django等,非常感谢他们。
# 使用方法
1)安装python3.5,pip,virtualenv和virtualenvwrapper
* 安装python3.5和pip(略)
* 安装virtualenv和virtualenvwrapper
```
pip install virtualenv virtualenvwrapper
vim ~/.bash_profile
添加以下3行:
export WORKON_HOME=~/Envs #虚拟环境存放目录
export VIRTUALENVWRAPPER_PYTHON=/Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5 #虚拟环境使用的python路径
source /Library/Frameworks/Python.framework/Versions/3.5/bin/virtualenvwrapper.sh #virtualenvwrapper初始化脚本路径
退出,执行
source ~/.bash_profile
mkvirtualenv dgblog #创建虚拟环境
workon dgblog #使用该虚拟环境
deactivate #退出虚拟环境
rmvirtualenv dgblog #删除该虚拟环境
```
2)安装DjangoUeditor3(修改版,支持python3.5)
* 进入虚拟环境dgblog,下载git
```
git clone https://github.com/liuhuipy/DjangoUeditor3.git
(dgblog) [root@VM_85_24_centos PyProjects]# cd DjangoUeditor3/
(dgblog) [root@VM_85_24_centos DjangoUeditor3]# ls
DUSite DjangoUeditor MANIFEST TestApp manage.py readme.md setup.py
(dgblog) [root@VM_85_24_centos DjangoUeditor3]# python setup.py install
```
3)下载djangoblog项目
```
cd ..
git clone https://github.com/liuhuipy/djangoblog.git
(dgblog) [root@VM_85_24_centos PyProjects]# ls
DjangoUeditor3 djangoblog
(dgblog) [root@VM_85_24_centos PyProjects]# cd djangoblog/
(dgblog) [root@VM_85_24_centos djangoblog]# ls
README.md djangoblog media static
apps manage.py requirements.txt templates
(dgblog) [root@VM_85_24_centos djangoblog]# pip install -r requirements.txt
(dgblog) [root@VM_85_24_centos djangoblog]# pip list #列表下载的python包
Django (1.10.4)
django-crispy-forms (1.6.1)
django-debug-toolbar (1.8)
django-formtools (2.0)
django-haystack (2.6.1)
djangorestframework (3.6.3)
DjangoUeditor (1.8.143)
future (0.16.0)
httplib2 (0.10.3)
humanize (0.5.1)
olefile (0.44)
Pillow (4.2.1)
pip (9.0.1)
setuptools (36.0.1)
sqlparse (0.2.3)
wheel (0.29.0)
```
* 然后就可以开始创建了
```
python manage.py makemigrations
python manage.py migrate
python manage.py createsuperuser #创建超级用户
python manage.py runserver #运行项目
```
* 访问127.0.0.1:8000
* 开始什么数据都没有,背景图片有点丑,建议换一个。。。
![](static/img/chushi.png)
* 先进入后台管理
![](static/img/houtailogin.png)
![](static/img/houtai.png)
* 创建文章类型
![](static/img/articlecategory.png)
![](static/img/categoryedit.png)
![](static/img/categoryeditsuccess.png)
* 添加文章
![](static/img/articleedit2.png)
* 用户注册,登录
![](static/img/register.png)
* 头像设置
![](static/img/touxiang.png)
* 发表文章
![](static/img/articleedit.png)
![](static/img/articleedit1.png)
* 再次访问,大功告成!!!(其他操作略。。。)
![](static/img/index.png)
![](static/img/comment.png)
没有合适的资源?快使用搜索试试~ 我知道了~
django_blog 源码
共467个文件
js:136个
py:102个
html:100个
需积分: 9 21 下载量 81 浏览量
2017-09-27
02:25:43
上传
评论
收藏 11.61MB ZIP 举报
温馨提示
django 做的简单blog, django 做的简单blog,django 做的简单blog,django 做的简单blog,django 做的简单blog,
资源推荐
资源详情
资源评论
收起资源包目录
django_blog 源码 (467个子文件)
config 335B
bootstrap.css 123KB
bootstrap.min.css 120KB
bootstrap.min.css 100KB
font-awesome.css 21KB
bootstrap-theme.css 19KB
select2.css 19KB
font-awesome.min.css 17KB
bootstrap-theme.min.css 17KB
selectize.bootstrap2.css 15KB
selectize.default.css 11KB
selectize.legacy.css 11KB
selectize.bootstrap3.css 10KB
datepicker.css 10KB
selectize.css 8KB
xadmin.main.css 8KB
xadmin.responsive.css 4KB
bootstrap-modal.css 4KB
xadmin.form.css 4KB
bootstrap-clockpicker.css 4KB
bootstrap-image-gallery.css 3KB
bootstrap-clockpicker.min.css 3KB
base.css 3KB
bootstrap-timepicker.css 3KB
bootstrap-image-gallery.min.css 2KB
bootstrap-timepicker.min.css 2KB
xadmin.widget.select-transfer.css 2KB
login.css 2KB
bootstrap-xadmin.css 2KB
xadmin.mobile.css 1KB
snap.css 1KB
xadmin.plugin.formset.css 1KB
xadmin.widget.editable.css 1KB
xadmin.page.dashboard.css 790B
comments.css 622B
xadmin.plugin.quickfilter.css 248B
xadmin.plugins.css 175B
xadmin.plugin.aggregation.css 95B
bootstrap-multiselect.css 0B
fontawesome-webfont.eot 37KB
glyphicons-halflings-regular.eot 20KB
glyphicons-halflings-regular.eot 20KB
loading.gif 4KB
select2-spinner.gif 2KB
ajax-loader.gif 2KB
model_list.html 5KB
base_site.html 4KB
nav.html 4KB
home_post.html 4KB
login.html 3KB
date.html 3KB
login.html 3KB
model_list.top_toolbar.exports.html 3KB
number.html 3KB
model_delete_selected_confirm.html 2KB
model_history.html 2KB
comments.html 2KB
sitemenu_default.html 2KB
article.html 2KB
article_edit.html 2KB
change_password.html 2KB
model_list.nav_menu.bookmarks.html 2KB
base.html 2KB
revision_diff.html 2KB
accordion.html 2KB
model_delete_confirm.html 2KB
thumbnails.html 2KB
submit_line.html 2KB
new_comment_list.html 2KB
batch_change_form.html 2KB
tabular.html 2KB
base.html 2KB
tab.html 2KB
base.html 2KB
form.html 1KB
sitemenu_accordion.html 1KB
form.html 1KB
register.html 1KB
recover_list.html 1KB
transfer.html 1KB
model_list.results_bottom.actions.html 1KB
comm.top.setlang.html 1KB
model_detail.html 1KB
model_form.submit_line.wizard.html 1KB
fk_search.html 1KB
stacked.html 1KB
password.html 1KB
model_form.html 1KB
revision_form.html 1KB
confirm.html 1KB
input_group.html 1KB
comm.top.topnav.html 1KB
recover_form.html 1KB
dashboard.html 1KB
pagination.html 1KB
base.html 940B
changeuserimage.html 934B
char.html 928B
addform.html 895B
hot_article_list.html 886B
共 467 条
- 1
- 2
- 3
- 4
- 5
资源评论
navy_wang
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- IntelliJ IDEA 2023.2.3,无需解压,直接安装
- 使用纯粹的PHP 编写的 kafka 客户端kafka-php-master.zip
- PS插件Photoshop-LayersToPNG-JH-v1.5.1.jsx
- 基于STM32单片机心率脉搏监测健康运动计步系统源码带视频演示.7z
- mmexport1713192608513.mp4
- 斯特林V4发动机 斯特林V4发动机
- 基于C实现的N阶数字正方形 ;N阶数字三角形;N阶数字递减三角形;乘法表
- 基于分水岭算法的图像分割的python源码(课程设计).zip
- 基于Java 实现的二进制十进制之间的相互转换
- Pytorch实现基于卷积神经网络的面部表情识别项目源码+数据集+全部资料(毕业设计).zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功