报错: django.core.exceptions.ImproperlyConfigured: Requested setting DEFAULT_INDEX_TABLESPACE, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing setting
实现子域名绑定网站子目录的方法有很多,比如可以用js跳转,可以用php实现,可以301跳转等,但最常用的应该是RewriteEngine方式了. 新建一个笔记本命名为.htaccess(在window操作系统之中无法这样直接命名),那么可以先随意命名上传到服务器之后再改名字为.hraccess. 在 .htaccess文件内容如下:(以yqltb.top域名为例) #开启url重写模式 RewriteEngine on #网站url伪静态匹配 DirectoryIndex in