Skip to content

watchakorn-18k/django-network-monitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

15 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Django Network Monitor (Thai language)

Test run on raspberry pi 4 (4GB)

User

Admin

username = pi
password = 12345678

Installation

git clone https://github.com/watchakorn-18k/django-network-monitor
cd django-network-monitor
cd wk18k
python manage.py makemigrations
python manage.py migrate
python manage.py runserver
python manage.py createsuperuser

Code that is unique from other codes

On line 127 of the settings.py file, the shared login state session is added.

127    SESSION_ENGINE = 'django.contrib.sessions.backends.db'

Add static file

129    import os
130    STATIC_URL = '/static/'
131    STATICFILES_DIRS = [
132        os.path.join(BASE_DIR, 'static'),
133    ]

Start

Example

home

admin

admin

login

Copyright Β© 2023 All right reserved by https://github.com/watchakorn-18k/django-network-monitor/