1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
.. _example-project:
Example project
===============
Example project should be bundled with archive and be available at
``example_project``. Before you can run it, some requirements have to be met.
Those are easily installed using following command at example project's
directory::
$ cd example_project
$ pip install -r requirements.txt
``django-guardian`` from a directory above the ``example_project`` is automatically
added to Python path at runtime.
And last thing before we can run example project is to create sqlite database::
$ ./manage.py migrate
Finally we can run dev server::
$ ./manage.py runserver
You should also create a user who can login to the admin site::
$ ./manage.py createsuperuser
Project is really basic and shows almost nothing but eventually it should
expose some ``django-guardian`` functionality.
To try out `django-grappelli`_ integration, set the ``GRAPPELLI`` environment
variable before launching ``runserver``.
.. _django-grappelli: https://django-grappelli.readthedocs.io/en/latest/
|