跳转到主要内容

django-oscar的REST API模块

项目描述

本包为django-oscar提供RESTful API。

https://travis-ci.org/django-oscar/django-oscar-api.svg?branch=master Coverage Documentation Status Latest PyPi release

用法

要在Oscar电子商务网站上使用Oscar API应用程序,请按照以下步骤操作

  1. 安装django-oscar-api包(pip install django-oscar-api)。

  2. rest_frameworkoscarapi添加到INSTALLED_APPS

    INSTALLED_APPS = [
     ...
     'rest_framework',
     'oscarapi',
    ]
  3. 将应用程序的URL添加到您的urlconf中

    from django.urls import include
    
    urlpatterns = (
        # all the things you already have
        path("api/", include("oscarapi.urls")),
    )
  4. 应用迁移

    python manage.py migrate

查看文档获取更多信息,以及查看变更日志以获取发行说明。

项目详情


下载文件

下载适用于您平台的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。

源分发

django-oscar-api-3.3.0.tar.gz (45.8 kB 查看散列)

上传时间

构建分发

django_oscar_api-3.3.0-py3-none-any.whl (62.6 kB 查看散列)

上传时间 Python 3

由以下机构支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面