title: twillio sending message via Browser
body: <p>I have implemented a Django app for sending SMS via browser, The app is working fine when I have a custom message defined from the codes.
  The issue is that the view codes cannot read the message input from the browser for sending.</p>
  <p><strong>VIEWS CODE</strong></p>
  <pre><code>def pastor_send(request):  
    #recepient=Ministry.objects.all()
    template_name='corecode/pastor.html'
    if request.method=='GET':
      message=request.GET.get('sms')
      client = Client(settings.ACCOUNT_SID,settings.AUTH_TOKEN)
      message = client.messages \
                  .create(
                       body=message,
                       from_='+somenumber',
                       to='somenumber'
                   )
      return render(request,template_name)
    return HttpResponse(&quot;Message sent Succesfully&quot;,200)
  </code></pre>
  <p><strong>HTML CODE</strong></p>
  <pre><code>{%extends 'base.html'%}
  {% load crispy_forms_tags %}
  
  
  {%block title%}
      Send to Ministry Pastors
  {%endblock%}
  
  {%block content%}
  
  &lt;h4&gt;&lt;b&gt;Create the message here&lt;b&gt;&lt;/h4&gt;
  &lt;br&gt;
  &lt;form method='GET'&gt;
      
      &lt;textarea id=&quot;w3review&quot; name=&quot;sms&quot; rows=&quot;7&quot; cols=&quot;70&quot; value=&quot;{{request.GET.q}}&quot;&gt;
  
      &lt;/textarea&gt;
  &lt;br&gt;
  &lt;br&gt;
  
  &lt;a class=&quot;btn btn-primary&quot; href=&quot;{% url 'p-sms' %}&quot;&gt;&lt;i
  class=&quot;nav-icon fas fa-sms&quot;&gt;&lt;/i&gt; Send&lt;/a&gt;
          
  &lt;/form&gt;      
      
  {%endblock%}
  </code></pre>