Say I have a page on my Django website (because I do) that I would like to
take a snapshot of on an automated basis on the server itself with a
crontab say. I imagine writing a small python script that I could run, that
loads Django, a settings file, knows a URL and has a way of saying "give me
Thanks James, I like that idea. I'll experiment with it. Have used Proxies
before just not with this in mind.
On Sunday, 3 June 2018 15:06:41 UTC+10, James Schneider wrote:
>
>
>
> On Sat, Jun 2, 2018, 6:14 PM Bernd Wechner > wrote:
>
>> I'd like to instantiate a model, and play around with it,
On zondag 3 juni 2018 22:45:31 CEST Richard Brockie wrote:
> Any advice on how I can accomplish this? Any particular things I would need
> to do in the Django project to make this possible?
Since you seem to be using the {% url %} tag and have no absolute URLs with
the hostname in it, I don't th
Hi,
I’m wondering if it is possible to use a subdomain of a sponsor’s url as an
alias to a particular part of our Django site?
Our Django site has urls of the form: “site.url/year/slug/*” where “*”
represents a large set of child pages for various data reports and update
actions related to a
Django need template dir to store your html ,so in the setting.py , you
shuold set the template dir like this:
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.join(BASE_DIR, 'template')]
,
'APP_DIRS': True,
I think you can use model.object.get_or_create()
and like this:
patient,err = Patient.obiect.get_or_create(kwgs)
if the object existed,the returned will be wrong, if not ,it will be
true,
and then you update this instence.
在 2018年5月29日星期二 UTC+8下午7:41:29,Albin Antony写道:
>
> Hello guys,
> Sor
Please I have a problem, after successfully going through the django polls
and having results, and now wans to run a tuturial on a web development,
wen I runserver I gets errors. I don't really understand where the problem
is. The problem is "NameError:name 'template' is not defined"
On Jun 1, 201
7 matches
Mail list logo