summaryrefslogtreecommitdiffstats
path: root/docs/testing/user/configguide/web.rst
blob: 83365abe82f72bcae0f518bef49140e76086474c (plain)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
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/