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
----myTestApp <----this is your app
|
---------static
|
----amis_json
|
--------first_page.json
--------second_page.json
```
4. make sure the myTestApp 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',
'myTestApp',
]
- login admin page: http://127.0.0.1:8000/admin/ find DJANGO_AMIS_RENDER---AMIS-PAGE press "自动添加"/"AUTOADD". 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.6.tar.gz
(13.9 MB
view details)
Built Distribution
File details
Details for the file django_amis_render-0.0.6.tar.gz
.
File metadata
- Download URL: django_amis_render-0.0.6.tar.gz
- Upload date:
- Size: 13.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3ca2c1a06541a2e53cf399f9a55d21e9f6ead21fc1cf28f1069697c221af348 |
|
MD5 | e6c49aceab539dfd07cd6ccab8b7f09f |
|
BLAKE2b-256 | f7db9645bcd1124b02f480e2ac93987e2b8c82355b52f2a7489dc66a1beed314 |
File details
Details for the file django_amis_render-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: django_amis_render-0.0.6-py3-none-any.whl
- Upload date:
- Size: 14.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f48f5cb9c2dcb7ed140ef0fc7b7645f9936725b2f5896621b4081518126fe12b |
|
MD5 | fd0e2834f7b190687f63615a4f9ed914 |
|
BLAKE2b-256 | c800617df9c7b63b5b45a3953a9d3cab87c89914d62219bb52adcf0629de0eaa |