Skip to content

Latest commit

 

History

History
94 lines (68 loc) · 1.59 KB

readme.md

File metadata and controls

94 lines (68 loc) · 1.59 KB

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/