Skip to content

Python/Django Sample application for the Tradenity eCommerce REST API

Notifications You must be signed in to change notification settings

tradenity/camerastore-python-django-sample

Repository files navigation

CameraStore Python/Django sample application for Tradenity ecommerce API

This is a sample application for Tradenity ecommerce API using the Python SDK with django to build ecommerce web application

To run it on your local machine:

Prerequisites

  • Python 2.7

Get the application

Choose one of the following:

  • Download the source code.
  • Clone git clone [email protected]:tradenity/camerastore-python-django-sample.git
  • Fork this repository

Create store and load sample data

  • If you are not yet registered, create a new Tradenity account.
  • After you login to your account, go to Getting started page, click "Create sample store", this will create a new store and populate it with sample data
  • From the administration side menu, choose "Developers" > "API Keys", you can use the default key or generate a new one.

Edit Credentials

From the previous step, copy the SecretKey and use it as your API Key.

Open tradenity_python_django_sample.settings, modify this line:

Configuration.API_KEY = 'sk_xxxxxxxxxxxxxxxxx'

to reflect your store's API key.

If you configured your store to use stripe for payment processing, then edit this line:

STRIPE_PUBLIC_KEY = 'pk_xxxxxxxxxxxxxxxxxxxxxxxxxx' to reflect your public key.

Install requirements

pip install -r requirements.txt

Run

python manage.py runserver

About

Python/Django Sample application for the Tradenity eCommerce REST API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published