semvec/pypi-packages huggingface dataset:
django-postalcodes-light 0.2.1
Postal code management (without the PostGIS requirement).
License: BSD License

Django Postal Codes
===================

A simple data model for storing postal codes with placenames and location.

.. image:: https://badge.fury.io/py/django-postalcodes-light.svg
    :target: https://badge.fury.io/py/django-postalcodes-light

Installing
----------

The recommended installing method is with `pip`::

    pip install django-postalcodes-light

You can also clone the repository and install from source::

    python setup.py install

Getting data
------------

Postal code data is available from a number of sources, typically on a country
by country basis. The United States Census Bureau maintains the `Gazetteer
database <http://www.census.gov/geo/www/gazetteer/gazette.html>`_, including
detailed postal code data. The `GeoNames geographical database
<http://download.geonames.org/export/zip/>`_ also provides postal code data
for international postal codes (and other places).

This project uses the column names specified by GeoNames and includes a
management to import and update data from GeoNames::

    python manage.py import_postalcodes US

Additional files can be imported by specifying each country code. Multiple
country codes may be provided on one line, e.g.::

    python manage.py import_postalcodes FR IT
wagtail-utphy-richdocument 0.7.5
A Wagtail richdocument content type built with wagtail streamfield.
License: BSD License
Keywords: wagtail

utphy richdocument
==================

This is a wagtail app to be applied on wagtail generic docs.
It adds the following streamfield blocks:

- doc_byline
- body_text
- quote
- bustout
- code_chunk
- math_formula
- table
- media_embed

Dependencies
------------

- wagtail_

.. _wagtail: https://wagtail.io

Quick Start
-----------
install from pypy::

    pip install wagtail-utphy-richdocument

add "utphy_richdocument" and "wagtail.contrib.table_block" to your INSTALLED_APPS setting::

    INSTALLED_APPS = [
        ...
        'wagtail.contrib.table_block',
        'utphy_richdocument',
    ]

* In your own app create a new model which subclasses the StreamFieldDoc model.

*models.py*::

    from utphy_richdocument.models import StreamFieldDoc
    from wagtail.wagtailadmin.edit_handlers import StreamFieldPanel

    class YourModel(StreamFieldDoc):
        template = 'path_to_your_template.html'

        content_panels = Page.content_panels + [
            # your_model_fields
            StreamFieldPanel('body'),
    ]

* In your template, make sure you have the following snippet:

*path_to_your_template.py*::

    {% for block in self.body %}
      {{block}}
    {% endfor %}

Finally run::

    python manage.py collectstatic
    python manage.py makemigrations
    python manage.py migrate