feat: initial commit - Band Management application

This commit is contained in:
2026-01-06 03:11:46 +01:00
commit 34e12e00b3
24543 changed files with 3991790 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
# Register your models here.

View File

@@ -0,0 +1,6 @@
from django.apps import AppConfig
class PagesConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "apps.pages"

View File

@@ -0,0 +1,2 @@
# Create your models here.

View File

@@ -0,0 +1,36 @@
{% extends layout_path %}
{% load static %}
{% load i18n %}
{% block title %}Coming Soon - Pages{% endblock %}
{% block page_css %}
{{ block.super }}
<link rel="stylesheet" href="{% static 'vendor/css/pages/page-misc.css' %}" />
{% endblock page_css %}
{% block content %}
<!-- Coming Soon -->
<div class="container-xxl container-p-y py-4">
<div class="misc-wrapper">
<h4 class="mb-2 mx-2">We are launching soon 🚀</h4>
<p class="mb-6 mx-2">Our website is opening soon. Please register to get notified when it's ready!</p>
<form onsubmit="return false">
<div class="mb-0">
<div class="mb-0 d-flex gap-4">
<input type="text" class="form-control" placeholder="Enter your email" autofocus />
<button type="submit" class="btn btn-primary">Notify</button>
</div>
</div>
</form>
<div class="mt-12">
<img src="{% static 'img/illustrations/page-misc-launching-soon.png' %}" alt="page-misc-launching-soon" width="263" class="img-fluid" />
</div>
</div>
</div>
<div class="container-fluid misc-bg-wrapper">
<img src="{% static 'img/illustrations/bg-shape-image-' %}{{ COOKIES.theme|default:theme }}.png" height="355" alt="page-misc-coming-soon" data-app-light-img="illustrations/bg-shape-image-light.png" data-app-dark-img="illustrations/bg-shape-image-dark.png" />
</div>
<!-- /Coming Soon -->
{% endblock %}

View File

@@ -0,0 +1,31 @@
{% extends layout_path %}
{% load static %}
{% load i18n %}
{% block title %}Error - Pages{% endblock %}
{% block page_css %}
{{ block.super }}
<link rel="stylesheet" href="{% static 'vendor/css/pages/page-misc.css' %}" />
{% endblock page_css %}
{% block content %}
<!-- Error -->
<div class="container-xxl container-p-y">
<div class="misc-wrapper">
<h1 class="mb-2 mx-2" style="line-height: 6rem;font-size: 6rem;">404</h1>
<h4 class="mb-2 mx-2">Page Not Found ⚠️</h4>
<p class="mb-6 mx-2">we couldn't find the page you are looking for</p>
<a href="{% url 'index' %}" class="btn btn-primary mb-10">Back to home</a>
<div class="mt-4">
<img src="{% static 'img/illustrations/page-misc-error.png' %}" alt="page-misc-error" width="225" class="img-fluid">
</div>
</div>
</div>
<div class="container-fluid misc-bg-wrapper">
<img src="{% static 'img/illustrations/bg-shape-image-' %}{{ COOKIES.theme|default:theme }}.png" height="355" alt="page-misc-error" data-app-light-img="illustrations/bg-shape-image-light.png" data-app-dark-img="illustrations/bg-shape-image-dark.png">
</div>
<!-- /Error -->
{% endblock %}

View File

@@ -0,0 +1,30 @@
{% extends layout_path %}
{% load static %}
{% load i18n %}
{% block title %}Not Authorized - Pages{% endblock %}
{% block page_css %}
{{ block.super }}
<link rel="stylesheet" href="{% static 'vendor/css/pages/page-misc.css' %}" />
{% endblock page_css %}
{% block content %}
<!-- Not Authorized -->
<div class="container-xxl container-p-y">
<div class="misc-wrapper">
<h1 class="mb-2 mx-2" style="line-height: 6rem;font-size: 6rem;">401</h1>
<h4 class="mb-2 mx-2">You are not authorized! 🔐</h4>
<p class="mb-6 mx-2">You dont have permission to access this page. Go Home!</p>
<a href="{% url 'index' %}" class="btn btn-primary">Back to home</a>
<div class="mt-12">
<img src="{% static 'img/illustrations/page-misc-you-are-not-authorized.png' %}" alt="page-misc-not-authorized" width="170" class="img-fluid">
</div>
</div>
</div>
<div class="container-fluid misc-bg-wrapper">
<img src="{% static 'img/illustrations/bg-shape-image-' %}{{ COOKIES.theme|default:theme }}.png" height="355" alt="page-misc-not-authorized" data-app-light-img="illustrations/bg-shape-image-light.png" data-app-dark-img="illustrations/bg-shape-image-dark.png">
</div>
<!-- /Not Authorized -->
{% endblock %}

View File

@@ -0,0 +1,29 @@
{% extends layout_path %}
{% load static %}
{% load i18n %}
{% block title %}Under Maintenance - Pages{% endblock %}
{% block page_css %}
{{ block.super }}
<link rel="stylesheet" href="{% static 'vendor/css/pages/page-misc.css' %}" />
{% endblock page_css %}
{% block content %}
<!--Under Maintenance -->
<div class="container-xxl container-p-y">
<div class="misc-wrapper">
<h4 class="mb-2 mx-2">Under Maintenance! 🚧</h4>
<p class="mb-6 mx-2">Sorry for the inconvenience but we're performing some maintenance at the moment</p>
<a href="{% url 'index' %}" class="btn btn-primary">Back to home</a>
<div class="mt-12">
<img src="{% static 'img/illustrations/page-misc-under-maintenance.png' %}" alt="page-misc-under-maintenance" width="550" class="img-fluid" />
</div>
</div>
</div>
<div class="container-fluid misc-bg-wrapper misc-under-maintenance-bg-wrapper">
<img src="{% static 'img/illustrations/bg-shape-image-' %}{{ COOKIES.theme|default:theme }}.png" height="355" alt="page-misc-under-maintenance" data-app-light-img="illustrations/bg-shape-image-light.png" data-app-dark-img="illustrations/bg-shape-image-dark.png" />
</div>
<!-- /Under Maintenance -->
{% endblock %}

View File

@@ -0,0 +1,27 @@
from django.urls import path
from .views import MiscPagesView
urlpatterns = [
path(
"pages/misc/error/",
MiscPagesView.as_view(template_name="pages_misc_error.html"),
name="pages-misc-error",
),
path(
"pages/misc/under_maintenance/",
MiscPagesView.as_view(template_name="pages_misc_under_maintenance.html"),
name="pages-misc-under-maintenance",
),
path(
"pages/misc/comingsoon/",
MiscPagesView.as_view(template_name="pages_misc_comingsoon.html"),
name="pages-misc-comingsoon",
),
path(
"pages/misc/not_authorized/",
MiscPagesView.as_view(template_name="pages_misc_not_authorized.html"),
name="pages-misc-not-authorized",
),
]

View File

@@ -0,0 +1,26 @@
from django.views.generic import TemplateView
from web_project import TemplateLayout
from web_project.template_helpers.theme import TemplateHelper
"""
This file is a view controller for multiple pages as a module.
Here you can override the page view layout.
Refer to pages/urls.py file for more pages.
"""
class MiscPagesView(TemplateView):
# Predefined function
def get_context_data(self, **kwargs):
# A function to init the global layout. It is defined in web_project/__init__.py file
context = TemplateLayout.init(self, super().get_context_data(**kwargs))
# Update the context
context.update(
{
"layout_path": TemplateHelper.set_layout("layout_blank.html", context),
}
)
return context

View File

@@ -0,0 +1,2 @@
# Register your models here.

View File

@@ -0,0 +1,6 @@
from django.apps import AppConfig
class SampleConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "apps.sample"

View File

@@ -0,0 +1,2 @@
# Create your models here.

View File

@@ -0,0 +1,12 @@
{% extends layout_path %}
{% load i18n %}
{% block title %}Page 1 - Starter Kit{% endblock title %}
{% block content %}
<h4 class="py-4 mb-6">Page 1</h4>
<p>Sample page.<br />For more layout options, refer <a href="{% get_theme_variables 'documentation' %}" target="_blank" class="fw-medium">Layout docs</a>.</p>
{% endblock %}

View File

@@ -0,0 +1,12 @@
{% extends layout_path %}
{% load i18n %}
{% block title %}Page 2 - Starter Kit{% endblock title %}
{% block content %}
<h4 class="py-4 mb-6">Page 2</h4>
<p>Sample page.<br />For more layout options, refer <a href="{% get_theme_variables 'documentation' %}" target="_blank" class="fw-medium">Layout docs</a>.</p>
{% endblock %}

View File

@@ -0,0 +1,2 @@
# Create your tests here.

View File

@@ -0,0 +1,16 @@
from django.urls import path
from .views import SampleView
urlpatterns = [
path(
"",
SampleView.as_view(template_name="index.html"),
name="index",
),
path(
"page_2/",
SampleView.as_view(template_name="page_2.html"),
name="page-2",
),
]

View File

@@ -0,0 +1,18 @@
from django.views.generic import TemplateView
from web_project import TemplateLayout
"""
This file is a view controller for multiple pages as a module.
Here you can override the page view layout.
Refer to sample/urls.py file for more pages.
"""
class SampleView(TemplateView):
# Predefined function
def get_context_data(self, **kwargs):
# A function to init the global layout. It is defined in web_project/__init__.py file
context = TemplateLayout.init(self, super().get_context_data(**kwargs))
return context