A simple forums app for Django
Project description
Installation
The easiest way to install simple forums is using pip:
$ pip install git+https://github.com/smalls12/django_simple_forums#egg=simple_forums
Usage
The following settings must be modified in settings.py.
Add django.contrib.sites and simple_forums to your INSTALLED_APPS:
INSTALLED_APPS = [ # default django apps 'django.contrib.sites', ... 'simple_forums', ... ]
Add the sites middleware to MIDDLEWARE_CLASSES:
MIDDLEWARE_CLASSES = [ # default django middleware classes 'django.contrib.sites.middleware.CurrentSiteMiddlware', ]
After migrating your database (./manage.py migrate), go to the admin, and create a new site model (or modify the existing one). Once you’ve done that, you need to find the id of your site. This can be done through the shell:
$ ./manage.py shell >>> from django.contrib.sites.models import Site >>> s = Site.objects.get() >>> s.id 1
Then, back in settings.py, set SITE_ID to the id of your site.:
# example SITE_ID = 1
In order to use the views in the package, you must include the url patterns for the forums in urls.py:
url_patterns = [ ... url(r'^forums', include('simple_forums.urls')), ... ]
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
Hashes for django_simple_forums-0.7.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e972ced3c79a1e98031dc44588599157d92f0c8c9da3322ae4b62f6007815ce0 |
|
MD5 | f3dd8ca90f00e1517828c51a33db8544 |
|
BLAKE2b-256 | abe155d15cf05ad6389b782464b3192883f143f85092c4619c995311eb0e7647 |