centos下安装djangobb

Posted on 2018-04-09 21:08  王将军之武库  阅读(170)  评论(0编辑  收藏  举报

  曾经在freenas虚拟环境下安装过djangobb,因为要安装的依赖文件太多,最后没有安装成功。

  今晚在centos6.9 下,先创建了虚拟环境,然后照着官方网站的快速安装指南,安装后也运行不了,后来把源码的djangobb_forum的文件夹放到project(basic_project)目录下,把django1.9.10版本卸载掉,重新安装django1.8.可以执行manage migrate,运行时还是出错。进入admin界面,完善了论坛的数据,就可以了。感觉有点不确定,碰运气,不知道问题出在哪里。

其实作为项目来运行的话,设置也不是很复杂。

Installation process

Preinstall requiments:

    virtualenv
    setuptools or pip 

Download latest source and install app:

 wget https://bitbucket.org/slav0nic/djangobb/get/stable.tar.gz #下载源码
 tar zxvf stable.tar.gz
 virtualenv .env 在源码目录所在的目录下创建虚拟环境
 cd <place_for_virtualenv_dir>
 source .env/bin/activate #激活虚拟环境
 # setup.py from djangobb app
 ./setup.py install  
 # ./setup.py develop will be ok too if you are planning to upgrade djangobb from hg

Download and setup basic project:
#下载基本项目,其实就是用djang-admin创建的文件
 wget https://bitbucket.org/slav0nic/djangobb_project/get/tip.tar.gz
 tar zxvf tip.tar.gz
 cd slav0nic-djangobb_project-tip/
 pip install -r requirements.txt
 cd basic_project/
 touch local_settings.py
 # set DATABASE
 ./manage.py migrate
 ./manage.py collectstatic
 ./manage.py runserver

Also you can add djangobb_forum to your django project as app and install requirements via pip. 

 

Copyright © 2024 王将军之武库
Powered by .NET 9.0 on Kubernetes