Sub Applications in Django.
Django is awesome. But when you are maintaining a huge project apps gets annoying.
Like, Your Project have a Dashboard app. Settings App, Ice cream App. Where you never use Settings,Ice cream outside of Dashboard.
In this case this application architecture looks more good.
| Main_App_____
|
--- Dashboard_App
|
------- Settings_App
|
------- Ice_cream_App
You can do this in django by going to an app and typing django-admin.py startapp AppName
Then Include App in settings.py by
INSTALLED_APPS = (
'Application.SubApplication', #Where In Example it is Dashboard.Settings
)
That's it!
Written by Debashis Dip
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Python
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#