zhu327 / Forum
Licence: mit
Django forum clone from F2E.im support SAE
Stars: ✭ 252
Programming Languages
javascript
184084 projects - #8 most used programming language
python
139335 projects - #7 most used programming language
Projects that are alternatives of or similar to Forum
Rengorum
🚀 Forum app built in React, Redux & Django
Stars: ✭ 194 (-23.02%)
Mutual labels: forum, django
Django Djeddit
Minimalistic Reddit clone developed as a Django reusable app
Stars: ✭ 32 (-87.3%)
Mutual labels: forum, django
Lbforum
LBForum is a forum engine written in Python using Django
Stars: ✭ 594 (+135.71%)
Mutual labels: forum, django
Musicrecommendersystem
Django-Based Music Recommendation
Stars: ✭ 165 (-34.52%)
Mutual labels: forum, django
Spirit
Spirit is a modern Python based forum built on top of Django framework
Stars: ✭ 1,045 (+314.68%)
Mutual labels: forum, django
Misago
Misago is fully featured modern forum application that is fast, scalable and responsive.
Stars: ✭ 2,170 (+761.11%)
Mutual labels: forum, django
Djangobb
DjangoBB mirror. DjangoBB is a quick and simple forum which uses the Django Framework (written in Python language). Abbreviation DjangoBB stands for Django Bulletin Board. DjangoBB is distributed under the BSD license.
Stars: ✭ 232 (-7.94%)
Mutual labels: forum, django
Django Rest Framework Datatables
Seamless integration between Django REST framework and Datatables.
Stars: ✭ 241 (-4.37%)
Mutual labels: django
Django Vuejs Tutorial
A tutorial to integrate Vue.js with django
Stars: ✭ 242 (-3.97%)
Mutual labels: django
Fosswebsite
A club management system that handles student details, progress, events, achievements, attendance, status updates, teams and workshop registrations. This is the official [email protected] website
Stars: ✭ 242 (-3.97%)
Mutual labels: django
Tweetme 2
Build a twitter-like app in Django, Bootstrap, Javascript, & React.js. Step-by-Step.
Stars: ✭ 247 (-1.98%)
Mutual labels: django
Django Salesforce
Salesforce integration for Django's ORM using the SF REST API.
Stars: ✭ 241 (-4.37%)
Mutual labels: django
Django React Redux Base
Seedstars Labs Base Django React Redux Project
Stars: ✭ 2,629 (+943.25%)
Mutual labels: django
Pyinstrument
🚴 Call stack profiler for Python. Shows you why your code is slow!
Stars: ✭ 3,870 (+1435.71%)
Mutual labels: django
Djangosige
Sistema Integrado de Gestão Empresarial baseado em Django
Stars: ✭ 250 (-0.79%)
Mutual labels: django
Django forum
Django forum是使用Django实现的轻型现代论坛程序,是fork自F2E.im的Django版本.
相对于原版的主要区别在于使用Django admin实现了一个简单的后台管理.
Django forum有2个分支,master分支用于主机上部署,SAE分支是适配Sina App Engine的版本
安装部署
主机版:
依赖MySQL数据库,以及memcached
- 获取代码
- 安装依赖
- 导入数据库文件
- 修改配置文件
- 运行服务
shell> git clone [email protected]:zhu327/forum.git
shell> cd forum
shell> pip install -r requirements.txt
shell> mysql -u YOURUSERNAME -p
mysql> create database forum;
mysql> exit
shell> mysql -u YOURUSERNAME -p --database=forum < forum.sql
修改xp/settings.py
# 修改数据库配置
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'forum', # Or path to database file if using sqlite3.
# The following settings are not used with sqlite3:
'USER': 'root',
'PASSWORD': '',
'HOST': '127.0.0.1', # Empty for localhost through domain sockets or '127.0.0.1' for localhost through TCP.
'PORT': '3306', # Set to empty string for default.
}
}
# 修改memcached配置,如果没有memcahed请删除这些与cache相关的内容
CACHES = { # memcached缓存设置
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': '127.0.0.1:11211',
}
}
SESSION_ENGINE = 'django.contrib.sessions.backends.cache' # 使用memcached存储session
# 配置邮件发送
EMAIL_HOST = 'smtp.qq.com'
EMAIL_PORT = 25
EMAIL_HOST_USER= '*********'
EMAIL_HOST_PASSWORD= '******'
DEFAULT_FROM_EMAIL = '*********@qq.com'
运行服务
python manage.py runserver
默认超级用户[email protected]
,密码123456
,后台/manage/admin/
生产环境下推荐使用gunicorn.
SAE版
SAE版本依赖已打包到site-packages.zip,头像存储使用七牛,所以还需要申请七牛云.
- SAE上创建python应用,激活MySQL,memcached,创建应用版本
- 获取代码
- SAE MySQL后台导入forum.sql文件
- 修改配置文件
- 上传代码
- 登录后台设置
shell> git clone -b sae [email protected]:zhu327/forum.git
shell> cd forum
登录SAE进入MySQL在线管理导入forum.sql
修改xp/settings.py
# 邮件发送设置
EMAIL_HOST = 'smtp.qq.com'
EMAIL_PORT = 25
EMAIL_HOST_USER= '*********'
EMAIL_HOST_PASSWORD= '******'
DEFAULT_FROM_EMAIL = '*********@qq.com'
# 七牛云存储设置
QINIU_ACCESS_KEY = '******'
QINIU_SECRET_KEY = '******'
QINIU_BUCKET_NAME = '******'
QINIU_BUCKET_DOMAIN = '******'
修改config.yaml
name: way2go // 这里改为你自己的SAE应用名
version: 1
SVN上传即可.
更新
SAE 版本新增功能,可使用SAE kvdb
做缓存,缓存后端使用xp.cache.SaekvdbCache
,减少云豆消耗.
SAE激活kvdb并关闭memcached
功能,修改xp/settings.py
,SAE kvdb
会比memcached
慢一点,但是会便宜很多
CACHES = { # memcached缓存设置
'default': {
# 'BACKEND': 'django.core.cache.backends.memcached.PyLibMCCache', # SAE使用pylibmc
'BACKEND': 'xp.cache.SaekvdbCache', # 可选用SAE kvdb做缓存,消耗云豆更少
'LOCATION': '127.0.0.1:11211',
}
}
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].