Skip to content

macagua/django-localflavor-ve

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 

Repository files navigation

Django Local Flavor For Venezuela

A Django localflavor For Venezuela.

  • A field that accepts a 'classic' NNNN Zip Zone Code.
  • A field that validates 'Cédula de Identidad' (DNI) numbers.
  • A field that validates a Register Tax Information (Registro Único de Información Fiscal - RIF) issued by SENIAT.
  • A field that validates as Venezuelan phone postal code.
  • A Select widget that uses a list of Venezuelan regions as its choices.
  • A Select widget that uses a list of Venezuelan states as its choices.

Download the source code:

$ git clone git://github.com/macagua/django-local-flavor-ve.git

Install the source code adding the ve module to your PYTHONPATH environment variable:

$ cd django-local-flavor-ve
$ export PYTHONPATH=$PWD

On windows you may want to use set PYTHONPATH=%CD%

Test your installation with the following commands from a Python shell:

$ python
>>> from ve import forms
>>> dir(forms)
>>> exit()

Cloned sources includes an example project. To try it out run:

$ cd django-local-flavor-ve/example
$ python manage.py runserver

Now that the server's running, visit http://127.0.0.1:8000/example/ with your Web browser. You'll see a "A Form example for Venezuelan localflavor" page. Then It worked!

You can see an example to use the Venezuelan Local Flavor in your Django projects here.

  • Django 1.2.4 and Python 2.6
  • Add full support to ISO-3166-2:VE regulations.
  • Write tests for all fields

Releases

No releases published

Packages

No packages published

Languages