How can you get the absolute uri (with domain and scheme (http/https)) from a batch/cron job?
The method build_absolute_uri() needs an HttpRequest, which I don't have in a cron job.
How can you get the absolute uri (with domain and scheme (http/https)) from a batch/cron job?
The method build_absolute_uri() needs an HttpRequest, which I don't have in a cron job.
Copyright © 2021 Jogjafile Inc.
Two examples:
or