title: WindowsError: [Error 267] The directory name is invalid
body: <pre><code>PROJECT_PATH = os.path.abspath(os.path.dirname(__file__))
  STATICFILES_DIRS = (
      os.path.join(PROJECT_PATH, 'static'),
  )
  </code></pre>
  
  <p>This code returns the following error message:</p>
  
  <pre><code>WindowsError: [Error 267] The directory name is invalid
  </code></pre>
  
  <p>I do not understand what's wrong in this code. I tried to remove the comma but I get another error: <code>Your STATICFILES_DIRS setting is not a tuple or list; perhaps you forgot a trailing comma?</code></p>
  
  <p>Also when I insert a static path I get that error:</p>
  
  <pre><code>STATICFILES_DIRS = (
      'F:/DEV/apps/myproject/static/',
  )
  </code></pre>
  
  <p>And when I remove the path from <code>STATICFILES_DIRS</code> I don't get any error and the site works fine:</p>
  
  <pre><code>STATICFILES_DIRS = () #no error
  </code></pre>
  
  <p>Any help is appreciated! Thank you!</p>