{% extends "base.html" %} {% load static %} {% block title %}{% if object %}Edit Channel - {{ object.name }}{% else %}Add New Channel{% endif %}{% endblock %} {% block content %}

{% if object %}Edit Channel{% else %}Add New Channel{% endif %}

Channel Information
{% csrf_token %}
{{ form.name }} {% if form.name.errors %}
{{ form.name.errors.0 }}
{% endif %}
{{ form.channel_type }} {% if form.channel_type.errors %}
{{ form.channel_type.errors.0 }}
{% endif %}
{{ form.description }} {% if form.description.errors %}
{{ form.description.errors.0 }}
{% endif %}
{{ form.is_active }} {% if form.is_active.errors %}
{{ form.is_active.errors.0 }}
{% endif %}
{{ form.priority }} {% if form.priority.errors %}
{{ form.priority.errors.0 }}
{% endif %}
{{ form.rate_limit }} {% if form.rate_limit.errors %}
{{ form.rate_limit.errors.0 }}
{% endif %}
{{ form.timeout }} {% if form.timeout.errors %}
{{ form.timeout.errors.0 }}
{% endif %}
Retry Configuration
{{ form.retry_attempts }} {% if form.retry_attempts.errors %}
{{ form.retry_attempts.errors.0 }}
{% endif %}
{{ form.retry_delay }} {% if form.retry_delay.errors %}
{{ form.retry_delay.errors.0 }}
{% endif %}
{{ form.backoff_strategy }} {% if form.backoff_strategy.errors %}
{{ form.backoff_strategy.errors.0 }}
{% endif %}
Channel Configuration
Cancel
Help & Guidelines

  • SMTP Host: Your email provider's SMTP server
  • Port: Usually 587 for TLS, 465 for SSL
  • Security: Use TLS for modern servers
  • Authentication: Required for most providers
Common Providers:
Gmail: smtp.gmail.com:587
Outlook: smtp-mail.outlook.com:587

  • Provider: Choose your SMS service provider
  • From Number: Your registered sender number
  • API Key: Your provider's API key
  • API Secret: Additional authentication if required
Note: Ensure your sender number is verified with your provider

  • URL: The endpoint to receive notifications
  • Method: HTTP method (usually POST)
  • Content Type: Format of the payload
  • Headers: Additional HTTP headers in JSON format
Example Headers:
{"Authorization": "Bearer token", "X-API-Key": "key"}

  • Rate Limit: Maximum messages per hour
  • Retry Attempts: Number of retry attempts on failure
  • Retry Delay: Initial delay between retries
  • Backoff: How delay increases with each retry
Recommended: 3 retries with exponential backoff
{% endblock %} {% block js %} {% endblock %}