I'm working on my django app, and I have problem with one line of my code:
open(os.path.join(settings.BASE_DIR, 'templates', 'generated', 'calendar', month.strftime('%Y-%m.html')), 'w').write(html)
Should works fine, because when I printed this line of code I got full path to file.
No I got an error:
IOError: [Errno 2] No such file or directory