a django app to render amis json file to web.
Project description
django_amis_render
a django app to render amis json file to web.
amis version:1.3.4
install:
pip install django_amis_render
usage:
- added in settings.py INSTALLED_APPS:
'django_amis_render',
- add url in urls.py:
from django.urls import path,include
urlpatterns = [
path('admin/', admin.site.urls),
path('front/', include('django_amis_render.urls')) <<--add this line
]
- add amis json file in your apps: eg:
my_project----my_project
|
|
--------settings.py
--------urls.py
----myRenderApp <----this is your app
|
---------static
|
----amis_json
|
--------first_page.json
--------second_page.json
```
4. make sure the myRenderApp is in settings.py INSTALLED_APPS:
```
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'myRenderApp',
]
-
login admin page: http://127.0.0.1:8000/admin/ find DJANGO_AMIS_RENDER---AMIS-PAGE press "自动添加"/"AUTOADD".
-
if tips: to urls to myRenderApp. set projects urls.py. add this line: path('render/', include('myRenderApp.urls'))
-
finish. the page will be shown below. press open /打开页面 will open the page.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django_amis_render-0.0.8.tar.gz
(13.8 MB
view details)
Built Distribution
File details
Details for the file django_amis_render-0.0.8.tar.gz
.
File metadata
- Download URL: django_amis_render-0.0.8.tar.gz
- Upload date:
- Size: 13.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc847b0b9626d270f9f08ee655661e9990883be3318ed5d122d91e7957be3d53 |
|
MD5 | a7b59282ffe1d5ce4224f44717b27b07 |
|
BLAKE2b-256 | bbcab50f92a058bf01551f9254fd9675b4ada4ddaffeaf56c434a0d31bfc19ca |
File details
Details for the file django_amis_render-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: django_amis_render-0.0.8-py3-none-any.whl
- Upload date:
- Size: 13.9 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 644e434ffc2c64ddeb96f556e5857a0b796ba1748ee81709998f13bcdda92649 |
|
MD5 | 8bfed4a5d6739415bb37846621dae4c2 |
|
BLAKE2b-256 | 569588d4dde8dcfd85eced2cf999737bae40b92e237b20fe4f4d6a8c7c6f5f9d |