{"id":20827275,"url":"https://github.com/realpython/django-receipts","last_synced_at":"2025-05-06T20:43:33.842Z","repository":{"id":57421536,"uuid":"252319120","full_name":"realpython/django-receipts","owner":"realpython","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-31T01:05:45.000Z","size":34,"stargazers_count":17,"open_issues_count":0,"forks_count":19,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-01T09:40:15.931Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/realpython.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-02T00:41:43.000Z","updated_at":"2025-04-09T10:15:40.000Z","dependencies_parsed_at":"2024-07-30T15:47:49.548Z","dependency_job_id":"512ea3b7-43dc-49bc-95b5-fdae73cdb2b4","html_url":"https://github.com/realpython/django-receipts","commit_stats":{"total_commits":11,"total_committers":2,"mean_commits":5.5,"dds":0.09090909090909094,"last_synced_commit":"c4e4a7fbe7664bbb1e5bba53b0084e3e26295469"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realpython%2Fdjango-receipts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realpython%2Fdjango-receipts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realpython%2Fdjango-receipts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realpython%2Fdjango-receipts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/realpython","download_url":"https://codeload.github.com/realpython/django-receipts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252768986,"owners_count":21801373,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T23:11:37.883Z","updated_at":"2025-05-06T20:43:33.780Z","avatar_url":"https://github.com/realpython.png","language":"Python","readme":"django-receipts\n===============\n\nThis is the sample code used in the Real Python article `How to Write an\nInstallable Django App \u003chttps://realpython.com/installable-django-app/\u003e`_. The\narticle describes how to take an app from an existing Django project and make\nit a stand-alone installable package available on PyPI.\n\nInstallable App\n---------------\n\nThis app models a list of items on a receipt. Each item has a description and a cost. A receipt may reference multiple items.\n\nThis app can be installed and used in your Django project with:\n\n.. code-block:: bash\n\n    $ pip install realpython-django-receipts\n\n\nEdit your `settings.py` file to include `'receipts'` in the `INSTALLED_APPS`\nlisting.\n\n.. code-block:: python\n\n    INSTALLED_APPS = [\n        ...\n\n        'receipts',\n    ]\n\n\nEdit your project `urls.py` file to import the URLs:\n\n\n.. code-block:: python\n\n    url_patterns = [\n        ...\n\n        path('receipts/', include('receipts.urls')),\n    ]\n\n\nFinally, add the models to your database:\n\n\n.. code-block:: bash\n\n    $ ./manage.py makemigrations receipts\n\n\nThe \"before\" project\n--------------------\n\nThe `before folder \u003chttps://github.com/realpython/django-receipts/000_before\u003e`_ shows the \"before\" case -- the Django project before the app was made installable.\n\n\nDocs \u0026 Source\n-------------\n\n* Article: https://realpython.com/installable-django-app/\n* Source: https://github.com/realpython/django-receipts\n* PyPI: https://pypi.org/project/realpython-django-receipts/\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealpython%2Fdjango-receipts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frealpython%2Fdjango-receipts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealpython%2Fdjango-receipts/lists"}