Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 31.591.551 Times

django-postal 0.8

Company: Michael Thornhill
Date Added: June 18, 2013  |  Visits: 304


Report Broken Link
Printer Friendly Version

Product Homepage
Download (16 downloads)

The motivation behind this project is that most countries have different forms of<br />postal addresses e.g. ,<br /><br /><br />This app assumes that all postal addresses worldwide can be made up of 5 optional<br />address lines plus a country code.<br /><br />It then localizes the title of each line dependant on the country selected.<br />Further information on each address line can be gleaned from<br />django.contrib.localflavor fields and widgets e.g. for the UK<br /><br />from django import forms<br />from django.utils.translation import ugettext_lazy as _<br />from import UKPostcodeField, UKCountySelect<br /><br />from postal.forms import PostalAddressForm<br /><br />class GBPostalAddressForm(PostalAddressForm):<br /> line1 = forms.CharField(label=_(u"Company name"), required=False, max_length=50)<br /> line2 = forms.CharField(label=_(u"Street"), max_length=50)<br /> city = forms.CharField(label=_(u"Town"), max_length=50)<br /> state = forms.CharField(label=_(u"County"), widget=UKCountySelect, max_length=50)<br /> code = UKPostcodeField(label=_(u"Postcode"))<br /><br />It is hoped that various contributors will contribute address formats per country<br />and that eventually this address information could find it's way back in to<br />django.contrib.localflavor<br /><br /><br />Dependencies<br />============<br /><br />django-countries (<br /><br /><br />Developers, How to Contribute<br />==========<br />$ git clone<br />$ cd django-postal<br />$ virtualenv . --no-site-packages<br />$ source bin/activate<br />$ python<br />$ bin/buildout -v<br />$ bin/django syncdb<br />$ bin/test<br />$ bin/django runserver<br /><br />browse to http://localhost:8000<br /><br />new countries can be added to the src/postal folder by their<br />2 letter country code e.g. us<br /><br />Each country folder contains an and a<br /> contains the localized address<br /><br />Usage<br />=====<br /><br />1. Add django-countries and django-postal to your INSTALLED_APPS in<br />e.g.<br /><br />INSTALLED_APPS = (<br /> "countries",<br /> "postal",<br /> ...<br /> )<br /><br />2. In your view code import the code for getting a localized postal address<br /><br /><br />from postal.library import get_postal_form_class<br /><br />form_class = get_postal_form_class("us")<br />postal_form = form_class()<br /><br />3. Add postal_form to your templates<br /><br />some_template.html<br />{{postal_form}}<br /><br />4. In this case we will have a US postal form<br /><br /><br />How to use localized addresses<br />==============================<br /><br />Address localisation is turned on by default.<br />To turn off Address l10n: in set<br />::<br /> POSTAL_ADDRESS_L10N = False<br /><br /><br />Customize address labels and requirement<br />----------------------------------------<br /><br />If you wish to customize the address labels and whether the address line is<br />required or not, you can add the following variables to<br />::<br /> POSTAL_ADDRESS_LINE1, POSTAL_ADDRESS_LINE2, POSTAL_ADDRESS_CITY, POSTAL_ADDRESS_STATE, POSTAL_ADDRESS_CODE<br /><br />each of these variables is set to a tuple of the format ('label', True/False)<br />'label' is used to label the field, and the second boolean value sets whether<br />the field is required or not, e.g.<br />::<br /> POSTAL_ADDRESS_LINE1 = ("Department", True)<br /><br />TODO<br />====<br /><br />1. Create method of allowning third party app to register a localized postal form<br /> a) Registry match with regular expressions cf<br /> b) admin site approach<br /><br />2. Templatetag for modifying a form in a template<br /> e.g. {{postal_form|localize:country_code}}<br /><br />BUILD HISTORY<br />=============<br /><br />0.4<br />Don't enforce uniqueness on postal addresses<br /><br /><br />#md5=0c98764f527dcbbea646d3f0bf57ce4a

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Address Addresses Bindjango Countries Country Djangopostal Field Folder Import Information Labels Localisation Localized Max Length Postal Postal Address Line Settingspy Turned Variables
Users rating: 0/10

License: Freeware Size: 10.24 KB
Modules  -  Education Field 5.x-1.x-dev 1.0
It contains fields for school, state, country, degree, field of study, dates attended, and activities. Its usefulness is mainly when used as a multiple field, allowing users to submit multiple entries for the various schools they have...
Modules  -  Audio recording field 6.x-1.0-beta1
Audio recording field supplies a CCK field for recording audio, directly through the user's browser, while in the site.For the recording task, this module uses a java applet, called ListenUp by javasonic. In order to use the module you need to...
10 KB  
Modules  -  Employment Field 5.x-1.x-de
D6 version: I don't plan to port to D6. You are encouraged to try out CCK's experimental 'content multigroup' module instead to make your own custom multi-value fieldgroups. 'Content Multigroup' can be found in CCK's 'modules' directory - follow...
10 KB  
Screen Savers  -  Country of Turkey Folder Icons for Mac OS 1.0
Cultural icons from Turkey. You will see Turkish coffee, RakA±, tea, soccer player, weightlifter, Turkish flag, Turkey map, whirling dervish, nazar boncuk, evil eye bead, Turkey calligraphy icon. You can share at your blog posts or social...
10.1 MB  
Multimedia  -  Stargate Atlantis Computer DHD Simulator for Graphics and Animations 2.1
This is a simulation of the Stargate Atlantis Dial Home Device. The DHD is release edition only for now and therefore the source code is not included.Lets get onto the fun stuff; what it can do:- Easy to configure via XML files - a whole bunch of...
1.27 MB  
Science  -  NLSO-ADDRESS, Global Address Database 1.0
An address & contact manager designed to use UNICODE & link the the NLSO-WEB system to share NON-PERSONAL address data This will enable the creation of applications which can print an address in English & Hebrew, or English & Chinese for example
7.09 MB  
Network Monitors  -  LanSpy 2.0
LanSpy is a network security scanner, which allows getting different information about computer: Domain and NetBios names, MAC address, Server information, Domain and Domain controller information, Remote control, Time, Discs, Transports, Users,...
1.06 MB  
Networking Tools  -  Network Query Tool 1.9
Network Query Tool is a one-stop solution for obtaining information about a domain name or an IP address. Instead of manually using a variety of shell commands, or visiting numerous websites to investigate a host, just load Network Query Tool in...
15.36 KB  
Calendars & Scheduling Tools  -  WinPIM 11.51.3271
WinPIM - there is fierce competition out there in the field of personal information management but WinPIM remains one of the best due to it's simple multi-user system and perfect balance between attractive interface and poweful features....
Utilities  -  Barix Simple Paging 2.09
Make Public Address Announcements over your network ? Simple Use your iPhone or iPad to make crisp and clear Public Address announcements throughout your facility, or in specific zones. With automatic discovery, full status...
819.2 KB  
Linux Software  -  wpCache® WordPress HTTP Cache 1.9
wpCache® is a high-performance, distributed object, caching system application, generic in nature, but intended for use in speeding up dynamic web applications, by decreasing database load time. wpCache® decreases dramatically the page...
3.51 MB  
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Linux Software  -  SLAX 6.0+
Slax is a modern, portable, small and fast Linux operating system with a modular approach and outstanding design. Despite its small size, Slax provides a wide collection of pre-installed software for daily use, including a well organized graphical...
190 KB  
Network & Internet  -  Free WiFi Hotspot 3.3.1
Free WiFi Hotspot is a super easy solution to turn your laptop or notebook into a portable Wi-Fi hotspot, wirelessly sharing your internet connections like DSL, Cable, Bluetooth, Mobile Broadband Card, Dial-Up, etc. through the built-in wireless...
1.04 MB  
Network & Internet  -  Easy Uploads 1.8
Easy uploads is a file storage media streaming application designed by Filestreamers that allows you to upload, store, and stream your files from their virtually unlimited file storage server. Easy Uploads can backup,share, and stream your files...
615.97 KB  
Network & Internet  -  IPv6 CARE 3.2b
IPv6 CARE, "IPv6 Compliant Automatic Runtime Environment", is a Linux tool able to patch ipv6-agnostic programs on-the-fly ('patch' mode). It can also generate a diagnosis about the IPv6 compliance of an application ('check' mode).
409.6 KB  
Network & Internet  -  PacketFence ZEN 3.1.0
PacketFence is a fully supported, trusted, Free and Open Source network access control (NAC) system. Boosting an impressive feature set including a captive-portal for registration and remediation, centralized wired and wireless management, 802.1X...
1024 MB  
Network & Internet  -  django-dbstorage 1.3
A Django file storage backend for files in the database.
10.24 KB