Skip to main content

django soho ui

Project description

开始使用

1、在INSTALLED_APPS中添加django_sohoui

    'django_sohoui',
    'django.contrib.admin',
    ....
]

2、执行makemigrations

python manage.py migrate      

**3、 在TEMPLATES中添加context_processors **

    'django.template.context_processors.debug',
    'django.template.context_processors.request',
    'django.contrib.auth.context_processors.auth',
    'django.contrib.messages.context_processors.messages',
    ## 添加custom_context
    'django_sohoui.context_processors.custom_context',
]

4、 在project/urls.py中添加django_sohoui

    path('admin/', admin.site.urls),
    ## 添加django_sohoui
    path('django_sohoui/', include('django_sohoui.urls')),
]

5、 在project/settings.py中添加LOGIN_BG_IMAGE(自定义登录页背景图片)

</code></pre>
<p><strong>6、 在project/settings.py中添加SOHO_MENU_LIST</strong></p>
<pre lang="SOHO_MENU_LIST"><code>    'show_system_menu': True, ## 是否显示系统菜单
    'models':[
        {
            'name': '苏豪菜单模块',
            'models': [
                {
                    'name': 'System菜单设置',
                    'admin_url': '/admin/django_sohoui/adminmenus/'
                },
                {
                    'name': 'System菜单设置1',
                    'admin_url': '/admin/django_sohoui/adminmenus/',
                    #自定义页面添加权限,admin model不需要指定权限
                    'permission': 'app.can_admin_sohoui_site'
                }
            ]
        },
    ]
}

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_sohoui-1.1.15.tar.gz (4.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_sohoui-1.1.15-py3-none-any.whl (4.7 MB view details)

Uploaded Python 3

File details

Details for the file django_sohoui-1.1.15.tar.gz.

File metadata

  • Download URL: django_sohoui-1.1.15.tar.gz
  • Upload date:
  • Size: 4.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.16

File hashes

Hashes for django_sohoui-1.1.15.tar.gz
Algorithm Hash digest
SHA256 a8ad51f06ac927f0877941f2c55ce6c2fb8ebfb435a9f90bfbe76e885d294ed1
MD5 aa76e8d963462e2456b082de5a419bb0
BLAKE2b-256 c646a87fb814fd2bf234e422230bd1d669d6018b9bce2ff45956902f768f3c00

See more details on using hashes here.

File details

Details for the file django_sohoui-1.1.15-py3-none-any.whl.

File metadata

  • Download URL: django_sohoui-1.1.15-py3-none-any.whl
  • Upload date:
  • Size: 4.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.16

File hashes

Hashes for django_sohoui-1.1.15-py3-none-any.whl
Algorithm Hash digest
SHA256 9212f10b3659267a833691612e70ac846514c1f1b6a04bce27cb563fa7b7bf5c
MD5 03fb0bf6aa47cdae956d46051cfe63e2
BLAKE2b-256 d46589488a8b98235b32127353d95f650383b9c1abe9a0b8a6e9ae1173009ae0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page