django-fobi/examples
Artur Barseghyan 0d82108e97 Up captcha
2020-12-10 00:03:19 +01:00
..
media wip add testing file 2018-01-17 17:03:50 +01:00
mezzanine_example Remove compap schemes 2020-01-11 02:11:28 +01:00
quick_start wipe lt 1.8 2019-05-21 21:47:00 +02:00
recepes docs updated 2017-12-17 03:09:08 +01:00
requirements More on tests 2020-12-03 23:41:14 +01:00
saved_forms_in_json_format tiny updates on outdated dutch translations; additions to the drf integration documentation; fixes in the documentation of the mezzanine integration app; fixes in the documentation of the djangocms integration app; updated versions mentioned in the documentation of the feincms integration app; added a nice json form which was used for testing enriched drf integration app metadata; unified helper scripts related to documentation; updated todos and the changelog; 2017-06-02 20:57:39 +02:00
simple Up captcha 2020-12-10 00:03:19 +01:00
tutorial DRF compat 2020-01-11 03:03:58 +01:00
wagtaildemo@7ee38cf379 working 2017-06-15 02:08:48 +02:00
__init__.py initial 2014-10-11 05:54:24 +02:00
django_fobi_example_app_installer.sh prepare 0.11.4 2017-05-12 00:52:58 +02:00
README.rst docs updated 2016-12-18 23:05:34 +01:00
requirements.txt prepare 0.12.20 2018-02-24 00:34:47 +01:00

=================================
Example project for `django-fobi`
=================================
Follow instructions below to install the example project. Commands below are
written for Ubuntu/Debian, but may work on other Linux distributions as well.

(1) Create a new- or switch to existing- virtual environment.

    .. code-block:: sh

        virtualenv fobi

        source fobi/bin/activate

(2) Download the latest stable version of django-fobi.

    .. code-block:: sh

        wget https://github.com/barseghyanartur/django-fobi/archive/stable.tar.gz

(3) Unpack it somewhere.

    .. code-block:: sh

        tar -xvf stable.tar.gz

(4) Go to the unpacked directory.

    .. code-block:: sh

        cd django-fobi-stable

(5) Install Django, requirements and finally django-fobi.

    .. code-block:: sh

        pip install Django

        pip install -r examples/requirements.txt

        pip install https://github.com/barseghyanartur/django-fobi/archive/stable.tar.gz

(6) Create some directories.

    .. code-block:: sh

        mkdir -p examples/media/static/ examples/static/ examples/db/ examples/logs

(7) Copy local_settings.example

    .. code-block:: sh

        cp examples/simple/settings/local_settings.example examples/simple/settings/local_settings.py

(8) Run the commands to sync database, install test data and run the server.

    .. code-block:: sh

        python examples/example/manage.py migrate --noinput

        python examples/example/manage.py collectstatic --noinput --traceback -v 3

        python examples/example/manage.py fobi_create_test_data --traceback -v 3

        python example/example/manage.py runserver 0.0.0.0:8001 --traceback -v 3

(9) Open your browser and test the app.

    Fobi interface:

    - URL: http://127.0.0.1:8001/
    - Admin username: test_admin
    - Admin password: test

    Django admin interface:

    - URL: http://127.0.0.1:8001/admin/
    - Admin username: test_admin
    - Admin password: test

Various setups
==============
There are number of setups included (names are self-explanatory):

- Bootstrap3 theme + Captcha (runserver-bootstrap3-theme-captcha) :8000
- Bootstrap3 theme + Django 1.7 + Captcha (runserver-bootstrap3-theme-django17-captcha) :8000
- Bootstrap3 theme + Django 1.7 (runserver-bootstrap3-theme-django17) :8000
- Bootstrap3 theme + FeinCMS integration (runserver-bootstrap3-theme-feincms-integration) :8000
- Bootstrap3 theme (runserver-bootstrap3-theme) :8000
- Foundation 5 theme + FeinCMS integration (runserver-foundation5-theme-feincms-integration) :8001
- Foundation 5 theme :8001
- Override of the simple theme (runserver-override-simple-theme) :8003
- Simple theme (runserver-simple-theme) :8002