This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description
django SHOP - Multiple Currencies

This app adds support for multiple currencies to django SHOP.


Do not use (yet)!
This app is still under development and might not work at all.


This requires django SHOP to work (

* Add `shop_multiplecurrencies` to your INSTALLED_APPS in your
* Add `shop_multiplecurrencies.middleware.MultipleCurrenciesMiddleware` to your
* Add a list of currencies to the `SHOP_CURRENCIES` setting like so


SHOP_CURRENCIES=[ # lowercase codes, please
['chf', 'swiss franc'],
['eur', 'euro'],


* Add a MultipleCurrenciesField to your product model


from django.db import models
from shop_multiplecurrencies.fields import MultipleCurrenciesField
from shop.util.fields import CurrencyField

class MyProduct(models.Model):
# my fields ...
price = MultipleCurrenciesField(CurrencyField)

The model will in our example have two fields: `price_chf` and `price_eur`.

* Extend BaseOrder with an additional field that tells us which currency the order was completed in


from django.conf import settings
from shop.models.defaults.bases import BaseOrder
from shop.models.defaults.managers import OrderManager

class MyOrder(BaseOrder):
currency = models.CharField(max_length=6, choices=settings.SHOP_CURRENCIES)
objects = OrderManager()

def save(self, *args, **kwargs):
self.currency = get_currency()
super(MyOrder, self).save(*args, **kwargs)

class Meta(object):
abstract = False

* Use the currency template filter in your templates to prefix the price with the correct currency


{% load currency %}

<p>This product's price is {{ price|currency }}</p>
Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-shop-multiplecurrencies-1.0.0.tar.gz (3.0 kB) Copy SHA256 Checksum SHA256 Source Sep 12, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting