You would need to pass it as argument, or set a default Site,
otherwise it doesn't make sense

For example, when calling the method from the shell (not a web
request) what will you expect it to return?

On 1/13/17, Max <kiselev...@gmail.com> wrote:
> Hi, guys. I want to get absolute url for Model with domain based on request
>
> (there is not SITE_ID in the settings.py). How?
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/ae4a2205-209f-46a5-a60d-4fcd208f2a49%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALn3ei0-K2tT-pGhRt2fjieoQvgxz05fZrHcTSRvA3BJJ9UtYA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to