Re: Page not found (404).Please check i am unable to run server.It is showing error

2018-05-26 Thread Dmitry Sobolev
Tell us please how to rout to "/" I tried like this: path('/', admin.site.urls) and got the syntax error пятница, 25 мая 2018 г., 21:40:17 UTC+3 пользователь Fidel Leon написал: > > You may not realize it, but that's how Django works. > > From your server log: > *[25/May/2018 22:44:15] "GET /polls

main page have stopped work after creating poll app

2018-05-26 Thread Dmitry Sobolev
Hello guys! I am doing 1st steps in Django. Started 1st tutorial page 3 times from there and getting the same case each time. After that, I created a working "poll app" that works under 127.0.0.1:8000/polls/ the main address stop working where should I see the problem of this problem and make mai

Re: main page have stopped work after creating poll app

2018-05-26 Thread Dmitry Sobolev
e polls app. суббота, 26 мая 2018 г., 15:00:04 UTC+3 пользователь Dmitry Sobolev написал: > > Hello guys! > I am doing 1st steps in Django. > Started 1st tutorial page 3 times from there and getting the same case > each time. > After that, I created a working "poll app&q

Re: Page not found (404).Please check i am unable to run server.It is showing error

2018-05-26 Thread Dmitry Sobolev
so why the main page begins to work when we commenting this stroke even If we DON'T have an url which routes to "/" ? пя

Re: Page not found (404).Please check i am unable to run server.It is showing error

2018-05-26 Thread Dmitry Sobolev
gt; polls.urls: > > > from . import views > from django.urls import path > > urlpatterns = [ > path('', views.index, name='index'), > ] > > ‘’ Because Django removes 'http://127.0.0.1:8000/polls/ ' > > Regards, > > Sam >