解决RuntimeError: You called this URL via POST, but the URL doesn’t end in a slash and you have APPEND

  • Post author:
  • Post category:其他


urlpatterns = [

url(r’^$’, post_test_views.index, name=’home’),

url(r’^java/’, post_test_views.java, name=’java’),

url(r’^java_1/’, post_test_views.java_1, name=’java_1’),

url(r’^admin/’, admin.site.urls),

url(r’^aiml/’, aiml_interface_views.java_1),

url(r’^aiml_html/’, aiml_interface_views.java),]

访问时不应该访问ip/aiml,而应该访问ip/aiml/

少了一个斜杠



版权声明:本文为weixin_40930415原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。