by Richard LST
EventEase: Admin & Customer Scheduler
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:
Here's a step-by-step guide for using the EventEase: Admin & Customer Scheduler template:
Introduction
The EventEase template provides a comprehensive event scheduling solution with both an admin backend for event creation and management, and a customer-facing frontend for easy event viewing. This guide will walk you through setting up and using the EventEase application.
Getting Started
- Click "Start with this Template" to begin using the EventEase template in the Lazy Builder interface.
Testing the Application
- Once the template is loaded, click the "Test" button to deploy the application and launch the Lazy CLI.
Using the Admin Interface
-
After deployment, you'll receive a server link through the Lazy CLI. Open this link in your browser to access the EventEase application.
-
Navigate to the admin interface by appending "/admin/events" to the server link (e.g.,
https://your-server-link.lazy.com/admin/events
). -
In the admin interface, you can:
- Create new events
- Add speakers
- Manage locations
- View and edit existing events
Creating an Event
- To create a new event:
- Click on "Create Event" in the admin navigation
- Fill in the event details (name, date, time, description)
- Click "Create Event" to save
Managing Speakers
- To add a new speaker:
- In the admin dashboard, find the "Add New Speaker" section
- Enter the speaker's name, bio, and email
-
Click "Add Speaker" to save
-
To delete a speaker:
- Locate the speaker in the "Speakers" list
- Click the "Delete" button next to their name
Managing Locations
- To add a new location:
- In the admin dashboard, find the "Add New Location" section
- Enter the location name, address, and capacity
- Click "Add Location" to save
Viewing the Customer-Facing Frontend
- To view the customer-facing event list:
- Navigate to the root URL of your application (e.g.,
https://your-server-link.lazy.com
) - You'll see a list of upcoming events and a calendar view
- Navigate to the root URL of your application (e.g.,
Using the API
- The application also provides an API for event data. To access it:
- Use the endpoint:
https://your-server-link.lazy.com/api/events
- This will return a JSON list of all events
- Use the endpoint:
Customizing the Application
- The template provides a solid foundation for an event scheduling application. You can further customize it by:
- Modifying the HTML templates in the
templates
folder - Adjusting the CSS styles in
static/css/styles.css
- Extending the functionality in
routes.py
anddatabase.py
- Modifying the HTML templates in the
By following these steps, you'll have a fully functional event scheduling application with both admin and customer-facing interfaces. The EventEase template simplifies the process of creating, managing, and displaying events for your organization.