I've just worked it out!
Posting for any other hopeless newbies
def builddetails(request, id):
if request.method == 'POST':
form = BuildForm(request.POST or None)
if form.is_valid():
build = Build.objects.get(pk=id)
build_form = BuildForm(requ
Thank you very much for the help Matthew, that is absolutely spot on, and
greatly appreciated.
My view now looks like this:
def builddetails(request, id):
if request.method == 'POST':
form = BuildForm(request.POST or None)
if form.is_valid():
form.save()
Nevermind, I figured it out. Instead of math.arctan, I used Func() with
function='ATAN'.
--
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..
On further investigation and thoughts, I think I may need to replace
math.atan with some kind of django query expression function that will
allow the arc-tangent to be calculated within a query expression. Does one
already exist?
--
You received this message because you are subscribed to the G
I am trying to run a query that uses an expression wrapper. Within this
wrapper I'm calling the math.atan function, and within that function I'm
calling an F() expression. The F() expression is getting data with a
DecimalField datatype. I'm getting an error stating that "a float is
required". T
On Saturday 17 June 2017 13:11:17 A.S. Khangura wrote:
> On Fri, Jun 16, 2017 at 8:39 PM, Melvyn Sopacua wrote:
> > You do things in models.
>
> So that means all my ML models would be Django-Models?
Yes. Models should be a representation of the data and their interaction.
> > You gather things
On Sat, Jun 17, 2017 at 1:43 PM, Melvyn Sopacua wrote:
> The documentation. The tutorial takes you through all the steps I mentioned
> and in addition introduces the admin, forms (connecting user input with
> models, views and templates) and unit tests.
Yes Went through that famous tutorial. It
On Saturday 17 June 2017 12:17:18 A.S. Khangura wrote:
> Any way you could make me go through Architecture Design of system.
> Or any kind of open-Source project where I would be able to study
> things and look for how I can make my own?
The documentation. The tutorial[1] takes you through all th
On Fri, Jun 16, 2017 at 8:39 PM, Melvyn Sopacua wrote:
> You do things in models.
So that means all my ML models would be Django-Models?
> You gather things in views.
I will pass data and get results from functions to show on web-pages.
> You render things in templates.
Yes that is other s
9 matches
Mail list logo