Re: Please check

2020-01-10 Thread RONAK JAIN
Please help me out what can I write code in views? On Fri, Jan 10, 2020 at 4:58 PM RONAK JAIN wrote: > > I am doing save data in form but models inside foreign key how can I save > data in my form? > > > > Sharing screen shorts please check. > > > > -- You

Re: is this my correct results.html and detail.html code?i am only a beginer, please check

2018-06-07 Thread C. Kirby
Everything that TonyF said, but also - your choice.votes|pluralize tag will not work - tags need to be all on online from open to closing braces On Wednesday, June 6, 2018 at 1:01:05 PM UTC-4, Avitab Ayan Sarmah wrote: > > results.html: > > {{ question.question_text }} > > > {% for choice in que

Re: is this my correct results.html and detail.html code?i am only a beginer, please check

2018-06-06 Thread 'Anthony Flury' via Django users
I can't see anything necessarily wrong in terms of most browsers but it isn't strictly compliant with the HTML standards. To be strict HTML, your html files should be including *html* and *body* tags as a minimum. The *html* tag starts and end the html file - in theory browsers are entitled

is this my correct results.html and detail.html code?i am only a beginer, please check

2018-06-06 Thread Avitab Ayan Sarmah
results.html: {{ question.question_text }} {% for choice in question.choice_set.all %} {{ choice.choice_text }} -- {{ choice.votes }} vote{{ choice.votes|pluralize }} {% endfor %} vote again? detail.html: {{ question.question_text }} {% if error_message %}{{ error_message }}{% endif %}

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