Spirit is a modern Python based forum built on top of Django framework
Go to file
2015-07-12 19:38:17 -03:00
example settings, change all tuples to list and use explicit extend 2015-07-12 19:38:17 -03:00
spirit settings, change all tuples to list and use explicit extend 2015-07-12 19:38:17 -03:00
.editorconfig Check pep8 with travis 2014-11-17 15:03:39 +01:00
.gitattributes gitattributes LF 2014-11-17 21:26:41 -03:00
.gitignore Separate example and tests 2014-11-25 14:24:50 +01:00
.travis.yml fix failing flake8 2015-03-26 23:29:48 -03:00
HISTORY.md history update 0.3.0 2015-07-09 01:40:28 -03:00
LICENSE license 2015-06-10 10:16:53 -03:00
MANIFEST.in broken setup #4 2014-05-18 20:37:30 -03:00
README.md readme 2015-05-22 20:05:57 -03:00
requirements.txt remove debug tool bar from requirements, fixes #48 2015-05-19 23:14:13 -03:00
runtests.py moved all apps one level up 2015-07-10 10:11:53 -03:00
setup.cfg Fix F841 errors of unused local variables 2014-11-29 21:08:08 +01:00
setup.py clean up 2015-04-07 21:14:10 -03:00
TODO todo 2015-05-05 13:11:32 -03:00

Spirit

Build Status Coverage Status pypi licence

Spirit is a Python based forum built using the Django framework.

To see it in action, please visit The Spirit Project.

Requirements

  • Python 2.7, 3.3 or 3.4 (recommended)
  • Django 1.8
  • PostgreSQL (recommended) or MySQL or Oracle Database

Dependencies

Check out the requirements provided.

Installing (Advanced)

Check out the example provided.

In short:

Add url(r'^', include('spirit.urls')), to your urls.py

Add from spirit.settings import * to the top of your settings.py file, otherwise you will have to setup all django's related constants (Installed_apps, Middlewares, Login_url, etc)

Run:

pip install -r requirements.txt
python manage.py migrate
python manage.py createcachetable
python manage.py collectstatic

You will need to setup a search engine, Spirit is configured to work with Woosh by default.

An email server is required, you can host your own (ie: exim), or hire an external service provider (ie: Mandrill).

Start a development server:

python manage.py runserver

Visit (http://127.0.0.1:8000/)

On production, you would rather run Spirit on a real web server. ie: gunicorn + Nginx. Running Spirit on a virtualenv is adviced.

Updating

If you are upgrading from any release previous to v0.3:

  • Run python manage.py migrate djconfig --fake-initial
  • Add AUTH_USER_MODEL = 'spirit.User' (or your custom user model) to your settings.py.
  • Remove the AbstractForumUser from your custom user model (if you have one).
  • Change spirit.models.AbstractUser to django.contrib.auth.models.AbstractUser in your custom user model (if you have one).

Deprecation notice: AbstractForumUser and AbstractUser will no longer exist in future releases.

Run:

pip install -r requirements.txt
python manage.py makemigrations
python manage.py migrate
python manage.py collectstatic
python manage.py rebuild_index --noinput

Testing

The runtests.py script enable you to run the test suite of spirit.

  • Type ./runtests.py to run the test suite using the settings from the tests folder.
  • Type ./runtests.py example to run the test suite using the settings from the example folder.

License

MIT