{{ 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 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/0b7653e3-0b93-4f09-81eb-51d23216dec5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to