title: collectstatic, eError: 'NoneType' object has no attribute 'split'
body: <p>I try to deploy a wagtail dev project to digitalocean. Once I run the on the server the command:</p>
  <p>python manage.py collectstatic --settings=mysite.settings.production</p>
  <p>I get the following error message</p>
  <pre><code>ALLOWED_HOSTS = os.environ.get(&quot;DJANGO_ALLOWED_HOSTS&quot;).split(&quot;,&quot;)
  AttributeError: 'NoneType' object has no attribute 'split'
  </code></pre>
  <p>I follow a commands from the tutorial
  <a href="https://learnwagtail.com/launch-your-wagtail-website-digital-ocean-ubuntu-18/" rel="nofollow noreferrer">learnwagtail deploy to DO</a></p>
  <p>I tried different type of combinations, with (',') and without as a split.
  combination of IP/*/ or without.
  I then tried on an empty wagtail project, the result is the same.</p>
  <p>Any return/help would be highly appreciated.</p>