Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Latest commit

 

History

History

django-atc-demo-ui

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

ATC DEMO UI

Django ATC Demo UI is a Django app that allow to modify traffic shaping applied to a device via a Web UI.

Even though it is a Django app, ATC Demo UI is mostly a React application that uses Bootstrap to make the app responsive.

Requirements

ATC Demo UI depends on ATC API so make sure you have installed and configured the ATC API first.

Installation

The easiest way to install django-atc-demo-ui is to install it directly from pip.

From pip

pip install django-atc-demo-ui

From source

cd path/to/django-atc-demo-ui
pip install .

Configuration

  1. Add atc_demo_ui and its dependencies to your INSTALLED_APPS' settings.py like this:
    INSTALLED_APPS = (
        ...
        'bootstrap_themes',
        'django_static_jquery',
        'atc_demo_ui',
    )
  1. Include the atc_demo_ui URLconf in your project urls.py like this:

    url(r'^atc_demo_ui/', include('atc_demo_ui.urls')),

If you want to have / redirecting to /atc/demo_ui, you can update urls.py

...
from django.views.generic.base import RedirectView

urlpatterns = [
    ...
    ...
    url(r'^atc_demo_ui/', include('atc_demo_ui.urls')),
    url(r'^$', RedirectView.as_view(url='/atc_demo_ui/', permanent=False)),
]
  1. Start the development server
python manage.py runserver 0.0.0.0:8000
  1. Visit http://127.0.0.1:8000/atc_demo_ui to access ATC Demo UI.

Some settings like the REST endpoint can be changed in your Dkango project'settings.py:

ATC_DEMO_UI = {
    'REST_ENDPOINT': '/api/v1/',
}

see ATC Demo UI settings for more details.