Files
fln-django-template/README.md
2026-03-01 07:03:16 +07:00

1.3 KiB

fln-django-template

Django base template dengan integrasi LDAP authentication.

🛠️ Frontend Dependencies

Project ini menggunakan kombinasi library modern untuk UI/UX yang dinamis:

Category Libraries
CSS Framework Bootstrap 5
Icons Bootstrap Icons, CoreUI, Tabler, Remix, MDI, Micons
Tables Bootstrap Table, DataTables
Form Components Select2, Flatpickr, Pickr
Interactions HTMX, SweetAlert2, jQuery
Media & Charts Chart.js, html5-qrcode

⚙️ System Dependencies (Ubuntu)

Wajib diinstall untuk mendukung django-auth-ldap agar proses kompilasi library C berjalan lancar:

sudo apt update
sudo apt install -y python3-dev libldap2-dev libsasl2-dev libssl-dev

🚀 Setup Environment

Step 1: Virtual Environment

Pilih salah satu metode di bawah ini:

Option 1 — Using venv

python3 -m venv venv
source venv/bin/activate
pip install django django-environ django-auth-ldap

Option 2 — Using uv

uv venv
uv pip install django django-environ django-auth-ldap

Step 2: Environment Variables

cp .env.example .env

Step 3: Database Migration

python manage.py makemigrations
python manage.py migrate
python manage.py runserver