title: Serving CHANGING static django files in production
body: <p>I need to serve a static file that has a changing name. This works fine with DEBUG = True, but immediately breaks with DEBUG = False. I'm currently using Whitenoise to serve files in production, and tried executing <code>collectstatic</code> after the filename changes, but that didn't help. Any advice is appreciated</p>
  <p>Edit: This is how the filename is changed</p>
  <pre><code>newname = 'myfile' + str(random.randint(0, 999999)) + '.css'
  newpath = os.path.join(current_dir, ('../staticfiles/stuff/css/' + newname))
  os.rename(r'{}'.format(filepath), r'{}'.format(newpath))
  </code></pre>
  <p>I can't quite give full context for why I need this file's name to change</p>