[Answer]-How to run Django views from a script?

1👍

Django has a RequestFactory which seems to suit your needs.

👤aumo

0👍

While it’s not exactly meant for this purpose, an option would be to use the testing framework’s Client to fake a request to the url – be sure to use client.login() before making your requests, to ensure you have superuser capabilities.

👤knbk

Leave a comment