How to Install and Use the Django Expense App

A cousin of mine wanted to use the Django-expense app that I shared a few weeks back, so here are the instructions I sent him.

Step 0:
Get python

Step 1:
Install the required modules using the below requirement.txt

asgiref==3.3.1
cycler==0.10.0
Django==3.1.7
git+https://github.com/sukhbinder/django-exp.git@b699077cc0846dbe40dfd1b2a17c1c164d1bc0aa#egg=django_exp
djangorestframework==3.12.2
et-xmlfile==1.0.1
kiwisolver==1.3.1
matplotlib==3.2.0
numpy==1.20.1
openpyxl==3.0.7
pandas==1.2.3
Pillow==8.1.2
pyparsing==2.4.7
python-dateutil==2.8.1
pytz==2021.1
six==1.15.0
sqlparse==0.4.1
xlrd==2.0.1

pip install -f requirements.txt

Step 2:
Create a new Django project

django-admin startproject expensesite

expensesite can be any name you want to call the website

cd expensesite

Step 3:

In the settings.py

INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    # Add these two lines
    'rest_framework',
    'exp',
]

Step 4:

python manage.py makemigrations
python manage.py migrate

Step 5:

python manage.py runserver

This should launch the website.

Code as always is available at my github repo

One thought on “How to Install and Use the Django Expense App

  1. Pingback: Rendering Matplotlib Graphs in Django | SukhbinderSingh.com

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s