Current collected state Current
Observed since 20 Oct, 19:42 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
使用模板 自动创建Django项目
兼容 linux windows 系统
创建虚拟环境后 安装djano==3.2.11 然后用模板创建项目,
可以自定义模板: 模板路径 建议使用绝对路径
可以自定义项目上级文件夹,project_parent_dir, 建议使用绝对路径
import AdminToolsDjango
# 创建一个对象
django_project = AdminToolsDjango.ProjectManager(project_parent_dir='/obj_test/new_obj_parent',
project_name='new_obj',
)
print(django_project.cmd_activate_venv)
# 创建项目
django_project.create_project()
# 配置生产环境 会自动配置nginx反向代理 要确保linux系统 有 nginx 服务器
django_project.configure_production_environment()
使用以下命令安装 AdminToolsDjango:
pip install AdminToolsDjango
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 1.0.6 | 3 Jun 2023 | 0 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 19:42 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:7c2c40594e2187f99971cd4129f961750424c6d4c11d5772708c5f06256d9cc0