Setting up django-simple-friends¶
Install django-simple-friends package:
pip install django-simple-friends
Add friends to your INSTALLED_APPS setting:
INSTALLED_APPS = ( # Other apps 'friends', )
Run syncdb to create tables and seed friendship data for existing users:
python manage.py syncdb
Run tests to make sure the app is installed correctly:
python manage.py test friends
Optionally include friends.urls to your URLconf:
urlpatterns = patterns('', # Other entries (r'^friends/', include('friends.urls')), )
If you want to develop django-simple-friends you can follow the steps below to set up a development environment.
Create a virtual environment:
virtualenv --no-site-packages django-simple-friends
Create a local repository:
cd django-simple-friends . bin/activate git clone email@example.com:muhuk/django-simple-friends.git src
You need to replace muhuk with your GitHub username in the command above.
Run the tests to make sure everyting is set up correctly:
cd src python example/manage.py test friends
Pick an issue to work on.