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

2018-05-26 Thread Dylan Reinhold
You asked how to map admin to root. So yes it is correct then when you go to the root if you are not loged in you will get he admin sign on. If your goal was to map the polls application to root, then put the admin back to the way it was path('admin/', admin.site.urls), And change polls to path('

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

2018-05-26 Thread Dmitry Sobolev
in this case removing "admin/" from url pattern I get the login page? Is that right? Where is the 1st page with the rocket?

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

2018-05-26 Thread Samuel Brunel
Hi, mysite.urls: from django.contrib import admin from django.urls import path from django.urls import include urlpatterns = [ path('polls/', include('polls.urls')), # To route to ‘/' path('', admin.site.urls), ] http://127.0.0.1:8000 : Route to admin urls

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
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

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

2018-05-25 Thread 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/ HTTP/1.1" 200 166* You tried to open http://127.0.0.1:8000/polls/ and it WORKED (status 200) *[25/May/2018 22:44:18] "GET /polls/1/ HTTP/1.1" 200 461* You tried to open http://127.0.

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

2018-05-25 Thread Avitab Ayan Sarmah
It should prompt a page for Question and last published On Fri 25 May, 2018, 11:08 PM Daniel Hepper, wrote: > What would you expect the server to display for that URL? > > — Daniel > > Am 25.05.2018 um 19:18 schrieb Avitab Ayan Sarmah : > > In my windoes powershell: > > PS C:\Users\AVITABAYAN\my

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

2018-05-25 Thread Daniel Hepper
What would you expect the server to display for that URL? — Daniel > Am 25.05.2018 um 19:18 schrieb Avitab Ayan Sarmah : > > In my windoes powershell: > > PS C:\Users\AVITABAYAN\mysite> python manage.py runserver > Performing system checks... > > System check identified no issues (0 silenced).

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

2018-05-25 Thread Avitab Ayan Sarmah
In my windoes powershell: PS C:\Users\AVITABAYAN\mysite> python manage.py runserver Performing system checks... System check identified no issues (0 silenced). May 25, 2018 - 22:42:50 Django version 2.0.1, using settings 'mysite.settings' Starting development server at http://127.0.0.1:8000/ Quit