下午所有人,
我有一个post模型,它有一个歌曲名称,歌曲字符串字段和一个user_id字段。用户可以创建不超过10,000个字符的新歌。现在,当保存一首短歌时,它可以完整地显示所有内容,但是当用户输入一首长歌时,比如超过400个字符,它似乎会切断大部分显示,只显示大约200个字符,编辑时也是如此,添加歌曲的其余部分后,它仍然会将其切断。数据库是Mysql,并在控制台中签入,它似乎也没有保存完整的条目。歌曲以键盘格式编写,例如E T W RTREW | WEER。我已经用谷歌搜索过了,但没有找到任何类似的东西。
我的代码如下;
post.rb
class Post < ActiveRec
我正在使用Swiftmailer发送电子邮件。我安装了+ "guzzlehttp/guzzle":"^6.3“+ "swiftmailer/swiftmailer":"^6.0”。
我为它创建了控制器和路由。但是它发出了“对未定义方法Swift_SmtpTransport::newInstance()的调用”。请检查我的代码,并指导我如何修复它?非常感谢
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Mail
我的java类中有以下代码
import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;
@Path("/hello")
public class Hello {
//This method is called is TEXT_PLAIN is request
@GET
@Produces(MediaType.TEXT_PLAIN)
public String sayPlainTextHello(){
return "Hello World";
}
我的views.py中有一个用http响应构造的方法
# # content-type of response
response = HttpResponse(content_type='application/ms-excel')
# #decide file name
response['Content-Disposition'] = 'attachment; filename="ThePythonDjango.xls"'
#adding new sheets and data