This content originally appeared on DEV Community and was authored by Joe ???????
Now that our Django project is set up, it’s time to add an app—the heart of your financial tracker!
1. What Is a Django App?
A “Django app” is a module that handles a specific feature (like tracking transactions). Projects can have many apps.
2. Create the Tracker App
Run this command:
python manage.py startapp tracker
Your folder now includes tracker/
with:
-
models.py
: Data models -
views.py
: Request handlers -
admin.py
: Admin settings
3. Register the App
Open config/settings.py
and add 'tracker',
to INSTALLED_APPS
:
INSTALLED_APPS = [
# ...default apps
'tracker',
]
4. Why Register?
This lets Django know to include your app’s models, views, and admin features.
Next up: designing the models for your tracker!
This content originally appeared on DEV Community and was authored by Joe ???????