小编use*_*093的帖子

找不到Django 404错误页面

我的项目名为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)

python django django-urls http-status-code-404

8
推荐指数
1
解决办法
5万
查看次数

转换Rectangle2D java

我试图通过特定的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)

java swing transform

1
推荐指数
1
解决办法
1650
查看次数