Skip to main content

Fakejira installable django app

Project description

This is sample code used in the Real Python article [Writing an Installable Django App](???). The article describes how to take an app from an existing Django project and make it a stand-alone installable package avilable on PyPI.

Installable App

This app models a list of items on a receipt. Each item has a description and a cost. A receipt may reference multiple items.

This app can be installed and used in your django project by:

$ pip install django-fakejira-testing-app-1

Edit your settings.py file to include ‘fakejira1’ in the INSTALLED_APPS listing.

INSTALLED_APPS = [
    ...

    'fakejira1',
]

Edit your project urls.py file to import the URLs:

url_patterns = [
    ...

    path('/', include('fakejira1.urls')),
]

Finally, add the models to your database:

$ ./manage.py migrate fakejira1

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-fakejira-final-app-1-0.1.tar.gz (22.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page