Django url给出错误

时间:2017-10-25 04:07:26

标签: python django

嘿,当我尝试运行我的Django服务器时,我收到此错误 " django.core.management.base.SystemCheckError:SystemCheckError:系统检查发现了一些问题:

pip install numpy

"

我不知道出了什么问题。

ERRORS:
?: (urls.E004) Your URL pattern [<RegexURLPattern help_viewer ^help/$>, <RegexURLPattern help_viewer ^help/(\w+)$>, <RegexURLPattern contact ^contact/$>, <RegexURLPattern xml ^api/xml$>, <RegexURLPattern calendar ^calendar(?:.ics)?$>, <RegexURLPattern index ^$>, <RegexURLPattern quick_login ^quick_login$>, <RegexURLPattern update_indi ^update_indi$>, <RegexURLPattern settings ^settings$>, <RegexURLPattern event_list ^event_list$>, <RegexURLPattern member_list ^member_list/$>, <RegexURLPattern member_list ^member_list/(\d+)/$>, <RegexURLPattern team_list ^team_list/$>, <RegexURLPattern team_list ^team_list/(\d+)/$>, <RegexURLPattern join_team ^join_team$>, <RegexURLPattern view_team ^teams/(\d+)/$>, <RegexURLPattern update_team ^teams/(\d+)/update/$>, <RegexURLPattern edit_chapter ^edit_chapter$>, <RegexURLPattern chapter_info ^chapter_info$>, <RegexURLPattern member_fields ^member_fields/(\w+)?$>, <RegexURLPattern attendance ^attendance$>, <RegexURLPattern chapter_list ^config/chapter_list$>, <RegexURLPattern edit_events ^config/events/(MS|HS)/$>, <RegexURLPattern eventset_list ^config/eventsets/$>, <RegexURLPattern edit_eventset ^config/eventsets/(\d+)/$>, <RegexURLPattern tsa.events.views.login_view ^accounts/login/$>, <RegexURLPattern tsa.events.views.logout_view ^accounts/logout/$>, <RegexURLPattern tsa.events.views.create_account ^accounts/create/$>, <RegexURLPattern tsa.events.views.request_chapter ^accounts/request_chapter/$>, <RegexURLPattern tsa.events.views.reset_password ^accounts/reset/$>] is invalid. Ensure that urlpatterns is a list of url() instances.
events.SystemLog.text: (fields.E121) 'max_length' must be a positive integer.
events.SystemLog.type: (fields.E121) 'max_length' must be a positive integer.

2 个答案:

答案 0 :(得分:1)

urlpatterns列表末尾有一个悬空的逗号。

答案 1 :(得分:0)

最后有一个额外的,(逗号),删除它并尝试。