Giter Site home page Giter Site logo

rterehov / spirit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nitely/spirit

0.0 1.0 0.0 2.67 MB

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

Home Page: http://spirit-project.com/

License: Other

Python 62.33% CSS 6.53% CoffeeScript 6.88% JavaScript 3.44% HTML 20.82%

spirit's Introduction

Spirit Build Status Coverage Status

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

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

Requirements

Spirit requires the following software to be installed:

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

Dependencies

Check out the requirements provided.

Integration

Spirit can be integrated with any other Django application without much of a hassle.

The only thing to notice is that Spirit uses its own AUTH_USER_MODEL.

If you want to roll your own user app, your user model must inherit from spirit.models.user.AbstractForumUser.

If you want to extend the Spirit user model (adding new fields or methods), your model must inherit from spirit.models.user.AbstractUser.

If you just want to integrate Spirit's user profile to your existing project and you are using the default Django's user model, check out the Spirit-User-Profile app.

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 spirit_cache
python manage.py collectstatic

Note:

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/)

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

Updating

Upgrading from v0.1.x? make sure you change url(r'^', include(urls, namespace="spirit", app_name="spirit")), to url(r'^', include('spirit.urls')), in your urls.py. The way settings used to import your local_settings.py has changed, so check that out.

Run:

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

Contributing

Feel free to check out the source code and submit pull requests.

You may also report any bug or propose new features in the issues tracker

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.

Copyright / License

Copyright 2014 Esteban Castro Borsani.

Licensed under the MIT License.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

spirit's People

Contributors

defp avatar mdamien avatar nitely avatar nitely-throwaway777 avatar rterehov avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.