django-admin-react 1.0.0__tar.gz → 1.0.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (23) hide show
  1. {django_admin_react-1.0.0 → django_admin_react-1.0.1}/PKG-INFO +5 -4
  2. {django_admin_react-1.0.0 → django_admin_react-1.0.1}/README.md +4 -3
  3. django_admin_react-1.0.1/django_admin_react/__init__.py +25 -0
  4. {django_admin_react-1.0.0 → django_admin_react-1.0.1}/django_admin_react/static/admin_react/.vite/manifest.json +2 -2
  5. django_admin_react-1.0.0/django_admin_react/static/admin_react/assets/index-CcvXnwTT.js → django_admin_react-1.0.1/django_admin_react/static/admin_react/assets/index-CDjd0bZa.js +1 -1
  6. django_admin_react-1.0.1/django_admin_react/static/admin_react/assets/index-Fn2O5Tqj.css +1 -0
  7. {django_admin_react-1.0.0 → django_admin_react-1.0.1}/django_admin_react/static/admin_react/index.html +2 -2
  8. {django_admin_react-1.0.0 → django_admin_react-1.0.1}/pyproject.toml +1 -1
  9. django_admin_react-1.0.0/django_admin_react/__init__.py +0 -10
  10. django_admin_react-1.0.0/django_admin_react/static/admin_react/assets/index-Rr7dwEhe.css +0 -1
  11. {django_admin_react-1.0.0 → django_admin_react-1.0.1}/LICENSE +0 -0
  12. {django_admin_react-1.0.0 → django_admin_react-1.0.1}/django_admin_react/README.md +0 -0
  13. {django_admin_react-1.0.0 → django_admin_react-1.0.1}/django_admin_react/apps.py +0 -0
  14. {django_admin_react-1.0.0 → django_admin_react-1.0.1}/django_admin_react/audit.py +0 -0
  15. {django_admin_react-1.0.0 → django_admin_react-1.0.1}/django_admin_react/conf.py +0 -0
  16. {django_admin_react-1.0.0 → django_admin_react-1.0.1}/django_admin_react/pwa.py +0 -0
  17. {django_admin_react-1.0.0 → django_admin_react-1.0.1}/django_admin_react/templates/README.md +0 -0
  18. {django_admin_react-1.0.0 → django_admin_react-1.0.1}/django_admin_react/templates/admin_react/README.md +0 -0
  19. {django_admin_react-1.0.0 → django_admin_react-1.0.1}/django_admin_react/templates/admin_react/index.html +0 -0
  20. {django_admin_react-1.0.0 → django_admin_react-1.0.1}/django_admin_react/templates/admin_react/login.html +0 -0
  21. {django_admin_react-1.0.0 → django_admin_react-1.0.1}/django_admin_react/templates/admin_react/sw.js +0 -0
  22. {django_admin_react-1.0.0 → django_admin_react-1.0.1}/django_admin_react/urls.py +0 -0
  23. {django_admin_react-1.0.0 → django_admin_react-1.0.1}/django_admin_react/views.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: django-admin-react
3
- Version: 1.0.0
3
+ Version: 1.0.1
4
4
  Summary: A drop-in React single-page admin for Django, driven entirely by ModelAdmin.
5
5
  License: MIT
6
6
  Keywords: django,admin,react,spa,tailwind
@@ -42,17 +42,18 @@ your `ModelAdmin` classes drive everything. No React code on your side.
42
42
  INSTALLED_APPS = [
43
43
  # ...
44
44
  "django.contrib.admin",
45
- "django_admin_rest_api", # the JSON REST API (sibling package pulled in as a dependency)
46
- "django_admin_react", # this package — the React SPA on top of it
45
+ "django_admin_react", # the React SPA includes the JSON API for you
47
46
  ]
48
47
 
49
48
  # urls.py
50
49
  urlpatterns = [
51
50
  path("admin/", admin.site.urls),
52
- path("admin-react/", include("django_admin_react.urls")), # SPA + its API include
51
+ path("admin-react/", include("django_admin_react.urls")), # SPA + API in one include
53
52
  ]
54
53
  ```
55
54
 
55
+ **One `INSTALLED_APPS` line + one URL include is the entire integration.** `pip install django-admin-react` transitively pulls in the [JSON API](https://pypi.org/project/django-admin-rest-api/) and the [MCP adapter](https://pypi.org/project/django-admin-mcp-api/); `django_admin_react.urls` includes the API endpoints at `<mount>/api/v1/…`, so the SPA finds its wire surface with zero configuration. (Mount the API a second time at your own prefix only if a non-SPA client also needs it.)
56
+
56
57
  > **Beta — v1.0.0.** Available on PyPI; the SPA + the API
57
58
  > ([`django-admin-rest-api`](https://pypi.org/project/django-admin-rest-api/))
58
59
  > + the MCP adapter
@@ -9,17 +9,18 @@ your `ModelAdmin` classes drive everything. No React code on your side.
9
9
  INSTALLED_APPS = [
10
10
  # ...
11
11
  "django.contrib.admin",
12
- "django_admin_rest_api", # the JSON REST API (sibling package pulled in as a dependency)
13
- "django_admin_react", # this package — the React SPA on top of it
12
+ "django_admin_react", # the React SPA includes the JSON API for you
14
13
  ]
15
14
 
16
15
  # urls.py
17
16
  urlpatterns = [
18
17
  path("admin/", admin.site.urls),
19
- path("admin-react/", include("django_admin_react.urls")), # SPA + its API include
18
+ path("admin-react/", include("django_admin_react.urls")), # SPA + API in one include
20
19
  ]
21
20
  ```
22
21
 
22
+ **One `INSTALLED_APPS` line + one URL include is the entire integration.** `pip install django-admin-react` transitively pulls in the [JSON API](https://pypi.org/project/django-admin-rest-api/) and the [MCP adapter](https://pypi.org/project/django-admin-mcp-api/); `django_admin_react.urls` includes the API endpoints at `<mount>/api/v1/…`, so the SPA finds its wire surface with zero configuration. (Mount the API a second time at your own prefix only if a non-SPA client also needs it.)
23
+
23
24
  > **Beta — v1.0.0.** Available on PyPI; the SPA + the API
24
25
  > ([`django-admin-rest-api`](https://pypi.org/project/django-admin-rest-api/))
25
26
  > + the MCP adapter
@@ -0,0 +1,25 @@
1
+ """django-admin-react — the React SPA super-layer for the Django admin.
2
+
3
+ A drop-in single-page admin: same `pip install`, same `INSTALLED_APPS`,
4
+ same `urls.py include()` — and your `ModelAdmin` classes drive everything.
5
+ The JSON wire surface lives in the sibling
6
+ [`django-admin-rest-api`](https://pypi.org/project/django-admin-rest-api/)
7
+ package (pulled in as a dependency); the MCP exposure of the same surface
8
+ lives in
9
+ [`django-admin-mcp-api`](https://pypi.org/project/django-admin-mcp-api/).
10
+
11
+ See `README.md` for install + the consumer wiring, and `ARCHITECTURE.md`
12
+ for what lives in this repo vs. the API / MCP siblings.
13
+ """
14
+
15
+ from importlib.metadata import PackageNotFoundError
16
+ from importlib.metadata import version as _pkg_version
17
+
18
+ try:
19
+ # Read the version directly from the installed distribution metadata
20
+ # so this constant never drifts from `pyproject.toml` after a release.
21
+ __version__ = _pkg_version("django-admin-react")
22
+ except PackageNotFoundError: # pragma: no cover — editable / source install
23
+ __version__ = "0.0.0"
24
+
25
+ default_app_config = "django_admin_react.apps.DjangoAdminReactConfig"
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "index.html": {
3
- "file": "assets/index-CcvXnwTT.js",
3
+ "file": "assets/index-CDjd0bZa.js",
4
4
  "name": "index",
5
5
  "src": "index.html",
6
6
  "isEntry": true,
7
7
  "css": [
8
- "assets/index-Rr7dwEhe.css"
8
+ "assets/index-Fn2O5Tqj.css"
9
9
  ]
10
10
  }
11
11
  }