Re: urls
I think your case is #2 in
https://docs.djangoproject.com/en/dev/topics/http/shortcuts/#redirect
------------
skype: masdero, icq: 473891447, yim: mas_dero, msn: mas_dero@hotmail.com
------------
Mi scriva in italiano; Write me in English; Skribu al mi Esperante!
On Thu, Jul 14, 2011 at 10:13, NISA BALAKRISHNAN
<snisa.balakrishnan@gmail.com> wrote:
> i am new to django.
>
> i have a very simple question.
> wht is the url i need to give to httpresponseredirect() to load my
> home page with url http://127.0.0.1:8000/
> my urls.py looks like dis:
>
> urlpatterns = patterns('',
> # Examples:
> url(r'^$', 'person.views.home', name='home'),
> url(r'^edit/$', 'person.views.edit', name='edit'),
>
> #url(r'^persons/$', 'person.views.index', name='index'),
> # url(r'^mysite/', include('mysite.foo.urls')),
>
> # Uncomment the admin/doc line below to enable admin
> documentation:
> # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
>
> # Uncomment the next line to enable the admin:
> url(r'^admin/', include(admin.site.urls)),
>
>
> )
>
> --
> You received this message because you are subscribed to the Google Groups "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home