1
0
Fork 0
mirror of https://codeberg.org/heathercat123/s2forumsdev.git synced 2026-02-01 16:04:48 -05:00
Mirror of an easy way to set up S2Forums made for APIClone development
  • JavaScript 84.7%
  • Python 7.8%
  • HTML 7.4%
Find a file
2026-01-20 07:49:05 -05:00
apiclone Make New Scratchers posts show up 2026-01-20 07:49:05 -05:00
base_comments Make adding topic at least work 2026-01-17 09:04:02 -05:00
lib Implement extras.image_url 2026-01-17 11:27:45 -05:00
notifications Work on Celery support 2026-01-17 10:35:11 -05:00
static Implement logging in 2026-01-17 15:59:16 -05:00
templates Make New Scratchers posts show up 2026-01-20 07:49:05 -05:00
.gitignore Add Celery stuff to gitignore 2026-01-18 09:53:50 -05:00
.python-version Make New Scratchers posts show up 2026-01-20 07:49:05 -05:00
forumindex.py Only allow admins to post announcements 2026-01-18 10:19:39 -05:00
manage.py Initial commit 2026-01-17 08:39:23 -05:00
README.md Revert "Remove Celery worker from README" 2026-01-18 10:17:41 -05:00
requirements.txt Continue work on celery 2026-01-17 17:57:22 -05:00

S2Forums Dev

An easy way to set up S2Forums made for APIClone development.

Requirements

  • Python 2.7. On Linux you can use pyenv to install it.
  • Pip. Same as above.
  • RabbitMQ. I couldn't get Celery to work without it. The rest will get installed automatically in step 2.

Usage

  1. Clone this and the S2Forums repositories:
git clone https://codeberg.org/heathercat123/s2forumsdev.git
cd s2forumsdev
git clone https://github.com/scratchfoundation/s2forums.git
ln -s s2forums/djangobb_forum/ djangobb_forum
  1. Install the required Python packages:
pip install -r requirements.txt
  1. Set up the database:
python manage.py syncdb

If it asks you to create a user, do it!!

  1. Import the forum index:
python manage.py shell
import forumindex
exit()
  1. Start RabbitMQ: On SystemD-based Linux distros: sudo systemctl start rabbitmq

  2. Start the celery demon daemon:

celery -A apiclone.celery_app worker -l info

Then, open a new console tab or window.

  1. In that new console, run the dev server:
python manage.py runserver
  1. Open the forums (located at http://localhost:8000/discuss/) in a web browser.

If you scroll down while logged in as an admin, you will see a PADDING category. Don't worry, it's only there to add, well, padding.