From 471e137673fc7a09aa6531523770eae7186e6bbc Mon Sep 17 00:00:00 2001 From: Santiago Lamora Date: Tue, 21 Nov 2023 13:40:18 +0100 Subject: [PATCH] Enable django.contrib.musician APP & add to urls --- README.md | 2 +- orchestra/conf/project_template/project_name/settings.py | 2 ++ orchestra/urls.py | 3 +++ requirements.txt | 1 + 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2cc054a3..a194ef33 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ This deployment is **not suitable for production** but more than enough for chec ```bash # Create and activate a Python virtualenv # Make sure python3.x-venv package is installed on your system -python3 -mvenv env-django-orchestra +python3 -m venv env-django-orchestra source env-django-orchestra/bin/activate # Install Orchestra and its dependencies diff --git a/orchestra/conf/project_template/project_name/settings.py b/orchestra/conf/project_template/project_name/settings.py index 82b244f9..c858b53c 100644 --- a/orchestra/conf/project_template/project_name/settings.py +++ b/orchestra/conf/project_template/project_name/settings.py @@ -55,6 +55,7 @@ INSTALLED_APPS = [ 'orchestra.contrib.vps', 'orchestra.contrib.saas', 'orchestra.contrib.miscellaneous', + 'orchestra.contrib.musician', # Third-party apps 'django_extensions', @@ -233,6 +234,7 @@ FLUENT_DASHBOARD_ICON_THEME = '../orchestra/icons' # Django-celery import djcelery + djcelery.setup_loader() CELERYBEAT_SCHEDULER = 'djcelery.schedulers.DatabaseScheduler' diff --git a/orchestra/urls.py b/orchestra/urls.py index e3f7cefb..590ad608 100644 --- a/orchestra/urls.py +++ b/orchestra/urls.py @@ -1,5 +1,6 @@ from django.contrib import admin from django.conf.urls import include, url +from django.urls import path from rest_framework.authtoken.views import obtain_auth_token from orchestra.views import serve_private_media @@ -22,6 +23,8 @@ urlpatterns = [ url(r'^api-token-auth/', obtain_auth_token, name='api-token-auth'), url(r'^media/(.+)/(.+)/(.+)/(.+)/(.+)$', serve_private_media, name='private-media'), # url(r'search', 'orchestra.views.search', name='search'), + # MUSICIAN + path('panel/', include('orchestra.contrib.musician.urls')), ] diff --git a/requirements.txt b/requirements.txt index 14d5ce5e..3d1ce1d8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,7 @@ Django==2.2.24 django-fluent-dashboard==1.0.1 django-admin-tools==0.9.1 +django-bootstrap4 django-extensions==3.1.3 django-celery==3.2.1 celery==3.1.23