Skip to content

Latest commit

 

History

History
60 lines (41 loc) · 1.19 KB

README.md

File metadata and controls

60 lines (41 loc) · 1.19 KB

shoestring

A very simple ecommerce solution for Django

Installation

Requires Python3 and Postgresql

Install package and requirements:

$ pip install shoestring
$ pip install shoestring/requirements.txt

Start a Django project:

$ django-admin startproject shop
$ cd shop

Add shoestring apps to INSTALLED_APPS

$ vi shop/settings.py

INSTALLED_APPS = [
  ...
  'shoestring',
  'shoestring.accounts',
  'shoestring.products',
  'shoestring.orders',
  'shoestring.payments',
  'easy_thumbnails',
]

Use our User model:

AUTH_USER_MODEL = 'accounts.User'

Add default easy-thumbnails settings:

THUMBNAIL_ALIASES = {
    '': {
        'product-list': {
            'size': (90, 120),
            'upscale': True,
            'crop': 'auto'
        },
    },
}

The current theme expects to find uikit in staticfiles at shoestring/uikit/

Hook in the urls:

$ vi shop/urls.py

url(r'^shop/', include('shoestring.urls', namespace='shoestring')),

Prime the database

$ ./manage.py syncdb
...
$ ./manage.py runserver