ive and iptables shows no restrictions e.g.
>> > everything is allowed
>> > How could I debug this?
>> >
>> >
>> > On Wednesday, April 15, 2020 at 12:27:21 AM UTC+2, Markus Grossniklaus
>> > wrote:
>> >>
>> >> a) I worked
:
> >>
> >> a) I worked the whole tutorial down to the bottom of part 3
> >> b) I connect with the browser to http://127.0.0.1:8000/polls/
> >> c) the result is: NoReverseMatch at /polls/
> >> d) all project data are attached to this
>>
>> a) I worked the whole tutorial down to the bottom of part 3
>> b) I connect with the browser to http://127.0.0.1:8000/polls/
>> c) the result is: NoReverseMatch at /polls/
>> d) all project data are attached to this POST in mysite.zip
>> e) I think it cann
, Markus Grossniklaus
wrote:
>
> a) I worked the whole tutorial down to the bottom of part 3
> b) I connect with the browser to http://127.0.0.1:8000/polls/
> c) the result is: NoReverseMatch at /polls/
> d) all project data are attached to this POST in mysite.zip
> e) I think it can
ro/tutorial04/). When I run
>>> my website and go to the url:http://localhost:8000/polls/1/vote/, I am
>>> greeted with an exception:
>>>
>>> NoReverseMatch at /polls/1/vote/
>>> value: u'polls' is not a registered namespace
>>>
>>&
You should read the links
https://docs.djangoproject.com/en/2.1/intro/tutorial03/#namespacing-url-names
https://stackoverflow.com/questions/14892462/django-error-upolls-is-not-a-registered-namespace
https://stackoverflow.com/questions/30935053/noreversematch-at-polls-1-vote
Suresh
On Thu, 21
greeted with an exception:
>>
>> NoReverseMatch at /polls/1/vote/
>> value: u'polls' is not a registered namespace
>>
>>
>>
>> It seems strange that 'polls' is not a registered namespace because it is
>> the name of my django appl
Hi James,
That was it! thanks a bunch for pointing that out.
cheers,
Jack
On Sunday, October 4, 2015 at 11:03:03 PM UTC+2, James Schneider wrote:
>
> > This is my mysite/url,py
> >
> > from django.contrib import admin
> >
> > urlpatterns = [
> > url(r'^admin/', include(admin.site.urls)),
>
just remove ,namespace = "polls"
>
>
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email
The problem is that you dont have any url that has the poll id as
parameter.
So django cant find it
2015-10-04 22:02 GMT+01:00 James Schneider :
> > This is my mysite/url,py
> >
> > from django.contrib import admin
> >
> > urlpatterns = [
> > url(r'^admin/', include(admin.site.urls)),
> >
> This is my mysite/url,py
>
> from django.contrib import admin
>
> urlpatterns = [
> url(r'^admin/', include(admin.site.urls)),
> url(r'^polls/', include('polls.urls',namespace = "polls")),
> ].
>
Oh, yep, there's the problem. You added a namespace called 'polls' but you
aren't referencin
wrote:
>
> My guess it's that your polls/urls.py file is not being processed/included
> properly since none of your URL patterns were even tried.
>
> What does your mysite/urls.py file look like?
>
> -James
> On Oct 4, 2015 12:35 PM, "jahan" > wrote:
>
My guess it's that your polls/urls.py file is not being processed/included
properly since none of your URL patterns were even tried.
What does your mysite/urls.py file look like?
-James
On Oct 4, 2015 12:35 PM, "jahan" wrote:
> Hi James,
>
> This is the error
>
&
Hi James,
This is the error
NoReverseMatch at /polls/1/
Reverse for 'detail' with arguments '(1,)' and keyword arguments '{}' not
found. 0 pattern(s) tried: []
Request Method: GET Request URL: http://localhost:8000/polls/1/ Django
Version: 1.8.4 Exception
Can you paste the entire error?
Also, read through the error page, it should show you which line is causing
the problem.
-James
On Oct 4, 2015 9:24 AM, "jahan" wrote:
> Hi Django group,
>
> I'm following the tutorial and get stuck on *part 3, Removing hardcoded
> URLs in templates*
>
> I read t
Hi Django group,
I'm following the tutorial and get stuck on *part 3, Removing hardcoded
URLs in templates*
I read through the topics that discuss this, but can't find the issue in my
case.
my *detail.html* template looks like
{{ question.question_text }}
{% for choice in question.choice_se
>
> I agree that the typo is also an issue and should be fixed, but that
>> wouldn't result in the OP's error, since reverse() is complaining about a
>> 'detail' URL specifically. The typo would result in a similar error when
>> the result page is displayed, and would show 'guestion' as one of the
On Saturday, 9 May 2015 05:05:00 UTC+1, James Schneider wrote:
>
> I agree that the typo is also an issue and should be fixed, but that
> wouldn't result in the OP's error, since reverse() is complaining about a
> 'detail' URL specifically. The typo would result in a similar error when
> the res
I agree that the typo is also an issue and should be fixed, but that
wouldn't result in the OP's error, since reverse() is complaining about a
'detail' URL specifically. The typo would result in a similar error when
the result page is displayed, and would show 'guestion' as one of the
kwargs.
-Jam
HM,
Upon a closer look at your code (views.results), you have this:
return render(request, 'polls/results.html', {'guestion': question})
You are passing "guestion" (with a G) to the template instead of "question"
(with a Q).
As such, your template complains when you try to use "question.id" bec
Sorry, James is right, your problem is like James described.
Sorry for the noise I read again and see that I understood bad your problem.
Sorry
El viernes, 8 de mayo de 2015, Luis Zárate escribió:
> Which urls.py you paste here? The project URLs or the app urls .?
>
> It is because you are usin
Which urls.py you paste here? The project URLs or the app urls .?
It is because you are using namespace in the url reverse so you need to
named in your project's URLs and put the code paste here in your app urls.
El jueves, 7 de mayo de 2015, James Schneider
escribió:
> I'm guessing the issue is
I'm guessing the issue is actually in your template if you are following
along that page. None of the code in your views would generate that error
from what I can see.
The error indicates that you are trying to reverse('polls:detail') and not
providing any arguments for the URL resolver (or are pa
I am on part 4 django tutorial. The tutorial is very good and I easily get
on part 4 but
I get error: Reverse for 'detail' with arguments '('',)' and keyword
arguments '{}' not found. 1 pattern(s) tried:
[u'polls/(?P\\d+)/$']
Am I missing something?
My code is following:
urlpatterns = pa
om/en/1.6/intro/tutorial04/). When I run my
> website and go to the url:http://localhost:8000/polls/1/vote/, I am
> greeted with an exception:
>
> NoReverseMatch at /polls/1/vote/
> value: u'polls' is not a registered namespace
>
>
>
> It seems strange that
://localhost:8000/polls/1/vote/, I am greeted
with an exception:
NoReverseMatch at /polls/1/vote/
value: u'polls' is not a registered namespace
here is templates/polls/detail.html:
{{ poll.question }}
{% if error_message %}{{ error_message }}{% endif %}
<
{{ choice.choice_text
lenty results but none of them seems
to be related exactly to this situation or maybe it is over my head to
understand what is going on.
When I visit http://127.0.0.1:8000/polls/ i get
NoReverseMatch at /polls/
Reverse for 'detail' with arguments '(1,)' and keyword arguments '
plenty results but none of them seems
to be related exactly to this situation or maybe it is over my head to
understand what is going on.
When I visit http://127.0.0.1:8000/polls/ i get
NoReverseMatch at /polls/
Reverse for 'detail' with arguments '(1,)' and keyword argum
understand what is going on.
When I visit http://127.0.0.1:8000/polls/ i get
NoReverseMatch at /polls/
Reverse for 'detail' with arguments '(1,)' and keyword arguments '{}' not found.
Request Method: GET
Request URL:http://127.0.0.1:8000/polls/
Django Ve
I am doing poll application
at last stage i got an error :
Reverse for 'polls/poll_results' with arguments '()' and keyword
arguments '{'object_id': 1L}' not found.
please help me
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this
30 matches
Mail list logo