Skip to content

Frontend static files are missing from the PyPI package (0.1.1) #1

Closed

Description

@MortezaKarimi77

Description

When installing litestar-admin==0.1.1 from PyPI, the backend API is registered correctly, but the admin frontend is not available because the static directory is missing from the installed package.

Environment

  • Python: 3.14.7
  • Litestar: 2.24.0
  • litestar-admin: 0.1.1
  • OS: macOS

Steps to reproduce

  1. Install the package:
uv add litestar-admin
  1. Configure the plugin as described in the documentation:
from litestar_admin import AdminConfig, AdminPlugin

admin_config = AdminConfig(title="My Admin")
admin_plugin = AdminPlugin(config=admin_config)
  1. Start the Litestar application.

The backend admin routes are registered successfully. For example:

/admin/api/config
/admin/api/models
/admin/api/models/{model_name:str}
/admin/api/auth/login

However, requesting:

GET /admin

returns:

404 Not Found

Root cause

I checked the installed package and found that:

site-packages/litestar_admin/static/

does not exist.

The plugin's _configure_static_files() expects the frontend assets under this directory:

static_path = (
    Path(self._config.static_path)
    if self._config.static_path
    else Path(__file__).parent / "static"
)

Since the directory does not exist, the static frontend routes are never registered.

The project documentation mentions running:

make frontend

which appears to generate the frontend assets, so I suspect the generated static directory is not being included in the published PyPI wheel.

Expected behavior

A standard installation:

uv add litestar-admin

should include the frontend assets so that /admin loads the admin UI without requiring users to clone the repository or manually build the frontend.

Additional information

The API portion of the plugin works correctly. The issue appears to be specifically related to packaging/distribution of the frontend static assets.

Could you check whether src/litestar_admin/static/ is included in the wheel/sdist published to PyPI?

Thanks!

Activity

  1. JacobCoffee commented on Oct 11, 2026

    @JacobCoffee
    Owner

    Thanks for the report @MortezaKarimi77! The frontend wasn't being built before packaging, so 0.1.1 shipped without it. Fixed in #3 and released in 0.1.2: pip install -U litestar-admin and /admin/ should load the UI now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions