Conversation
Deploying starlette-admin with
|
| Latest commit: |
739746b
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://288a3f61.starlette-admin.pages.dev |
| Branch Preview URL: | https://next.starlette-admin.pages.dev |
|
Looks great, I'll be testing in the next few weeks. Just wanted to confirm a couple of things: |
Answering my own question, docs are here: https://starlette-admin.jowilf.com/ My problem was that googling for the project, this gh pages pops up: https://jowilf.github.io/starlette-admin/ |
Yes this will be the new link for the doc. should have probably waited for the official release of 1.0. The current stable version (0.17.1) is still hosted at https://jowilf.github.io/starlette-admin/. I will use https://d6f47bf1.starlette-admin.pages.dev/ in the PR note to make it clear it is a preview
No, but starlette-admin can now save a FileField directly when a storage is provided, mostly to support backends that do not have a file-saving mechanism, such as Beanie and Tortoise. It is directly inspired by sqlalchemy-file. I wrote more details about it at https://starlette-admin.jowilf.com/user-guide/file-storage/#transactional-alternative
Great, if you face any issues, please don't hesitate to comment on #800 |
I'm excited to finally open this PR for starlette-admin 1.0.0! I've been developing this privately over the last few months. While the diff looks huge, most of the volume actually comes from completely rewriting the documentation, expanding the test suite to include Playwright end-to-end tests, and adding over 20 new self-contained runnable examples, cookiecutter templates, and compiled translations.
For a full breakdown of how to upgrade, please check out the new Migration Guide.
The Motivation
I wanted to redesign both the developer and user experience to make the project truly extensible. DataTables had a few limitations that were blocking custom enhancements, so I decided to drop it entirely in favor of server-side table rendering.
I also introduced official extension points. This should really help standardize how we all build and share custom fields and custom themes.
What Changed
templates/fields/list/*.html) now replace the old client-side render functions.before_create,after_edit_committed,before_delete, etc.), actions, imports/exports, and auth (after_login). You can target a single view or subscribe across all views at once usingAdminEventSubscriberclasses and the@ondecorator. These also support priority ordering.StatWidget,ChartWidget,TableWidget,TextWidget,HtmlWidget) and layout widgets (RowWidget,GridWidget,PanelWidget,TabsWidget). I also added a@routedecorator so you can easily expose extra endpoints from any view.starlette_adminlogger namespace and is silent by default. You can enable colored console output withconfigure_logging()orAdmin(debug=True).InlineModelView).ComputedField,SlugField,UUIDField,IPAddressField, field-level validators, and a clipboard copy function on any field.Breaking Changes
I've documented every breaking change with before and after examples in the Migration Guide. Here are the main highlights:
datatables_options,search_builder,responsive_table, andsave_stateare gone. All customization has moved to server-side templates and the new filter builder.identityis renamed tokey,nameis renamed todisplay_name, andlabelis renamed tomenu_label.AuthProvidercontract mergesis_authenticated,get_admin_user, andget_admin_configinto a singleauthenticatemethod.ActionSelectionobject instead of a list of primary keys. This unlocks "select all matching" functionality.starlette-admin<=0.17.1and open a GitHub issue. I am happy to re-add support if there is enough demand.Release Plan
I'll be publishing a release candidate for a while before the final 1.0.0. This will give everyone time to test the new features, migrate their setups, and report any issues.
I would really appreciate feedback on the migration experience. If anything in the guide is unclear or missing, please open an issue with a minimal reproduction.
Live demo
username: admin
password: password