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

11. Adding your app back in

Ben Lopatin1 
(1)
New York, NY, USA
 
Extracting your app from your project entails several steps:
  1. 1.

    Refactoring the app

     
  2. 2.

    Moving it to a top-level namespace (if necessary)

     
  3. 3.

    Removing it from the project

     

Step three leaves you with a conundrum if you want to continue using the app in your original project(s). Unless you have no need for your new standalone app or, as may be the case in some instances, you need to keep an original, un-refactored source in your project, you’ll need to include the new standalone app in the project or projects that spawned it.

Verifying locally

The first step is to verify integration using your project ...

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.