© Ben Lopatin 2020
B. LopatinDjango Standalone Appshttps://doi.org/10.1007/978-1-4842-5632-9_2

2. Structuring standalone Django apps

Ben Lopatin1 
(1)
New York, NY, USA
 

Beyond the scope of functionality that you include in your standalone Django app, at a more practical level, you’ll also need to structure the code for reuse. There’s little fundamentally different about the structure of a standalone Django app from a Django app embedded directly in your Django project’s codebase. However, there are several practices you’ll want to follow to maximize the usability of your app. We’ll look at those in this chapter.

Django apps as Python modules

Let’s reiterate that a Django app, standalone or otherwise, is a Python package. That is, it’s made up of multiple ...

Get Django Standalone Apps: Learn to Develop Reusable Django Libraries now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.