django-installable-skeleton-1.0.0
توضیحات
Installable django site skeleton
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | django-installable-skeleton-1.0.0 |
| نام | django-installable-skeleton |
| نسخه کتابخانه | 1.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/realpython |
| آدرس اینترنتی | https://pypi.org/project/django-installable-skeleton/ |
| مجوز | MIT |
django-receipts
===============
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:
.. code-block:: bash
$ pip install realpython-django-receipts
Edit your `settings.py` file to include `'receipts'` in the `INSTALLED_APPS`
listing.
.. code-block:: python
INSTALLED_APPS = [
...
'receipts',
]
Edit your project `urls.py` file to import the URLs:
.. code-block:: python
url_patterns = [
...
path('receipts/', include('receipts.urls')),
]
Finally, add the models to your database:
.. code-block:: bash
$ ./manage.py makemigrations receipts
The "project" Branch
--------------------
The `master branch <https://github.com/realpython/django-receipts/tree/master>`_ contains the final code for the PyPI package. There is also a `project branch <https://github.com/realpython/django-receipts/tree/project>`_ which shows the "before" case -- the Django project before the app has been removed.
Docs & Source
-------------
* Article: https://realpython.com/installable-django-app/
* Source: https://github.com/realpython/django-receipts
* PyPI: https://pypi.org/project/realpython-django-receipts/
نیازمندی
| مقدار | نام |
|---|---|
| >=2.2 | Django |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl django-installable-skeleton-1.0.0:
pip install django-installable-skeleton-1.0.0.whl
نصب پکیج tar.gz django-installable-skeleton-1.0.0:
pip install django-installable-skeleton-1.0.0.tar.gz