NOSOMETI
import logging
from gunicorn.app.base import BaseApplication
from app_init import create_initialized_flask_app
# Flask app creation should be done by create_initialized_flask_app to avoid circular dependency problems.
app = create_initialized_flask_app()
# Setup logging
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
class StandaloneApplication(BaseApplication):
def __init__(self, app, options=None):
self.application = app
self.options = options or {}
super().__init__()
def load_config(self):
# Apply configuration to Gunicorn
for key, value in self.options.items():
if key in self.cfg.settings and value is not None:
self.cfg.set(key.lower(), value)
def load(self):
Created: | Last Updated:
Admin Dashboard Template
This template provides a customizable admin dashboard with user management capabilities, including domain-based access control and individual user administration.
Getting Started
- Click "Start with this Template" to begin using the admin dashboard template
Test the Application
- Click the "Test" button to deploy your admin dashboard
- Once deployed, you'll receive a server link to access your dashboard
Using the Dashboard
The admin dashboard provides several key features:
- User Authentication: Secure login system with Google authentication
- Domain Access Control: Manage which email domains can access the dashboard
- Individual Admin Management: Add or remove specific admin users
- User Blocking: Ability to block specific users from accessing the dashboard
To use the dashboard:
- Navigate to the provided server link
- Log in with your Google account
- Use the sidebar navigation to access different sections:
- Dashboard: Overview of the system
- Team: Manage admin access and domain permissions
In the Team section, you can:
- Add new admin users by email
- Add allowed email domains for automatic admin access
- Block/unblock specific admin users
- Delete admin access for specific users
The dashboard includes built-in safeguards: * Cannot delete the owner account * Cannot delete your own admin access * Cannot block yourself
The interface is responsive and works on both desktop and mobile devices, with a collapsible sidebar for better space management.
This template provides a complete admin interface that can be used immediately after deployment, with no additional integration steps required.
Template Benefits
- Secure Admin Access Management
- Robust user authentication system with email domain and individual access control
- Ability to block/unblock specific users while maintaining security
-
Perfect for organizations needing to manage internal tool access
-
Responsive Dashboard Framework
- Mobile-friendly design with collapsible sidebar
- Clean, professional interface that works across all devices
-
Ideal for building internal tools and monitoring systems
-
Modular Template Structure
- Separated components (header, sidebar, navigation) for easy maintenance
- Reusable code patterns that speed up development
-
Excellent starting point for building multiple admin tools
-
Error Handling & User Feedback
- Built-in error pages (401, 404, 500) with professional styling
- Custom modal system for user notifications
-
Reduces development time for implementing user feedback systems
-
Enterprise-Ready Architecture
- Database migration system for seamless updates
- Scalable structure with Gunicorn server configuration
- Suitable for both small teams and large enterprise applications
Technologies


