Senex Shop
Project description
Requirements
Requires a Stripe.js account: Currently Senex Shop only supports Stripe as a payment backend. As such the setting is permanently required. Once more payment backends are added this will be configurable in the admin.
Packages
Add the following to your requirements.txt:
Django==1.7.5 django-braces==1.4.0 django-model-utils==2.0.3 easy-thumbnails==2.2 pytz==2014.4 django-senex-shop==0.2.2
Settings
Configure your Settings:
MIDDLEWARE_CLASSES = (
'...',
'senex_shop.cart.middleware.CartMiddleware',
'...',
)
TEMPLATE_CONTEXT_PROCESSORS = (
'...',
'senex_shop.core.context_processors.get_default_shop',
'...',
)
INSTALLED_APPS = (
'...',
'localflavor',
'easy_thumbnails',
'senex_shop',
'senex_shop.cart',
'senex_shop.contact',
'senex_shop.checkout',
'senex_shop.core',
'senex_shop.custom',
'senex_shop.discounts',
'senex_shop.news',
'senex_shop.shipping',
)
########## THUMBNAIL CONFIGURATION
# See: http://easy-thumbnails.readthedocs.org/en/latest/ref/settings/
THUMBNAIL_BASEDIR = 'thumbs'
########## END THUMBNAIL CONFIGURATION
from os import environ
########## STRIPE CONFIGURATION
# See: http://django-stripe-payments.readthedocs.org/en/latest/installation.html
STRIPE_PUBLIC_KEY = environ.get("STRIPE_PUBLIC_KEY", "pk_test_publickey")
STRIPE_SECRET_KEY = environ.get("STRIPE_SECRET_KEY", "sk_test_privatekey")
########## END STRIPE
URLs:
url(r'^checkout/', include('senex_shop.checkout.urls')),
url(r'^cart/', include('senex_shop.cart.urls')),
url(r'^shop/', include('senex_shop.urls')),
url(r'^account/', include('custom_auth.urls')),
Finally:
Run ./manage.py migrate Run ./manage.py createsuperuser
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-senex-shop-0.3.3.tar.gz
(65.2 kB
view details)
File details
Details for the file django-senex-shop-0.3.3.tar.gz.
File metadata
- Download URL: django-senex-shop-0.3.3.tar.gz
- Upload date:
- Size: 65.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7aceb7eb0838fe409ed547f685901a12ba1f91028f116c7c7795c5bff73ed99d
|
|
| MD5 |
228e6e3728af6545cda61ebfaae5df48
|
|
| BLAKE2b-256 |
c7fedb55ce47f1b6b65ebf68534995b640d6d3a44013c8c7069b097db111f63d
|