DEV Community

Joe
Joe

Posted on

Setting Up Django: Your Financial Tracker Starts Here

Setting Up Django: Your Financial Tracker Starts Here

Welcome to Part 2 of my Django financial tracker series! In this post, we'll go from zero to a working Django project—you'll be ready to code in minutes.


1. Create a Python Virtual Environment

A virtual environment keeps your dependencies isolated.

Run these commands in your project folder:

python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
Enter fullscreen mode Exit fullscreen mode

2. Install Django

Install Django inside your virtual environment:

pip install django
Enter fullscreen mode Exit fullscreen mode

3. Start Your Django Project

In your folder, run:

django-admin startproject config .
Enter fullscreen mode Exit fullscreen mode

Your folder should now look like:

config/
    __init__.py
    settings.py
    urls.py
    asgi.py
    wsgi.py
manage.py
Enter fullscreen mode Exit fullscreen mode

4. What Are These Files?

  • manage.py: Django's command-line utility
  • config/: Project settings, URLs, and core files

That’s it! You’ve got a Django project ready to go.

Next up: creating the core tracker app.


Top comments (0)