As Remco said your problem are with your pattern because starts with $ or have ^$
[projectname]/ ├── [projectname]/ │ ├── __init__.py │ ├── settings.py │ ├── urls.py <-- The error is here │ └── wsgi.py └── manage.py└── blog/
└── __init__.py
└── models.py
└── managers.py
└── views.py
└── urls.py
In the urls.py do you have somethig like this ?
urlpatterns = patterns('',
url(r'^$', include('blog.urls')), <-- The error is here
url(r'^admin/', include(admin.site.urls)),
)
2015-09-23 13:16 GMT-06:00 sankar vasu <sankarmcp13@gmail.com>:
Sankar BThanks in advanceDear Luis,As you said, i tried but can't success.--On Wed, Sep 23, 2015 at 12:29 AM, Luis Zárate <luisza14@gmail.com> wrote:--2015-09-22 12:48 GMT-06:00 sankar vasu <sankarmcp13@gmail.com>:<h1><a href="{% url "post_detail" pk=post.pk %}">{{ post.title }}</a></h1>
try:
<h1><a href="{% url "post_detail" post.pk %}">{{ post.title }}</a></h1>If not found then check your project url.py , do you have something like
urlpatterns = [
url(r'^$', include('myapp.urls') ),
....
]--"La utopía sirve para caminar" Fernando Birri
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAG%2B5VyPXAjmyVWj5jJzvX70%2BE0%3DLaAaXW4DpvoUdyLqrONxOpA%40mail.gmail.com.
--By,
Sankar
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPzi0vD5xRApko4TJnXAtBm9R7xfOmpcRbObh8Pyjg6TSHa%2Bfw%40mail.gmail.com.
--
"La utopía sirve para caminar" Fernando Birri
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAG%2B5VyOOryjyV%2BpdMson%2BX3X3uxySuFh1FsEwyZfQoyoiG3Lkg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment