title: "Uncaught SyntaxError: Unexpected identifier" in Javascript in Django Template
body: <p>I'm building a <strong>Django Weather App</strong>, where there is a search input field and and by writing city name in input we can get weather details in console for now. But when typing any city name in input form, its showing <code>"Uncaught SyntaxError: Unexpected identifier"</code> error in console. I am unable to debug this error. </p>
  
  <p>models.py</p>
  
  <pre><code>class City(models.Model):
      name = models.CharField(max_length=100)
  
      def __str__(self):
          return self.name
  </code></pre>
  
  <p>forms.py</p>
  
  <pre><code>class CityForm(forms.ModelForm):
      class Meta:
          model = City
          fields = ('__all__')
  </code></pre>
  
  <p>urls.py</p>
  
  <pre><code>urlpatterns = [
  path('ajax5',views.ajax5view)
  ]
  </code></pre>
  
  <p>views.py</p>
  
  <pre><code>def ajax5view(request):
      return render (request,'ajax5.html')
  </code></pre>
  
  <p>ajax5.html</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  {% load staticfiles %}
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;title&gt;Title&lt;/title&gt;
      &lt;script src = "https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"&gt;
     &lt;/script&gt;
      &lt;script src="{% static 'js/ajax5.js' %}" type="text/javascript"&gt;
  
      &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;form method="GET" action=""&gt;
      &lt;span&gt;&lt;input type="text"  name='city_name' id="city" placeholder="Search: city_name" value="{{ request.GET.get }}"/&gt;&lt;/span&gt;
  
      &lt;span&gt;&lt;input class="btn btn-primary btn-sm" type="submit" value="Search" &gt;&lt;/span&gt;
      &lt;/form&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>javascript (ajax5.js)</p>
  
  <pre><code>$(document).ready(function(){
      $('.btn').click(function(){
          var city = $('#city').val();
              $.ajax({
                  url: 'https://api.openweathermap.org/data/2.5/forecast?q='+ city +'&amp;appid=026b9c980571390d69406536cdaaccea',
                  method : 'GET',
                  dataType: 'json'
                  success: function(data){
                      console.log(data);
                  }
  
              })
  
      });
  });
  </code></pre>