{% extends "base.html" %} {% block content %}

Import Creators

Campaign: {{ campaign.title }}
Back
{# Flash messages #} {% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %} {% endfor %} {% endif %} {% endwith %}
Upload CSV
This will (1) upsert creators into the master database and (2) link them to this campaign.
Supported columns: handle,name,profile_link,followers_k,genre,location,language,category
Required: handle (recommended also name).
Cancel
{# Optional: show import report summary from backend #} {% if import_report %}
Import Summary
Total rows: {{ import_report.total or 0 }}
Created: {{ import_report.created or 0 }} Updated: {{ import_report.updated or 0 }} Linked to Campaign: {{ import_report.linked or 0 }} Skipped: {{ import_report.skipped or 0 }} {% if import_report.failed %} Failed: {{ import_report.failed }} {% endif %}
{% if import_report.errors and import_report.errors|length %}
Errors ({{ import_report.errors|length }})
{% for e in import_report.errors %} {% endfor %}
Row Handle Error
{{ e.row or '-' }} {{ e.handle or '-' }} {{ e.error or '-' }}
{% endif %}
{% endif %}
CSV Format
Paste this into a file named creators.csv and upload. Handles can be with or without @.
handle,name,profile_link,followers_k,genre,location,language,category @creator1,Creator One,https://instagram.com/creator1,120.5,Lifestyle,Chennai,English,Female @creator2,Creator Two,https://youtube.com/@creator2,85.0,Tech,Bengaluru,English,Male

Important Notes
  • handle is used as the unique key to update/insert in master DB.
  • If a creator already exists, details are updated (followers, link, etc.).
  • Imported creators will also be added/linked to this campaign automatically.
{% endblock %}