1
0
Fork 0
django-mailbox/docs/topics/installation.rst

38 lines
1.1 KiB
ReStructuredText
Raw Permalink Normal View History

2013-01-22 20:37:11 -08:00
Installation
============
1. You can either install from pip::
2013-01-22 20:37:11 -08:00
pip install django-mailbox
*or* checkout and install the source from the `github repository <https://github.com/coddingtonbear/django-mailbox/>`_::
git clone https://github.com/coddingtonbear/django-mailbox.git
cd django-mailbox
python setup.py install
2013-01-22 20:37:11 -08:00
2. After you have installed the package,
add ``django_mailbox`` to the ``INSTALLED_APPS`` setting in
your project's ``settings.py`` file.
2013-01-22 20:37:11 -08:00
3. From your project folder, run ``python manage.py migrate django_mailbox`` to
create the required database tables.
2013-01-22 20:37:11 -08:00
4. Head to your project's Django Admin and create a mailbox to consume.
2013-01-22 20:37:11 -08:00
.. note::
Once you have entered a mailbox to consume, you can easily verify that you
have properly configured your mailbox by either:
* From the Django Admin, using the 'Get New Mail' action from the action
dropdown on the Mailbox changelist
(http://yourproject.com/admin/django_mailbox/mailbox/).
* *Or* from a shell opened to your project's directory, using the
``getmail`` management command by running::
python manage.py getmail