This should only be used for testing. The index that will be used is created from the bulk_indexing method below.
curl -X PUT 'localhost:9200/<index_name>'
# Create the analyzer which will tokenize any text fields which it is passed to. | |
This example also creates lowercase and uppercase tokens with html stripped. | |
my_analyzer = analyzer("my_analyzer", | |
tokenizer = tokenizer("trigram", nGram, min_gram=3, max_gram=10), | |
filter = ['standard', 'lowercase', 'uppercase'], | |
char_filter = [ "html_strip" ] | |
) | |
class ArticleIndex(Document): |
# envs/<project_name>/bin/postactivate | |
export DJANGO_SETTINGS_MODULE=<project_name>.<settings_folder_name>.<settings_file_name> | |
# envs/<project_name>/bin/postdeactivate | |
unset DJANGO_SETTINGS_MODULE |
LibreNMS is a network management system used to centralize monitoring of all network assets.
Follow the instructions provided HERE to setup the service.
NOTE: python-ipaddress must be installed, use command below
Flower Celery Monitoring Utility Setup
This step is optional, but a nice way to keep the user informed. This button function notifies the user about the process and how to check the status. Then it will call the function below.
{{whatever_template_button_is_on}}.html
sudo nano /etc/netplan/01-netconf.yaml | |
network: | |
version: 2 | |
renderer: networkd | |
ethernets: | |
ens33: | |
addresses: [10.6.0.84/16] | |
gateway4: 10.6.0.1 | |
dhcp4: false |
Used the Channels documentation to create these notes Channels Documentation.
Follow the Channels documentation's tutorial for a fuller walkthrough.
NOTE: This version of Channels only works with Python 3.5 or higher!