Different urls.py file for different apps

2012-05-22 Thread siddharth56660
Hi, I am developing an ERP system which is vast and covers many modules. After developing each module i create another app for second module by " django-admin.py startapp myapp2 " This is perfectly working fine. But my urls.py is growing very fast and has crossed more than 5000 lines with lot more

Re: Different urls.py file for different apps

2012-05-22 Thread Alexandr Aibulatov
you could include urls of app into your_app/urls.py urlpatterns = patterns('', (r'your_app/', include('your_apps.urls')) (r'your_app2/', include('your_apps2.urls')) ) 2012/5/22 siddharth56660 : > Hi, > I

Re: Different urls.py file for different apps

2012-05-22 Thread Andy McKay
Use include to pull in values from other apps inside your urls.py https://docs.djangoproject.com/en/dev/topics/http/urls/#including-other-urlconfs On Tue, May 22, 2012 at 11:49 AM, siddharth56660 wrote: > Hi, > I am developing an ERP system which is vast and covers many modules. > After developi