我的项目名为homefood,当我运行server时,我得到了这个错误.任何人都有任何线索如何解决这个错误.
Page not found (404)
Request Method: GET
Request URL: http://127.0.0.1:8000/
Using the URLconf defined in homefood.urls, Django tried these URL patterns, in this order:
^foodPosts/
^admin/
The current URL, , didn't match any of these.
You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.
Run Code Online (Sandbox Code Playgroud)
我的settings.py文件看起来像这样......
import dj_database_url
"""
Django settings for homefood project.
# Build paths inside the project like this: …Run Code Online (Sandbox Code Playgroud) 我试图通过特定的theta旋转Rectangle2D对象.但是我不能这样做,因为Rectangle2D的方法转换(AffineTransform)是未定义的.有关如何做到这一点的任何想法?谢谢.
Rectangle2D.Double currentVehic = new Rectangle2D.Double(bottomLeft[0], bottomLeft[1],vehicWidth, vehicHeight);
// Rotate the vehicle perimeter about its center
AffineTransform rotate = new AffineTransform();
//Rectangle2D rotatedVehic = AffineTransform.getRotateInstance(theta,x,y);
rotate.setToRotation(theta, x, y);
currentVehic.transform(rotate);
return currentVehic;
Run Code Online (Sandbox Code Playgroud)