Django - include app urls

前端 未结 5 1657
余生分开走
余生分开走 2021-02-20 01:48

I have the following structure (Django 1.4):

containing_dir/
    myproject/
        myapp1/
        myapp2/
        myapp3/

myproject, myapp1,

5条回答
  •  囚心锁ツ
    2021-02-20 02:27

    Try:

    urlpatterns = [
        ...
        url(r'^app_name/', include('app_name.urls', namespace='project_name'))
        ...
    ]
    

提交回复
热议问题