Skip to content

A very simple ecommerce solution for Django

Notifications You must be signed in to change notification settings

danifus/shoestring

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A very simple ecommerce solution for Django

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 66.7%
  • HTML 22.8%
  • JavaScript 10.5%