Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
django shipping tools
Python JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
shipping
templates
.gitignore
MANIFEST.in
Makefile
README.md
__init__.py
manage.py
requirements-dev.txt
requirements.txt
settings.py
settings_test.py
setup.py
urls.py

README.md

django-shipping

Django Shipping is a django application that provides integration with Correios (federal brazilian carrier) and UPS (international carrier).

Installation

Anyway, let's install this bitch! The first thing you'll want to do is run:

$ pip install django-shipping

Put shippging in your INSTALLED_APPS:

# settings.py

INSTALLED_APPS = (
    # ...
    'shipping',
)

Put shipping.urls in your urls.py:

# urls.py

from django.conf.urls.defaults import patterns, include, url

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # ...

    url(r'^shipping/', include('shipping.urls')),
    url(r'^admin/', include(admin.site.urls)),
))

You need to run shipping migrations. We use south for this, go to your project dir and make:

$ python manage.py migrate shipping

Using

Now, start your django application and go to admin:

$ python manage.py runserver

In django's admin you wi'll see the shipping models: Zone, Country, State, Bin, UPSCarrier and CorreiosCarrier. You need to create one instance for each carrier that you'll use for shipping.

Something went wrong with that request. Please try again.