title: How to fix defining an 'invalid syntax' error Terminal when using Django to run a server (mac)
body: <p>Hi I'm setting up a new server in Django using python and with the help of this tutorial <code>(file:///Users/matthewdeyn/projects/helloapp/howdy/templates/index.html)</code>.
  When I try and run the server in terminal (using mac) I get a syntax error concerning the file: urls.py which was made previously in the tutorial. </p>
  
  <p>I am new to coding and have tried to search for the answer on google but nothing yet. I also typed in the code for the file in question exactly so am unsure as to the solution. </p>
  
  <pre><code># howdy/urls.py
  from django.conf.urls import url
  from howdy import views
  
  urlpatterns = [
      url(r'^'$, views.HomePageView.as_view())
  ]
  </code></pre>
  
  <p>Expected results are that the server will run and previous HTML code will render when I load the webpage through <a href="http://127.0.0.1:8000/" rel="nofollow noreferrer">http://127.0.0.1:8000/</a>. </p>
  
  <p><a href="https://i.stack.imgur.com/tjeZG.png" rel="nofollow noreferrer">enter image description here</a></p>