diff --git a/README.md b/README.md index 8cdcdba..e7c56bc 100644 --- a/README.md +++ b/README.md @@ -108,7 +108,7 @@ yum install python-devel mysql-devel python36-devel.x86_64 -y git clone https://github.com/hequan2017/seal cd seal - +## django 2.2 不支持 低版本的 sqlite,如果想使用sqlite ,请根据这个博客 https://www.jianshu.com/p/cdacf4b74646 进行升级 python36 -m pip install -r requirements.txt python36 manage.py makemigrations diff --git a/requirements.txt b/requirements.txt index fccd57e..6cb71f6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -9,7 +9,7 @@ chardet==3.0.4 coreapi==2.3.3 coreschema==0.0.4 decorator==4.3.0 -Django==2.2.0 +Django==2.2.2 django-bootstrap4==0.0.7 django-celery-beat==1.4.0 django-celery-results==1.0.4 @@ -64,5 +64,4 @@ urllib3==1.24.1 vine==1.2.0 watchdog==0.8.3 watchdog-gevent==0.1.0 -wcwidth==0.1.7 -django-simpleui \ No newline at end of file +wcwidth==0.1.7 \ No newline at end of file diff --git a/seal/settings.py b/seal/settings.py index 24b9d98..7911a1b 100644 --- a/seal/settings.py +++ b/seal/settings.py @@ -92,11 +92,11 @@ AUTHENTICATION_BACKENDS = ('system.views.CustomBackend',) ## 重新登录验证 # https://docs.djangoproject.com/en/2.1/ref/settings/#databases -if socket.gethostname().endswith('demo'): +if socket.gethostname().endswith('seal'): DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', - 'HOST': '127.0.0.1', + 'HOST': '192.168.100.50', 'PORT': '3306', 'NAME': 'seal', 'USER': 'root', diff --git a/system/views.py b/system/views.py index 56e01a8..78b1715 100644 --- a/system/views.py +++ b/system/views.py @@ -73,7 +73,7 @@ class Menu(APIView): 'path': 'ecs', 'name': 'ecs', 'meta': { - 'access': ['assets.add_ecs'], + 'access': ['assets.view_ecs'], 'icon': 'md-funnel', 'title': 'ecs' },