st, id):
>>
>> build = Build.objects.get(pk=id)
>>
>> form = BuildForm(request.POST or None)
>>
>> if form.is_valid():
>>
>>form.save()
>>
>> return render(request, 'app/builddetails.html', { 'build': build,
>> ‘form’:
gt;
> *From:* django...@googlegroups.com [mailto:
> django...@googlegroups.com ] *On Behalf Of *Mark Alan Jones
> *Sent:* Thursday, June 15, 2017 6:04 PM
> *To:* Django users
> *Subject:* how to combine views in one template
>
>
>
> Hello Django Community,
>
>
def builddetails(request, id):
build = Build.objects.get(pk=id)
Obj = BuildForm(request.POST)
Obj.save()
return render(request, .)
> On 16 Jun 2017, at 12:03 AM, Mark Alan Jones wrote:
>
> Hello Django Community,
>
> I am new to Django and tackling my first app outside of
():
form.save()
return render(request, 'app/builddetails.html', { 'build': build, ‘form’:
form })
From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On
Behalf Of Mark Alan Jones
Sent: Thursday, June 15, 2017 6:04 PM
To: Django users
Subject: how to
Hello Django Community,
I am new to Django and tackling my first app outside of the tutorial. The
app I'm working on is a simple ticket system for build requests at my IT
Company. I only have one model 'Build', and I have checkboxes that denote
how far the build has been done.
I have a page t
5 matches
Mail list logo