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 you only care about the template the you can concatenate the domain
and the absolute path in the template
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 wrote:
> Hi, guys. I want to get absolute url for Model
Vijay Khemlani, i think my question have not a lot of details. More
1) Django site framework (works with request.get_host() without Site_id).
I can get the current site with Site.objects.get_current(*request*),
shortcuts (get_current_site) or through model. But i have only one model
with site
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
Hello.
I've got a problem.
I'm trying to use 'save_as' feature in admin, but there is unexpected
behavior.
When I'm just opening form and click "save as new", I get this:
NoReverseMatch at /admin/rid/expendituresurid/11/change/
Reverse for 'rid_expendituresurid_delete' with arguments '('',)' and
For example, also i can change queryset with "fake site" listview ->
request -> set queryset site -> template. maybe it will be work, but also i
use rss/sitemaps. they will not use abs path, because based on Model.
You could generate the urls on the view and pass them already
> generated to the
{{ 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
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 wrote:
> {{ domain }}{{ ob.get_absolute url }} - is not cool , i set site with
> context proccesor for domain
>
> Once again, if
Thanks for response I’ll try to answer as below in red
*Subject:* Re: list? queryet? joining together
Hi, just a couple of follow-up questions as having trouble following
precisely.
Can you re-state the exact queries you’re looking for?
Your comment about ‘folding’ model objects makes
Thanks for response I’ll try to answer as below in red
From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On
Behalf Of Andrew Beales
Sent: 12 January 2017 19:52
To: Django users
Subject: Re: list? queryet? joining together
Hi, just a couple of follow-up questions
Hi everyone,
I found a weird behaviour when I run my Django tests, it doesn't always use
the test database, sometimes it uses the production database and truncate
it!
I looked at the Django source code and the cause of this behaviour seems to
be in 'django/test/utils.py' in
Hi everyone! I put Celery in my Django app so that the two other python
programs can process the input from my Django app via doing subprocess
method.
My question is how do I access the output from the subprocess? Back then
when I made just a python program, I access the log files (output from
12 matches
Mail list logo