On Thu, May 1, 2014 at 9:29 PM, Cezar Jenkins <[email protected]>wrote:
> Right now I have a large project with an equally large API (done using > django rest framework). The current structure is something like this: > > api > |-----urls.py > |-----models.py > | > ----v1 > |-----views.py > |-----serializers.py > |-----permissions.py > |-----tests.py > > etc > > As you can guess, the views.py file is pretty big and I want to refactor > this out. Currently I have a few options in front of me, the one I'm > leaning towards is to put an 'api/v1' package into each app and use the api > app to tie all the urls together and hold views that don't fall into an app. > If the only pain point is the big views file, then why not just refactor that into multiple files under 'v1' itself - nothing is stopping you from doing that. -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAN7tdFT0BAG5XoKoiavKr7v24DqSQTc7D%2Bq5EY7Wgoh_VzvzeA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

