<div dir="ltr"><div>This is also on Stackoverflow: <a href="http://stackoverflow.com/questions/23411571/structuring-a-large-api-in-a-django-project">http://stackoverflow.com/questions/23411571/structuring-a-large-api-in-a-django-project</a></div>
<div><br></div><div>Right now I have a large project with an equally large API (done using django rest framework). The current structure is something like this:</div><div><br></div><div>api</div><div>|-----urls.py</div><div>
|-----models.py</div><div>|</div><div>----v1</div><div>    |-----views.py</div><div>    |-----serializers.py</div><div>    |-----permissions.py</div><div>    |-----tests.py</div><div><br></div><div>etc</div><div><br></div>
<div>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.</div>
<div><br></div><div>Does anyone have any experience with this and could provide guidance?</div></div>