fastapi-amis-admin icon indicating copy to clipboard operation
fastapi-amis-admin copied to clipboard

FastAPI-Amis-Admin is a high-performance, efficient and easily extensible FastAPI admin framework. Inspired by django-admin, and has as many powerful functions as django-admin.

Results 65 fastapi-amis-admin issues
Sort by recently updated
recently updated
newest added

我在服务前面用到了一层nginx正向代理,正向代理中指定了一个path prefix路由到这个项目,并在nginx中用rewrite去掉了这个前缀,例如浏览器请求`domain.com/prefix/admin`,实际请求的就是`/admin`。 但项目生成的前端链接中不包含`/prefix`前缀,例如`domain.com/admin/page`,导致前端无法访问正确的后端地址`domain.com/prefix/admin/page`。 这个问题要如何解决? 我尝试过在admin的fastapi app中添加`root_path`,没有效果。 --- I used an nginx reverse proxy in front of my service. In this reverse proxy, I specified a path prefix that routes to...

> /Users/peter42/opt/miniconda3/envs/pydant2/lib/python3.10/site-packages/pydantic/_migration.py:282: UserWarning: `pydantic.utils:deep_update` has been removed. We are importing from `pydantic.v1.utils:deep_update` instead.See the migration guide for more details: https://docs.pydantic.dev/latest/migration/ > warnings.warn( > Traceback (most recent call last): > File...

I am using prisma now and i want also apply your admin but need to modeling right? But i dont wanna make a model for only admin. how can i...

Hi guys, Con we add support for sql alchemy 2.0 please ? Thank you

rt 点击nav目录时,要么仅打开nav目录,不使用link——即保持之前渲染的页面不动;或者跳转nav目录下第一菜单项。这对admin站体验有点重要。

The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/Users/yu/.conda/envs/turingmodel/lib/python3.8/site-packages/uvicorn/protocols/http/httptools_impl.py", line 371, in run_asgi result = await app(self.scope, self.receive, self.send) File "/Users/yu/.conda/envs/turingmodel/lib/python3.8/site-packages/uvicorn/middleware/proxy_headers.py",...

```python class Cluster(SQLModel, table=True): id: int = Field(default=None, primary_key=True, nullable=False) regions: List[str] = Field(sa_column=Column(JSON)) @site.register_admin class ArticleAdmin(admin.ModelAdmin): page_schema = PageSchema(label='Page', icon='fa fa-file') model = Cluster ``` 前端点击Create按钮,regions字段仍为单一字符串,不是数组输入框或者选择器表单项。 get_form_item获取到该字段的modelfield.type_是str,不是list 请问有什么解决办法?

比如这段教程,创建表单的,非常棒的功能和设计,但是没有完整的import代码,很难找到对应的类 ```python from fastapi_amis_admin.admin import admin from fastapi_amis_admin.crud import BaseApiOut from fastapi_amis_admin.models.fields import Field from pydantic import BaseModel from starlette.requests import Request @site.register_admin class UserLoginFormAdmin(admin.FormAdmin): page_schema = 'UserLoginForm' # 配置表单信息,...

现在demo中没有看到主从表相关的案例,fastapi-user-auth-demo里用户和角色管理页面里写了link_model_fields,但没看懂有什么效果。 自己写amis配置应该是可以实现的,不知道amis-admin里有没有更简洁的实现方式?