Move manage.py to ./bin

- bin/dos-manage.py added to setuptools scripts
- Updated install doc

Change-Id: Ic60edf4ea6f3598375ee085885d6a5d66d7b10c1
This commit is contained in:
Anton Studenov 2016-06-23 15:23:34 +03:00
parent f3583d416f
commit d0209cd45b
3 changed files with 7 additions and 24 deletions

View File

@ -172,8 +172,8 @@ Export the path to the SQLite3 database as the database name:
.. code-block:: bash
export DEVOPS_DB_NAME=$WORKING_DIR/fuel-devops
export DEVOPS_DB_ENGINE="django.db.backends.sqlite3
export DEVOPS_DB_NAME=$WORKING_DIR/fuel-devops.sqlite
export DEVOPS_DB_ENGINE="django.db.backends.sqlite3"
Configuring Django
~~~~~~~~~~~~~~~~~~
@ -182,27 +182,7 @@ After the database setup, we can install the django tables and data:
.. code-block:: bash
# For fuel-devops < 3.0 only:
django-admin.py syncdb --settings=devops.settings
# For all versions of fuel-devops:
django-admin.py migrate devops --settings=devops.settings
.. note:: Devops 3.0.0 is still allows to start both commands in queue, but
in later versions command ::
syncdb
will be dropped and run of it will cause exception.
.. note:: Depending on your Linux distribution,
`django-admin <http://django-admin-tools.readthedocs.org>`_ may refer
to system-wide django installed from package. If this happens you could get
an exception that says that devops.settings module is not resolvable.
To fix this, run django-admin.py (or django-admin) with a relative path ::
./bin/django-admin syncdb --settings=devops.settings
./bin/django-admin migrate devops --settings=devops.settings
dos-manage.py migrate
[Optional] Enabling `Nested Paging <http://en.wikipedia.org/wiki/Second_Level_Address_Translation>`_

View File

@ -28,7 +28,10 @@ setup(
include_package_data=True,
packages=find_packages(),
package_data={'devops': ['templates/*.yaml', 'templates/*.yml']},
scripts=['bin/dos.py'],
scripts=[
'bin/dos.py',
'bin/dos-manage.py',
],
install_requires=[
'keystoneauth1>=2.1.0',
'netaddr>=0.7.12,!=0.7.16',