Skip to main content

Forum for Django framework.

Project description

==============
Django-Musette
==============

Forum for Django framework.

NOTE: This application is under development. It is not recommended to use in a production environment.

Installing
----------

pip install django-musette --process-dependency-links

Requirements:
-------------

1. Jquery
2. Bootstrap and bootstrap material desing (https://fezvrasta.github.io/bootstrap-material-design/)

Quick start:
------------

1. Add application 'musette' and dependencies to INSTALLED_APPS::

INSTALLED_APPS = (
...
'log',
'hitcount',
'endless_pagination',
'musette',
)

2. Add this urls to file urls.py::

url(r'^' , include('musette.urls')),

3. And in settings.py add this variable::

SESSION_SAVE_EVERY_REQUEST = True

4. Configure STATIC and MEDIA root in the settings.py::

5. Set this variables::

APP_PROFILE = 'profiles' # Application for your profiles
MODEL_PROFILE = 'Profile' # Model for profiles
FIELD_PHOTO_PROFILE = "photo" # Field that contains url the profile photo
URL_PROFILE = '/profile/' # Url for profile

6. Execute command migrate::

python manage.py migrate

7. The application django-musette need a template base of name base.html. With the following tags::

{% block content %}{% endblock %}
{% block extra_css %}{% endblock %}
{% block extra_js %}{% endblock %}
{% block hitcount_javascript %}{% endblock %}

Add extra css:
{% include "musette/extra_css.html" %}

Add extra js:
{% include "musette/extra_js.html" %}

Example.
https://github.com/mapeveri/django-musette/blob/master/tests/plantillas/base.html

8. If you need Spanish forum enable internationalization in django.

https://github.com/mapeveri/django-musette/blob/master/internationalization.rst

How to use?:
------------

1. Login in django admin and start to insert categories necessary. Example:

.. image:: https://github.com/mapeveri/django-musette/blob/master/images/categories.png

The field position is for indicate the order of the categories.

2. Insert the forum necessary: Example:

.. image:: https://github.com/mapeveri/django-musette/blob/master/images/forums.png

Field more importants:

- Position: The field position is for indicate the order of the forums in the categories.
- Topics count: Total forum topics.
- Check topics: If you need to review the topics by a moderator.

3. Make sure that each user registration exist in the profile table.

Ready!


Execute in the terminal::

python manage.py runserver

Visit 127.0.0.1:8000/forums you should see the categories and forums.

.. image:: https://github.com/mapeveri/django-musette/blob/master/images/index.png

.. image:: https://github.com/mapeveri/django-musette/blob/master/images/forum.png

.. image:: https://github.com/mapeveri/django-musette/blob/master/images/notifications.png

.. image:: https://github.com/mapeveri/django-musette/blob/master/images/topic.png

.. image:: https://github.com/mapeveri/django-musette/blob/master/images/new_topic.png

Features:
---------

1. Multiple forums ordered by for category.
2. Notifications (Still not support sending emails)
3. Count views for forum and topic.
4. Infinite scroll for comments of one topic.
5. Support of files media for topics.
6. Easy integration with other applications Django of your project.
7. Support for moderate forums.
8. Models registered in admin django for administrators.
9. Possibility of hide forums unused.
10. Modern design, thank you to Bootstrap material design
11. Avatar.
12. Pre-moderation.
13. Support to English and Spanish language.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-musette-0.0.6.tar.gz (477.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page