尝试为django应用实施String url = "http://stackoverflow.com/questions/33056097/save-html-file-into-internal-storage-using-okhttp-lib#";
OkHttpClient client = new OkHttpClient();
final String url = sharedText;
Request request = new Request.Builder()
.url(url)
.build();
client.newCall(request).enqueue(new Callback() {
@Override
public void onFailure(Request request, IOException e) {
Log.e("APp", e.toString());
}
@Override
public void onResponse(Response response) throws IOException {
if(response.isSuccessful()){
output = response.body().string();
//You can then save the output in your database
}else {
//You can return an error since the response was not successful
Log.e("APp", "Error");
}
}
});
。
我想覆盖一些django authentication
视图。
我应该直接在auth
编辑文件,还是有更好的方法来覆盖它?
请问,如果问题需要更清晰。