diff options
author | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2017-09-18 07:44:15 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-09-18 07:44:15 +0000 |
commit | cdc0a004f912027b2a6d6dad977d25a807a09726 (patch) | |
tree | cfe2b057d26b8132c6a752b76fd6e932034ae7e9 /docs/testing/user/configguide/web.rst | |
parent | 003f34feb75498eb567ec58ba0e49e42d202a5f5 (diff) | |
parent | 872329e68475f573295ac497eb648a21dc1e526b (diff) |
Merge "Add user and config guide for web portal"
Diffstat (limited to 'docs/testing/user/configguide/web.rst')
-rw-r--r-- | docs/testing/user/configguide/web.rst | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/docs/testing/user/configguide/web.rst b/docs/testing/user/configguide/web.rst new file mode 100644 index 00000000..83365abe --- /dev/null +++ b/docs/testing/user/configguide/web.rst @@ -0,0 +1,74 @@ +.. This work is licensed under a Creative Commons Attribution 4.0 International License. +.. http://creativecommons.org/licenses/by/4.0 + + +*************************************** +Web Portal installation & configuration +*************************************** + +Web Portal for Benchmarking is developed on python `Django`_ Framework. Right now the installation +is need to be done from source. + + + +Clone QTIP Repo +=============== + +:: + + git clone https://github.com/opnfv/qtip.git + + +Setup database and Initialize user data +======================================= + +CD into `web` directory. +------------------------ + +:: + + cd qtip/qtip/web + + +Setup migrations +---------------- + +:: + + python manage.py makemigrations + + +In usual case migrations will be already available with source. Console willll notify you +of the same. + +Run migrations +-------------- + +:: + + python manage.py migrate + + +Create superuser +---------------- +:: + + python manage.py createsuperuser + + +Console will prompt for adding new web admin. Enter new credentials. + + + +Collecting Static Dependencies +------------------------------ +:: + + python manage.py importstatic + + +This will import js and css dependencies for UI in static directory. Now the web application is +ready to run. + + +.. _Django: https://docs.djangoproject.com/en/1.11/ |