{% extends 'base.html' %} {% block title %}Markets — Admin{% endblock %} {% block content %}
Admin Portal

Markets

← Back to portal

The registered physical markets pickers are based out of — starting with Dar es Salaam. A B2C picker picks their market at signup (or from their profile), which sets their base location from here instead of hand-placing a pin. Hiding a market stops it from being offered to new/editing pickers without deleting its data.

Add a market

{% csrf_token %}

Shown to the picker when a product is tied to this specific market — helps them actually find it once they're nearby, especially in a crowded market where a map pin alone isn't enough.

{% for c in categories %} {% endfor %}

Shown instead of the market name wherever a product is tagged with this market — leave blank to just show the name as text.

Bulk import via CSV

Columns: Region, Market Name & Location, Primary Focus / Notes, Latitude, Longitude (or lowercase region, name, notes, lat, lng). A row whose name already exists updates it instead of duplicating it.

{% csrf_token %}
{% for market in markets %} {% empty %} {% endfor %}
MarketRegionCoordinatesStatus
{% if market.logo_url %}{% endif %} {{ market.name }} {% if market.notes %}
{{ market.notes|truncatechars:80 }}{% endif %} {% if market.category_list %}
{{ market.category_list|join:", " }}{% endif %}
{{ market.region|default:"—" }} {{ market.lat }}, {{ market.lng }} {% if market.is_active %}Active{% else %}Hidden{% endif %}
{% csrf_token %}
No markets yet — add one above or import a CSV.
{% endblock %} {% block extra_scripts %} {% endblock %}