On Tue, Feb 17, 2009 at 7:44 PM, Tasmania <[email protected]> wrote: > > Hi there, > I have one single application that has building up functionalities so > views.py has grown and it's getting big. The application is running > fast, but I'd like to partitionate views.py (i.e. putting some > functions in a different file, etc) can I do that in Django? > > Thanks! > > T > > > > a) Yes you can keep views wherever you want, but in keeping with the views convention you could make views a directory and make multiple files there (plus an __init__.py file) and map the urls to the new address correctly. b) by the time you get to this point it usually indicates that you're doing too much in one application, checkout James' video on making your apps reusable: http://www.youtube.com/watch?v=A-S0tqpPga4
Alex -- "I disapprove of what you say, but I will defend to the death your right to say it." --Voltaire "The people's good is the highest law."--Cicero --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---
