Installation¶
pip and easy_install¶
Easiest way to install BFM is to use pip:
$ pip install django_bfm
And second to easiest is with easy_install:
$ easy_install django_bfm
Note
Using easy_install is discouraged. Why? Read here.
GIT repository¶
Alternatively, you can clone and install from Github repository, where project is developed.
$ git clone git://github.com/simukis/django-bfm.git
$ cd django-bfm
$ python2 setup.py install
or with pip:
pip install -e git+git@github.com:simukis/django-bfm.git#egg=Package
Configuration¶
Adding to Django¶
After downloading and installing BFM, you need to configure your Django project to work with it.
- Add 'django_bfm', to your INSTALLED_APPS in settings.py,
- Add url(r'^files/', include('django_bfm.urls')), to your urlpatterns in urls.py,
- Make sure you have staticfiles enabled (with context processor) and run python manage.py collectstatic,
- Make sure, that static files are served correctly by your production server.
Note
You don’t need to run collectstatic if you are working in develovepment server. It serves files automatically.