cybexweb package

Submodules

cybexweb.apps module

class cybexweb.apps.CybexwebConfig(app_name, app_module)

Bases: django.apps.config.AppConfig

name = 'cybexweb'

cybexweb.dockers module

Module for connecting to Neo4j DB in docker container.

cybexweb.dockers.check_db(client, containerid)
cybexweb.dockers.create_db(client, stats=None)
cybexweb.dockers.delete_db(client, id)
cybexweb.dockers.find_free_ports()
cybexweb.dockers.killall(client)
cybexweb.dockers.list_db(client)
cybexweb.dockers.pw_gen(size=8, chars='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789')
cybexweb.dockers.testGraphConnection(user, passw, addr, bolt_port)

cybexweb.urls module

URL Configuration for all urls that don’t require authentication.

The urlpatterns list routes URLs to views. For more information please see:

https://docs.djangoproject.com/en/3.0/topics/http/urls/

Examples: Function views

  1. Add an import: from my_app import views

  2. Add a URL to urlpatterns: path(‘’, views.home, name=’home’)

Class-based views
  1. Add an import: from other_app.views import Home

  2. Add a URL to urlpatterns: path(‘’, Home.as_view(), name=’home’)

Including another URLconf
  1. Import the include() function: from django.urls import include, path

  2. Add a URL to urlpatterns: path(‘blog/’, include(‘blog.urls’))

cybexweb.views module

Module that defines the Django views that don’t require authentication.

class cybexweb.views.AboutView(**kwargs)

Bases: django.views.generic.base.TemplateView

template_name = 'about.html'
class cybexweb.views.HomeView(**kwargs)

Bases: django.views.generic.base.TemplateView

template_name = 'home.html'
class cybexweb.views.PersonnelView(**kwargs)

Bases: django.views.generic.base.TemplateView

template_name = 'personnel.html'

Module contents