feat(apps): Install django-unfold
This commit is contained in:
parent
7c11b0de4b
commit
e31731f8e6
4 changed files with 43 additions and 1 deletions
|
@ -54,6 +54,7 @@ in
|
|||
ps.django-sass-processor
|
||||
ps.django-sass-processor-dart-sass
|
||||
ps.django-stubs
|
||||
ps.django-unfold
|
||||
ps.ipython
|
||||
ps.loadcredential
|
||||
ps.pykanidm
|
||||
|
|
40
pkgs/django-unfold/default.nix
Normal file
40
pkgs/django-unfold/default.nix
Normal file
|
@ -0,0 +1,40 @@
|
|||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
poetry-core,
|
||||
django,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "django-unfold";
|
||||
version = "0.39.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "unfoldadmin";
|
||||
repo = "django-unfold";
|
||||
rev = version;
|
||||
hash = "sha256-CmmlTx2eLcANc6ANy25ii1KVebkmUEJmDCe+/RwakAg=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
django
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"unfold"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Modern Django admin theme for seamless interface development";
|
||||
homepage = "https://github.com/unfoldadmin/django-unfold";
|
||||
changelog = "https://github.com/unfoldadmin/django-unfold/blob/${src.rev}/CHANGELOG.md";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ ];
|
||||
};
|
||||
}
|
|
@ -24,6 +24,7 @@ ALLOWED_HOSTS = credentials.get_json("ALLOWED_HOSTS", [])
|
|||
# List the installed applications
|
||||
|
||||
INSTALLED_APPS = [
|
||||
"unfold",
|
||||
"django.contrib.admin",
|
||||
"django.contrib.auth",
|
||||
"django.contrib.contenttypes",
|
||||
|
|
|
@ -25,11 +25,11 @@ urlpatterns = [
|
|||
path("login", TemplateView.as_view(template_name="login.html"), name="login"),
|
||||
path("", include("dgsi.urls")),
|
||||
path("accounts/", include("allauth.urls")),
|
||||
path("admin/", admin.site.urls),
|
||||
]
|
||||
|
||||
if settings.DEBUG:
|
||||
urlpatterns += [
|
||||
path("admin/", admin.site.urls),
|
||||
path("__reload__/", include("django_browser_reload.urls")),
|
||||
path("__debug__/", include("debug_toolbar.urls")),
|
||||
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
|
||||
|
|
Loading…
Reference in a new issue