Skip to content

Commit

Permalink
项目打包
Browse files Browse the repository at this point in the history
  • Loading branch information
wkunzhi committed Dec 13, 2019
1 parent e4f8fb7 commit 52d2b11
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
Binary file modified CompanyQuiry/__pycache__/settings.cpython-37.pyc
Binary file not shown.
Binary file modified CompanyQuiry/__pycache__/urls.cpython-37.pyc
Binary file not shown.
3 changes: 3 additions & 0 deletions CompanyQuiry/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
'django.contrib.staticfiles',
'web.apps.WebConfig',
'rbac.apps.RbacConfig',
'stark.apps.StarkConfig',
]

MIDDLEWARE = [
Expand Down Expand Up @@ -141,6 +142,7 @@
VALID_URL_LIST = [
'/login/',
'/admin/.*',
# '',
]

# 需要登录但无需权限的URL
Expand All @@ -155,4 +157,5 @@
'/login/',
'/logout/',
'/index/',
# '',
]
4 changes: 4 additions & 0 deletions CompanyQuiry/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@
from django.conf.urls import url, include

from web.views import views
from stark.service.v1 import site

urlpatterns = [
path('admin/', admin.site.urls),

# 路由系统
url(r'^stark/', site.urls),
# 权限系统
url(r'^rbac/', include(('rbac.urls', 'rbac'), namespace='rbac')),

Expand All @@ -15,4 +18,5 @@
url(r'^login/', views.login, name='login'),
url(r'^logout/', views.logout, name='logout'),
url(r'^index/', views.index, name='index'),
url(r'^$', views.login, name='login'),
]

0 comments on commit 52d2b11

Please sign in to comment.