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:
1
backups/__init__.py
Normal file
1
backups/__init__.py
Normal file
@ -0,0 +1 @@
|
||||
# Backups app for managing Postgres backups
|
7
backups/apps.py
Normal file
7
backups/apps.py
Normal file
@ -0,0 +1,7 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class BackupsConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'backups'
|
||||
verbose_name = 'Database Backups'
|
13
backups/urls.py
Normal file
13
backups/urls.py
Normal file
@ -0,0 +1,13 @@
|
||||
from django.urls import path
|
||||
from . import views
|
||||
|
||||
app_name = 'backups'
|
||||
|
||||
urlpatterns = [
|
||||
path('', views.backup_list, name='backup_list'),
|
||||
path('create/', views.backup_create, name='backup_create'),
|
||||
path('<int:backup_id>/', views.backup_detail, name='backup_detail'),
|
||||
path('<int:backup_id>/download/', views.backup_download, name='backup_download'),
|
||||
path('<int:backup_id>/restore/', views.backup_restore, name='backup_restore'),
|
||||
path('<int:backup_id>/delete/', views.backup_delete, name='backup_delete'),
|
||||
]
|
Reference in New Issue
Block a user