Forum for Django framework.
Project description
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:
Jquery
Bootstrap and bootstrap material desing (https://fezvrasta.github.io/bootstrap-material-design/)
Angular.js
Quick start:
Add application ‘musette’ and dependencies to INSTALLED_APPS:
INSTALLED_APPS = ( ... 'log', 'hitcount', 'endless_pagination', 'musette', )
Add this urls to file urls.py:
url(r'^' , include('musette.urls')),
And in settings.py add this variable:
SESSION_SAVE_EVERY_REQUEST = True
Configure in the settings.py URL_LOGIN, STATIC and MEDIA root. Something very important is to set the variable CACHES for redis. example:
CACHES = { 'default': { 'BACKEND' : 'redis_cache.RedisCache', 'LOCATION' : 'localhost:6379', 'OPTIONS' : { 'DB' : 1 } } }
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
Execute command migrate:
python manage.py migrate
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 %}
And add files static css and js (Angular, Jquery, Bootstrap).
If you need Spanish forum enable internationalization in django.
https://github.com/mapeveri/django-musette/blob/master/internationalization.rst
How to use?:
Login in django admin and start to insert categories necessary. Example:
The field position is for indicate the order of the categories.
Insert the forum necessary: Example:
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.
Make sure that each user registration exist in the profile table.
Ready!
Execute in the terminal:
python manage.py runserver
In other terminal execute this command for run server tornado for web sockets:
python manage.py musette_run_server_ws
Visit 127.0.0.1:8000/forums you should see the categories and forums.
Features:
Multiple forums ordered by for category.
Notifications (Still not support sending emails).
Notifications in real time.
Count views for forum and topic.
Infinite scroll for comments of one topic.
Support of files media for topics.
Easy integration with other applications Django of your project.
Support for moderate forums.
Models registered in admin django for administrators.
Possibility of hide forums unused.
Modern design, thank you to Bootstrap material design
Avatar.
Pre-moderation.
Support to English and Spanish language.
Validation of forms in real time with AngularJs.
Contribute:
Fork this repo and install it
Follow PEP8, Style Guide for Python Code
Write code
Send pull request
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-musette-0.0.8.tar.gz
.
File metadata
- Download URL: django-musette-0.0.8.tar.gz
- Upload date:
- Size: 498.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce8ef9eba47270b0e9e6d0b1eaf9d37a5aaeb30658c67c0acddb33b56bd9c222 |
|
MD5 | 2941a06f4b90bd844c75e7ee861c7432 |
|
BLAKE2b-256 | e2d4a47b69d4451a68272d49f7e512b37c36afa0180a797d9e6c31dbea6b5b68 |