Initial Django project setup for Postgres cluster management - Created Django project structure with postgres_handholder main app - Added clusters, backups, and monitoring apps - Implemented comprehensive models for PostgresCluster, PostgresInstance, ClusterUser, ClusterDatabase - Added forms and views for cluster management - Created Bootstrap 5 templates with modern UI - Added Docker and Docker Compose configuration - Included Celery for background tasks - Added comprehensive requirements.txt with all dependencies - Updated README with installation and usage instructions - Added environment configuration example - Set up proper URL routing and app structure
This commit is contained in:
19
clusters/urls.py
Normal file
19
clusters/urls.py
Normal file
@ -0,0 +1,19 @@
|
||||
from django.urls import path
|
||||
from . import views
|
||||
|
||||
app_name = 'clusters'
|
||||
|
||||
urlpatterns = [
|
||||
path('', views.cluster_list, name='cluster_list'),
|
||||
path('create/', views.cluster_create, name='cluster_create'),
|
||||
path('<int:cluster_id>/', views.cluster_detail, name='cluster_detail'),
|
||||
path('<int:cluster_id>/edit/', views.cluster_edit, name='cluster_edit'),
|
||||
path('<int:cluster_id>/delete/', views.cluster_delete, name='cluster_delete'),
|
||||
path('<int:cluster_id>/start/', views.cluster_start, name='cluster_start'),
|
||||
path('<int:cluster_id>/stop/', views.cluster_stop, name='cluster_stop'),
|
||||
path('<int:cluster_id>/restart/', views.cluster_restart, name='cluster_restart'),
|
||||
path('<int:cluster_id>/update/', views.cluster_update, name='cluster_update'),
|
||||
path('<int:cluster_id>/users/', views.cluster_users, name='cluster_users'),
|
||||
path('<int:cluster_id>/databases/', views.cluster_databases, name='cluster_databases'),
|
||||
path('<int:cluster_id>/instances/', views.cluster_instances, name='cluster_instances'),
|
||||
]
|
Reference in New Issue
Block a user