mezzanine-vendors

A vendor catalog app for Mezzanine


Keywords
django, mezzanine
License
MIT
Install
pip install mezzanine-vendors==1.2.0

Documentation

Mezzanine Vendors

A Django / Mezzanine application to manage a vendor catalog. Features:

  • CSV imports
  • Uses the Google Maps API to determine coordinates from human-readable addresses
  • Categorize vendors by service type and subject

Install

  1. Add your Google Maps API Key in your settings.py as GOOGLE_MAPS_API_KEY
  2. Install via pip: pip install mezzanine-vendors.
  3. Add django_google_maps and import_export to INSTALLED_APPS.
  4. Also add vendors after them.
  5. Include vendors.urls in your root urlconf.
  6. Run migrations.
  7. Create Vendors, Subjects, and Types using the admin interface.
  8. Create your own views

Note: This package provides the models, admin, and a JSON endpoint that returns the vendors. You'll need to create your own frontend to display them.

Management Command

Run python manage.py add_vendor_locations to add coordinates to vendors that are missing them (for example, vendors added via admin import). This uses Google's GeoCoder API and will fail if the address cannot be parsed. It will also count towards the usage limit of your Google Maps API key.

Contributing

Review contribution guidelines at CONTRIBUTING.md.