On 12 March 2010 01:04, Robert <rob...@iteria.no> wrote: > There is a "View on site" link when you edit a user in admin. > > The link calls the url user/user_name but you have to make the url- > view configuration yourself apparently. > > I wonder if there is a "built-in" way to do this. I looked up an other > thread from 2006 that deals with the same question related to > "flatpages". The thread was started by Mary Adel. You may look it up > by searching with the keywords "View on site". > > It seems that the problem was solved by the recommendation: > > "Put (r'^r/', include('django.conf.urls.shortcut')), in your URLConf. > " > > This shortcut contains this line of code that seems to be on the right > track: > > (r'^(?P<content_type_id>\d+)/(?P<object_id>\d+)/$', > 'defaults.shortcut'), > > However django is not able to match this url. > > Is this supposed to work? > > Please advise. > > Thanks. > > Robert > > -- > 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. > >
http://docs.djangoproject.com/en/dev/ref/models/instances/#get-absolute-url http://docs.djangoproject.com/en/dev/ref/contrib/sites/#how-django-uses-the-sites-framework -- 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.