I'm not gonna start on the "cool" part

You could generate the urls on the view and pass them already
generated to the template

On 1/13/17, Max <[email protected]> wrote:
> {{ domain }}{{ ob.get_absolute url }} - is not cool , i set site with
> context proccesor for domain
>
> Once again, if you don't have a default site_id or the request object
>> available inside the method, then what do you expect it to return? I'm
>> not asking programatically, but logically,
>
>
> if site_id is enabled, django is not use site by request.
>
> So, can i get request obj inside model? Is not true MVC pattern, but in
> docs i cannot change runtime settings(not recommended)
>
>
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> 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/0b7653e3-0b93-4f09-81eb-51d23216dec5%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 [email protected].
To post to this group, send email to [email protected].
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/CALn3ei0LYsY_ruP5Q9CGB377Q-%3DWSiSDiVp-PVo%3DEjkcvmkiKA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to