使用复制器将WordPress网站传输到localhost后出错

时间:2017-11-18 21:11:42

标签: php wordpress

我将网站转移到localhost后出现以下错误请帮助

class AddPost(CreateView):
    model = Posts
    fields = ['post_title', 'post_content'
                ]
    success_url = '/directory/dashboard'

    def form_valid(self, form):
        form.instance.user = self.request.user
        return super(AddPost, self).form_valid(form)

0 个答案:

没有答案