hi
I was trying out the weblog app in bennet's book.I created some
categories and entries and can list them properly using
http://127.0.0.1:8000/myblog/
and
http://127.0.0.1:8000/myblog/categories


The admin interface also lists the categories properly when I try
http://127.0.0.1:8000/admin/myblog/category/

But when I go to the Change Category page for a category and try the
view site button ,it takes me to http://example.com/categories/someslug/
instead of my localhost.I couldn't figure out why this is
happening.Can someone help?
thanks
harry


p.s:
I have set the get_absolute_url to return
 "/categories/%s/"%self.slug in Category and
"/harryblog/%s/%s/"% (self.pub_date.strftime("%Y/%b/%d").lower
() ,self.slug) in Entry.

In the project urls file I have set these patterns:
(r'^admin/', include(admin.site.urls)),
(r'^harryblog/categories/',include('myblog.urls.categories')),
(r'^harryblog/',include('myblog.urls.entries')),






http://example.com/categories/meditation/

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to