A modern, single-page-app admin for Django.
Installation
/!\ Note: This is a pre-alpha project. Most of the things don't work. However, if you're curious, you can still try it out.
1. Install using pip
$ pip install django-candy
2. Modify your settings
# settings.py
INSTALLED_APPS = [
# ...
'django_candy',
]
3. Modify your project's urls.py
# urls.py
urlpatterns = [
# ...
path('candy/', include('django_candy.urls')),
]
Usage
After installation, you can visit http://127.0.0.1:8000/candy/ to see the
admin interface in action.
1. Register your models
The API is pretty similar to that of Django's default admin:
# admin.py
from django_candy import admin
from myapp.models import MyModel
admin.site.register(MyModel)
Reload the admin page and you should see your registered model there.
Currently, the add/edit pages don't work. You can add some objects to your model from django shell and you'll see them listed on list page.
2. ModelAdmin class
There's also a ModelAdmin class for better control over the admin ui:
# admin.py
from django_candy import admin
from myapp.models import MyModel
class MyModelAdmin(admin.ModelAdmin):
list_display = ['field_1', 'field_2', 'etc']
admin.site.register(MyModel, MyModelAdmin)
Full docs coming in due time.
Frontend
Frontend is written in React. You can find the source at https://github.com/bhch/candy-frontend.
License
Metadata
Release files for django-candy 0.7.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-candy-0.7.2.tar.gz | 8.7 kB | Without provenance | Details for django-candy-0.7.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_candy-0.7.2-py3-none-any.whl | Python 3 | none | any | Details for django_candy-0.7.2-py3-none-any.whl |
Total release size: 17.8 kB
Release files / django-candy-0.7.2.tar.gz
| Download URL | django-candy-0.7.2.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6dfa93e3113e14bb2b65716d66a4b012d4674b42e9fd4c1b99ce9b8a84f3f56b
|
|
BLAKE2b-256 checksum How to use checksums |
f72271dd8c77d44cc23d736c93bb63a4243b62a6cbad5b5a16053d1909f38f6e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.5
|
Release files / django_candy-0.7.2-py3-none-any.whl
| Download URL | django_candy-0.7.2-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f3419c4205b513b20963f91f9872f3a76caaf30603bfeb46545ab8d9c1317ab7
|
|
BLAKE2b-256 checksum How to use checksums |
e17a280557d79fba42406e8149224438f140cb4d368baa5a0ee0791f53e9388b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.5
|
Security for django-candy 0.7.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.