I asked you to make changes in templates (i.e. home.html, about.html
etc.) and not urls.py.
Post by Avnesh Shakyahi pankaj, i have got again error same......
if i change....
from django.conf.urls.defaults import *
urlpatterns= patterns('myapp.views',
url(r'^$','home',name="home"),
url(r'^about/$','about',name="about"),
url(r'^contact/$','contact',name="contact"),
url(r'^contact/$','archive',name="archive"),
)
its to
from django.conf.urls.defaults import *
urlpatterns= patterns('myapp.views',
url(r'^$','home',name="home"),
url(r'^$','about',name="about"),
url(r'^$','contact',name="contact"),
url(r'^$','archive',name="archive"),
)
then it's not generating error but that links are not opening.....
thanks
Post by Pankaj SinghHey Avnesh,
In your templates you have written following lines
<a href="{% url home %}">home</a><a href="{% url about %}">about</a><a href="{% url archive %}">archive</a><a href="{% url contact %}">contact</a>
Change them to following, notice single quotes surrounding url pattern name
<a href="{% url 'home' %}">home</a><a href="{% url 'about' %}">about</a><a href="{% url 'archive' %}">archive</a><a href="{% url 'contact' %}">contact</a>
Sincerely,
Pankaj Singh
http://about.me/psjinx
On Tue, Feb 19, 2013 at 4:06 PM, Avnesh Shakya <
On Tue, Feb 19, 2013 at 3:47 PM, Avnesh Shakya <
Post by Avnesh Shakyaya i have completed and i m just doing copy n paste from from
tutorial but there is no error but i m facing this error again n again...
https://www.udemy.com/full-django-tutorial/#lecture/63701/question/9902
can i add my page for help. i need your help plz..
On Tue, Feb 19, 2013 at 3:39 PM, Thomas Weholt <
Post by Thomas WeholtIt means you haven't added any url matching / in your urlconfig, but
it's hard to give a good answer without a bit more information. Have
you completed the django tutorial which explains how these things
work?
Thomas
On Tue, Feb 19, 2013 at 11:04 AM, Avnesh Shakya <
Post by Avnesh ShakyaHello, I'm stuck in teplagte page......... error is occuring
here after
Post by Avnesh Shakyarunserver..
error..
NoReverseMatch at / Reverse for '' with arguments '()' and
keyword
Post by Avnesh Shakyaarguments '{}' not found.
I can't figure out why I'm getting the error, plz tell me, i
have totally
Post by Avnesh Shakyaconfused here.
thanks
avnesh shakya
--
You received this message because you are subscribed to the
Google Groups
Post by Avnesh Shakya"Django users" group.
To unsubscribe from this group and stop receiving emails from
it, send an
Post by Avnesh ShakyaTo post to this group, send email to
Visit this group at
http://groups.google.com/group/django-users?hl=en.
Post by Avnesh ShakyaFor more options, visit
https://groups.google.com/groups/opt_out.
--
Mvh/Best regards,
Thomas Weholt
http://www.weholt.org
--
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,
To post to this group, send email to
Visit this group at
http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
--
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,
Visit this group at
http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
--
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,
Visit this group at
http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
--
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,
Visit this group at http://groups.google.com/group/django-users?hl=en
.
For more options, visit https://groups.google.com/groups/opt_out.
Groups "Django users" group.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.