Port to bleeding edge Django
Port to Python 3
This is the source code for http://manutd.org.np, the official site of Manchester United Supporters' Club, Nepal. Developer setup instructions follow.
virtualenv env # create a virtual environment
source env/bin/activate # Enter the virtual environment
git clone [email protected]:muscn/manutd.org.np.git app # git clone the repo
cd app # cd to project dir
pip install -r requirements/development.txt # install Python packages required for development
cp app/local_settings.sample.py app/local_settings.py # create local settings file from sample file
vi app/local_settings.py # configure your settings here, database, static & media paths and urls
./manage.py migrate # synchronize database and run migrations
./manage.py collectstatic # collect static files
./manage.py runserver
crontab -e
*/5 * * * * source /home/manutd/.bashrc && source /home/manutd/env/bin/activate && python /home/manutd/app/manage.py scrape table > /home/manutd/logs/cronjob.log
@daily source /home/manutd/.bashrc && source /home/manutd/env/bin/activate && python /home/manutd/app/manage.py scrape tv > /home/manutd/logs/cronjob.log
0 7,15,23 * * * source /home/manutd/.bashrc && source /home/manutd/env/bin/activate && python /home/manutd/app/manage.py scrape injuries > /home/manutd/logs/cronjob.log
1 7 * * * source /home/manutd/.bashrc && source /home/manutd/env/bin/activate && python /home/manutd/app/manage.py birthday > /home/manutd/logs/cronjob.log
#visudo
manutd ALL= NOPASSWD: /usr/local/bin/supervisorctl restart muscn
#vi repo.git/hooks/post-receive
#!/bin/sh
echo Running $BASH_SOURCE
set | egrep GIT
git checkout -f
../app/deploy.sh