10 2019 档案

摘要:在settting里面这样配置ALLOWED_HOSTS = ["*"]# Application definitionINSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contentt 阅读全文
posted @ 2019-10-15 18:07 赵伟航 阅读(431) 评论(0) 推荐(0) 编辑
摘要:from django.urls import path, re_pathfrom django.conf import settingsfrom django.views.static import serve re_path(r'^media/(?P<path>.*)$', serve, {'document_root': settings.MEDIA_ROOT}), 阅读全文
posted @ 2019-10-08 15:14 赵伟航 阅读(603) 评论(0) 推荐(0) 编辑