Initial commit
This commit is contained in:
commit
4ff9eac274
45 files changed
+2911
No files matched your search
Executable
+25
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
echo "=== Installing local plugin (editable) ==="
|
||||
uv pip install -e /opt/netbox-plugin-services
|
||||
|
||||
echo "=== Running migrations ==="
|
||||
python manage.py migrate --no-input
|
||||
|
||||
echo "=== Collecting static files ==="
|
||||
python manage.py collectstatic --no-input
|
||||
|
||||
echo "=== Creating superuser ==="
|
||||
python manage.py shell -c "
|
||||
from django.contrib.auth import get_user_model
|
||||
User = get_user_model()
|
||||
if not User.objects.filter(username='admin').exists():
|
||||
User.objects.create_superuser('admin', 'admin@example.com', 'admin')
|
||||
print('Superuser admin created (password: admin)')
|
||||
else:
|
||||
print('Superuser admin already exists')
|
||||
"
|
||||
|
||||
echo "=== Starting dev server ==="
|
||||
python manage.py runserver 0.0.0.0:8000
|
||||
Reference in new issue
Block a user