base url of project

how can I get base url of project without using of Site model? (http protocol + domain)

If it’s available, you may be able to find it in the HttpRequest object, either in the META data or in one of the headers.

(Note: There’s no requirement that your application’s runtime container (e.g. uwsgi / gunicorn) provide that information to the app.)