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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-fakejira-final-app-1-0.1.tar.gz
.
File metadata
- Download URL: django-fakejira-final-app-1-0.1.tar.gz
- Upload date:
- Size: 22.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5e0ae9e540e91753e925c7612d58daed4ccb7ad47827741370d07a62dd0f675 |
|
MD5 | 2e6122b2feb71ad4a517400d685bfed9 |
|
BLAKE2b-256 | 122dc10e7fdd11617c7055f3a6a7549b901e0e8e67812f323639e7a3c2872b13 |