Thank you, Jani!
What you said is exactly what I want to know. I didn't distinguish the dev 
environment and product environment. And I have fixed it now.

Guang 

在 2013年6月26日星期三UTC+8下午8时07分39秒,Jani Tiainen写道:
>
> On Wed, 26 Jun 2013 04:40:26 -0700 (PDT) 
> yang guang <yg5...@gmail.com <javascript:>> wrote: 
>
> > HI, all 
> > I'm a beginner of django. 
> > Here I start a project named mysite. And I can browse it with 
> > http://127.0.0.1:8000. But now I want to change it to 
> > http://127.0.0.1:8000/mysite/ and stll keep my url mapping as 
> url(r'^$', 
> > 'index') instead of (r'^mysite/$', 'index'). Because there are some 
> other 
> > apps in the project. 
> > 
> > Could anyone help me figure it out? Thanks in advance. 
>
> When running Django devserver and connecting to it directly there is a 
> little you can do. 
>
> In real case you'll have some server to keep django up and running and 
> there you have option to use suburls as you want to. But it requires 
> setting up real frontend server like nginx, apache or similiar. 
>
> -- 
>
> Jani Tiainen 
>
> "Impossible just takes a little longer" 
>

-- 
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+unsubscr...@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.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to