Home
Softono

Geekforum

Open source JavaScript
89
Stars
31
Forks
12
Issues
7
Watchers
3 years
Last Commit

 About Geekforum

基于python3.5、django1.10、xadmin的多用户博客论坛系统

Platforms

Web Self-hosted

Languages

JavaScript

Links

Need Help Installing Geekforum?

We provide expert installation service for this software. Our team will install, configure, and secure Geekforum on your server. plans start at just $30.

主要功能介绍

  • 基于python3.5,django1.10.4的多用户博客论坛系统,集成了xadmin的后台管理,采用了djangoUeditor富文本处理文章。
  • 多用户登录,注册,密码修改,上传头像
  • 每个用户可以发表文章,评论别人的文章
  • 每点击打开一篇文章,该文章访问量加1
  • 文章有类型,标签,可以通过类型标签来筛选文章
  • 热门文章,最新评论,友情链接
  • 通过发表文章的数量,访问量和点赞数排出活跃的用户

使用方法

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
  • 开始什么数据都没有,背景图片有点丑,建议换一个。。。
  • 先进入后台管理
  • 创建文章类型
  • 添加文章
  • 用户注册,登录
  • 头像设置
  • 发表文章
  • 再次访问,大功告成!!!(其他操作略。。。)