PolyClassifiedAds is a small django application used for classified ads at AGEPoly, the student association of EPFL.
PolyClassifiedAds is distributed with the BSD license.
PolyClassifiedAds has been developped by Maximilien Cuony .
pip install https://github.com/PolyLAN/polyclassifiedads.git
You need to activate this app, bootstrap3, captcha, jfu and south.
Add to your INSTALLED_APPS:
'polyclassifiedads',
'south',
'bootstrap3',
'captcha',
'jfu',
(Of course, you don't need to add a line twice if one app is already installed !)
Add to your settings.py
POLYCLASSIFIEDADS_EMAIL_FROM = ''
POLYCLASSIFIEDADS_EMAIL_MANAGERS = ''
POLYCLASSIFIEDADS_RSS_SECRET = 'A random string'
and update values as you need. The first one is the sender for all email send by the system and the second one is the email of someone who should be alerted e.g. to validate ads.
Add something like this:
url(r'^classifiedads/', include('polyclassifiedads.urls')),
url(r'^captcha/', include('captcha.urls')),
python manage.py migrate
To activate notifications, add something like this in your crontab:
00 04 * * * cd /var/www/project/ && /usr/bin/python2.7 manage.py ads_notifications daily
00 04 * * 1 cd /var/www/project/ && /usr/bin/python2.7 manage.py ads_notifications weekly