Skip to content

endthestart/django-senex-shop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published