๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
studies/Back-end

[Django] url 404 ์—๋Ÿฌ ํ•ด๊ฒฐํ•˜๊ธฐ

by Vada Kim 2020. 11. 27.
728x90
๋ฐ˜์‘ํ˜•

Page not found (404)

Using the URLconf defined in mysite.urls, Django tried these URL patterns, in this order:

The empty path 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.

 

์—๋Ÿฌ ๋ฌธ๊ตฌ์ด๋‹ค.

 

 

ํ•ด๊ฒฐ:

urlpatterns = [
    # (r'^dramarama/', include('dramarama.urls')),
    path('admin/', admin.site.urls),
    path('', include('dramarama.urls')),
]
urlpatterns = [
    path('', views.index, name='index'),
]

์ง„์ด ์™ ๋น ์ง„๋‹ค.. ๋ช‡์‹œ๊ฐ„์„ ํ•ด๋งธ๋‹ค.

๊ฐ™์€ ์ฝ”๋“œ์ธ๋ฐ ๋˜๋‹ค ์•ˆ๋ฌ๋‹ค๊ฐ€...

728x90
๋ฐ˜์‘ํ˜•