1: Update settings.py so that STATIC_ROOT points to the right spot in the project, for me I set it up as:
STATIC_ROOT = r'C:\myprojectpath\static'
2: Run manage.py collectstatic, this will create that static directory
3: Add a web.config which removes our Python handler for the static directory into the static directory:
<remove name="PythonHandler" />
4: Add the static files into your project
We should make this more automatic. We could set STATIC_ROOT to be something which figures out the correct absolute path at runtime (based upon
or something like that). We could then make publish automatically run collectstatic, and we could make it automatically include the collected static files, and we could automatically create the additional web.config.