• 大小: 5.41MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-09-28
  • 语言: Python
  • 标签: django  erp  

资源简介

https://github.com/zhuinfo/Django-ERP, 根据此django-erp改写为适配python3.6,+django2.01,完美运行, 数据库改为postgresql, 如果使用mysql, 请在./mis/setting.py中改回即可, 此版已经将作者的数据文件从mysql转为postgresql, 在install 目录下postgresql直接恢复备份即可。

资源截图

代码片段和文件信息

“““
This file was generated with the customdashboard management command and
contains the class for the main dashboard.

To activate your index dashboard add the following to your settings.py::
    GRAPPELLI_INDEX_DASHBOARD = ‘Django-ERP-cn.dashboard.CustomIndexDashboard‘
“““

from django.utils.translation import ugettext_lazy as _
from django.core.urlresolvers import reverse

from grappelli.dashboard import modules Dashboard
from grappelli.dashboard.utils import get_admin_site_name


class CustomIndexDashboard(Dashboard):
    “““
    Custom index dashboard for www.
    “““
    
    def init_with_context(self context):
        site_name = get_admin_site_name(context)
        
        # append a group for “Administration“ & “Applications“
        self.children.append(modules.Group(
            _(‘Group: Administration & Applications‘)
            column=1
            collapsible=True
            children = [
                modules.AppList(
                    _(‘Administration‘)
                    column=1
                    collapsible=False
                    models=(‘django.contrib.*‘)
                )
                modules.AppList(
                    _(‘Applications‘)
                    column=1
                    css_classes=(‘collapse closed‘)
                    exclude=(‘django.contrib.*‘)
                )
            ]
        ))
        
        # append an app list module for “Applications“
        self.children.append(modules.AppList(
            _(‘AppList: Applications‘)
            collapsible=True
            column=1
            css_classes=(‘collapse closed‘)
            exclude=(‘django.contrib.*‘)
        ))
        
        # append an app list module for “Administration“
        self.children.append(modules.ModelList(
            _(‘ModelList: Administration‘)
            column=1
            collapsible=False
            models=(‘django.contrib.*‘)
        ))
        
        # append another link list module for “support“.
        self.children.append(modules.linkList(
            _(‘Media Management‘)
            column=2
            children=[
                {
                    ‘title‘: _(‘FileBrowser‘)
                    ‘url‘: ‘/admin/filebrowser/browse/‘
                    ‘external‘: False
                }
            ]
        ))
        
        # append another link list module for “support“.
        self.children.append(modules.linkList(
            _(‘Support‘)
            column=2
            children=[
                {
                    ‘title‘: _(‘Django Documentation‘)
                    ‘url‘: ‘http://docs.djangoproject.com/‘
                    ‘external‘: True
                }
                {
                    ‘title‘: _(‘Grappelli Documentation‘)
                    ‘url‘: ‘http://packages.python.org/django-grappelli/‘
                    ‘external‘: Tr

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-03-08 13:22  Django-ERP-cn\
     目录           0  2017-12-07 09:04  Django-ERP-cn\.vscode\
     目录           0  2017-11-27 08:58  Django-ERP-cn\basedata\
     文件       12393  2017-11-21 10:43  Django-ERP-cn\basedata\admin.py
     文件         229  2017-05-02 09:38  Django-ERP-cn\basedata\apps.py
     目录           0  2018-01-31 09:34  Django-ERP-cn\basedata\migrations\
     文件       41246  2017-11-27 08:58  Django-ERP-cn\basedata\migrations\0001_initial.py
     文件        9103  2018-01-08 09:13  Django-ERP-cn\basedata\migrations\0002_auto_20180108_0913.py
     文件        9017  2018-01-31 09:34  Django-ERP-cn\basedata\migrations\0003_auto_20180131_0934.py
     文件           0  2017-11-27 08:58  Django-ERP-cn\basedata\migrations\__init__.py
     目录           0  2018-01-31 09:34  Django-ERP-cn\basedata\migrations\__pycache__\
     文件       13129  2017-11-27 08:58  Django-ERP-cn\basedata\migrations\__pycache__\0001_initial.cpython-36.pyc
     文件        3197  2018-01-08 09:13  Django-ERP-cn\basedata\migrations\__pycache__\0002_auto_20180108_0913.cpython-36.pyc
     文件        3205  2018-01-31 09:34  Django-ERP-cn\basedata\migrations\__pycache__\0003_auto_20180131_0934.cpython-36.pyc
     文件         161  2017-11-27 08:58  Django-ERP-cn\basedata\migrations\__pycache__\__init__.cpython-36.pyc
     文件       30172  2018-01-15 14:04  Django-ERP-cn\basedata\models.py
     文件          60  2017-05-02 09:38  Django-ERP-cn\basedata\tests.py
     文件         170  2017-05-02 09:38  Django-ERP-cn\basedata\urls.py
     文件        1253  2017-11-21 10:43  Django-ERP-cn\basedata\views.py
     文件          52  2017-05-02 09:38  Django-ERP-cn\basedata\__init__.py
     目录           0  2018-01-16 15:24  Django-ERP-cn\basedata\__pycache__\
     文件       14082  2017-11-21 10:54  Django-ERP-cn\basedata\__pycache__\admin.cpython-36.pyc
     文件         507  2017-11-21 10:36  Django-ERP-cn\basedata\__pycache__\apps.cpython-36.pyc
     文件       26170  2018-01-16 15:24  Django-ERP-cn\basedata\__pycache__\models.cpython-36.pyc
     文件         353  2017-11-21 10:54  Django-ERP-cn\basedata\__pycache__\urls.cpython-36.pyc
     文件        1319  2017-11-21 10:54  Django-ERP-cn\basedata\__pycache__\views.cpython-36.pyc
     文件         202  2017-11-21 10:36  Django-ERP-cn\basedata\__pycache__\__init__.cpython-36.pyc
     目录           0  2017-11-21 10:41  Django-ERP-cn\common\
     文件         850  2017-11-21 10:37  Django-ERP-cn\common\const.py
     文件       12087  2018-01-05 14:59  Django-ERP-cn\common\generic.py
     文件          29  2017-05-02 09:38  Django-ERP-cn\common\__init__.py
............此处省略1966个文件信息

评论

共有 条评论