django-vendor


Namedjango-vendor JSON
Version 0.4.19 PyPI version JSON
download
home_pageNone
SummaryDjango App Toolkit for selling digital and physical goods online.
upload_time2024-10-25 20:34:37
maintainerNone
docs_urlNone
authorRoberto Himmelbauer
requires_python>=3.7
licenseNone
keywords django app
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ![Django Vendor CI](https://github.com/renderbox/django-vendor/workflows/Django%20Vendor%20CI/badge.svg?branch=master)

![Django Vendor Develop](https://github.com/renderbox/django-vendor/workflows/Django%20Vendor%20Develop/badge.svg?branch=develop)

[![Documentation Status](https://readthedocs.org/projects/django-vendor/badge/?version=latest)](https://django-vendor.readthedocs.io/en/latest/?badge=latest)

# Django Vendor

Django App Toolkit for selling digital and physical goods online.

The philosophy is "Cart to Receipt".  What you put in the cart and what you do after the purchase is up to you.  The app is opinionated within scope.

Goals of the project:
- Drop in to existing Django Sites without requiring changes to how Django works (flow, not fight)
- Handle everything from the point of starting a purchase, until payment is complete.
- BYOPM, Bring Your Own Product Model.  Subclass your Product Model off of our base model and add whatever you want.  You are responsible for things like Catalogs and Presenting products to the user, we handle the purchasing of the products and generate a receipt you can look for.


## For Developers

*NOTE: It is reconmended that you first setup a virtual environment.*

To install the project, all you need to do is check out the project and run the following to install all the dependencies:

```bash
pip install -r requirements.txt
```

For developers, you'll need to also include a couple of dependencies that are only used in develop mode.  Run this from the root level of the project.

```bash
pip install -e .'[dev, authorizenet]'
```

To run the project, go into the develop folder:

To setup the models:

```bash
./manage.py migrate
```


Create the Super user

```bash
./manage.py createsuperuser
```


Then load the developer fixture if you want to pre-populate the cart & catalog

```bash
./manage.py loaddata developer
```

To run the project:

```bash
./manage.py runserver
```


to dump unit test data

```bash
./manage.py dumpdata --indent 4 auth.group --natural-foreign --natural-primary > fixtures/group.json
./manage.py dumpdata --indent 4 auth.user --natural-foreign > fixtures/user.json
./manage.py dumpdata --indent 4 -e contenttypes -e auth.permission -e sessions -e admin.logentry -e account.emailaddress -e auth.group -e auth.user > fixtures/unit_test.json
```



The install process
1) Add the app to your project
2) Create your Product model that inherits from the ProductModelBase base class.
3) Change the settings.py value for VENDOR_PRODUCT_MODEL to point to your model
4) Make migrations
5) Migrate


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "django-vendor",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "django, app",
    "author": "Roberto Himmelbauer",
    "author_email": "Grant Viklund <renderbox@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/63/30/f53c77e33deb8bae30a327f79ef3f977cadeba3a484a81fefdee770becc9/django_vendor-0.4.19.tar.gz",
    "platform": null,
    "description": "![Django Vendor CI](https://github.com/renderbox/django-vendor/workflows/Django%20Vendor%20CI/badge.svg?branch=master)\n\n![Django Vendor Develop](https://github.com/renderbox/django-vendor/workflows/Django%20Vendor%20Develop/badge.svg?branch=develop)\n\n[![Documentation Status](https://readthedocs.org/projects/django-vendor/badge/?version=latest)](https://django-vendor.readthedocs.io/en/latest/?badge=latest)\n\n# Django Vendor\n\nDjango App Toolkit for selling digital and physical goods online.\n\nThe philosophy is \"Cart to Receipt\".  What you put in the cart and what you do after the purchase is up to you.  The app is opinionated within scope.\n\nGoals of the project:\n- Drop in to existing Django Sites without requiring changes to how Django works (flow, not fight)\n- Handle everything from the point of starting a purchase, until payment is complete.\n- BYOPM, Bring Your Own Product Model.  Subclass your Product Model off of our base model and add whatever you want.  You are responsible for things like Catalogs and Presenting products to the user, we handle the purchasing of the products and generate a receipt you can look for.\n\n\n## For Developers\n\n*NOTE: It is reconmended that you first setup a virtual environment.*\n\nTo install the project, all you need to do is check out the project and run the following to install all the dependencies:\n\n```bash\npip install -r requirements.txt\n```\n\nFor developers, you'll need to also include a couple of dependencies that are only used in develop mode.  Run this from the root level of the project.\n\n```bash\npip install -e .'[dev, authorizenet]'\n```\n\nTo run the project, go into the develop folder:\n\nTo setup the models:\n\n```bash\n./manage.py migrate\n```\n\n\nCreate the Super user\n\n```bash\n./manage.py createsuperuser\n```\n\n\nThen load the developer fixture if you want to pre-populate the cart & catalog\n\n```bash\n./manage.py loaddata developer\n```\n\nTo run the project:\n\n```bash\n./manage.py runserver\n```\n\n\nto dump unit test data\n\n```bash\n./manage.py dumpdata --indent 4 auth.group --natural-foreign --natural-primary > fixtures/group.json\n./manage.py dumpdata --indent 4 auth.user --natural-foreign > fixtures/user.json\n./manage.py dumpdata --indent 4 -e contenttypes -e auth.permission -e sessions -e admin.logentry -e account.emailaddress -e auth.group -e auth.user > fixtures/unit_test.json\n```\n\n\n\nThe install process\n1) Add the app to your project\n2) Create your Product model that inherits from the ProductModelBase base class.\n3) Change the settings.py value for VENDOR_PRODUCT_MODEL to point to your model\n4) Make migrations\n5) Migrate\n\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Django App Toolkit for selling digital and physical goods online.",
    "version": "0.4.19",
    "project_urls": {
        "Bug Tracker": "https://github.com/renderbox/django-vendor/issues",
        "Homepage": "https://github.com/renderbox/django-vendor"
    },
    "split_keywords": [
        "django",
        " app"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6c542b1c9104ade3b57923779a8b98829a73d9ec085abd7f82870706f6a7dcc8",
                "md5": "4aa0441860c11985ebb4dabe873000df",
                "sha256": "5ba4d628ef8f905137b199b323bbb8aafa27a6628c2d2bb5f90aeb0fa9caa423"
            },
            "downloads": -1,
            "filename": "django_vendor-0.4.19-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "4aa0441860c11985ebb4dabe873000df",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": ">=3.7",
            "size": 198471,
            "upload_time": "2024-10-25T20:34:35",
            "upload_time_iso_8601": "2024-10-25T20:34:35.118580Z",
            "url": "https://files.pythonhosted.org/packages/6c/54/2b1c9104ade3b57923779a8b98829a73d9ec085abd7f82870706f6a7dcc8/django_vendor-0.4.19-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6330f53c77e33deb8bae30a327f79ef3f977cadeba3a484a81fefdee770becc9",
                "md5": "f68c5c47c3215e9f7a4b9008b6f36fcf",
                "sha256": "e924746895d412bb9a74f1ed9debb791e2ec4a71e1f990bc630f0d58a7ea45a5"
            },
            "downloads": -1,
            "filename": "django_vendor-0.4.19.tar.gz",
            "has_sig": false,
            "md5_digest": "f68c5c47c3215e9f7a4b9008b6f36fcf",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 137457,
            "upload_time": "2024-10-25T20:34:37",
            "upload_time_iso_8601": "2024-10-25T20:34:37.234449Z",
            "url": "https://files.pythonhosted.org/packages/63/30/f53c77e33deb8bae30a327f79ef3f977cadeba3a484a81fefdee770becc9/django_vendor-0.4.19.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-25 20:34:37",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "renderbox",
    "github_project": "django-vendor",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "django-vendor"
}
        
Elapsed time: 0.90133s