Skip to content

ewianda/django-discussion

 
 

Repository files navigation

django-discussion

A Facebook group style discussion forum.

Note: Requires authentication

Installation

pip install django-discussion

Configuration

Settings

INSTALLED_APPS

Add to your `settings.py`:

INSTALLED_APPS = (
    '...',
    'discussion',
    'orderable',
    'notification',
    '...',
)

URLS

Add to your `urls.py`:

urlpatterns = patterns('',
    '...',
    url(r'^discussion/', include('discussion.urls')),
    url(r'^notifications/', include('notification.urls')),
    '...',
)
DISCUSSION_UPLOAD_EXTENSIONS

A Whitelist of file extensions that can be uploaded to a discussion. If this is set to [], no uploads will be accepted. If it is set to None, the whitelist will not be used.

Default:

DISCUSSION_UPLOAD_EXTENSIONS = [
    'odt', 'odf', 'odp',  # Open/LibreOffice
    'doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx',  # MS Office
    'pdf', 'gif', 'jpg', 'jpeg', 'png',  # Other sane defaults...
]

JS/CSS

Example CSS and script references are commented out in the base template. Example CSS is compiled from SASS, so make any changes in the SASS and re-compile the CSS file.

The default AJAX/javascript require three jQuery libraries:

About

Simple django discussion application

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 87.8%
  • CSS 5.5%
  • HTML 5.3%
  • JavaScript 1.4%