Errors encountered

  1. AT NoReverseMatch /
    'Blog' IS not A Registered namespace
    Solution:
    urls App application name was not added to the application
    app_name = 'blog'
raise ImproperlyConfigured('mysqlclient 1.3.13 or newer is required; you have %s.' % Database.__version__)

Solution:

Found Python36-32 \ Lib \ site-packages \ django \ db \ backends \ mysql \ base.py file to file as the code comments if version Python installation Road King <(1, 3, 3): raise ImproperlyConfigured ( "mysqlclient 1.3.3 or newer is required; you have% s"% Database .__ version__)

2.'Specifying a namespace in include() without providing an app_name is not supported. Set the app_name attribute in the included module, or pass a 2-tuple containing the list of patterns and app_name instead.'查找错误出处,为conf.py文件

Resolve as follows:

path('order/',include('order.urls,namespace='order'),#订单模块,改为

path('order/',include(('order.urls','order'),namespace='order')),#订单模块

Guess you like

Origin www.cnblogs.com/venvive/p/12014334.html