django-fobi/examples
2014-10-11 14:08:09 +02:00
..
media/static/css initial 2014-10-11 05:54:24 +02:00
simple fixes in demo create user data 2014-10-11 14:08:09 +02:00
tutorial initial 2014-10-11 05:54:24 +02:00
__init__.py initial 2014-10-11 05:54:24 +02:00
django_fobi_example_app_installer.sh fixes in demo 2014-10-11 13:49:31 +02:00
README.rst initial 2014-10-11 05:54:24 +02:00
requirements.txt fixes in demo 2014-10-11 13:49:31 +02:00
requirements3.txt initial 2014-10-11 05:54:24 +02: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.

- Create a new- or switch to existing- virtual environement.

    $ virtualenv fobi

    $ source fobi/bin/activate

- Download the latest stable version of django-fobi.

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

- Unpack it somewhere.

    $ tar -xvf stable.tar.gz

- Go to the unpacked directory.

    $ cd django-fobi-stable

- Install Django, requirements and finally django-fobi.

    $ pip install Django

    $ pip install -r example/requirements.txt

    $ pip install -e git+https://github.com/barseghyanartur/django-fobi@stable#egg=django-fobi

- Create some directories.

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

- Copy local_settings.example

    $ cp examples/example/local_settings.example example/example/local_settings.py

- Run the commands to sync database, install test data and run the server.

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

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

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

    $ python examples/example/manage.py news_create_test_data --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

- Open your browser and test the app.

Fobi interface:

- URL: http://127.0.0.1:8001/forms/builder/
- 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