What is wrong in your code?

I suggested you some scripts changes that allows import and use in views.

Help us to help you, give us more information about what are you doing,
what are you planning to do? Why you think you code is wrong?.

Did you create the view as I suggested?

I think you need to do this steps.

1. Create a django view with some HTML template
2. Create a form ( search for django forms)
3. Insert the form in the HTML template
4. Validate and extract the data inside forms ( it is easy using django
forms)
5. Format the data for use in mathematic function (send data to script in
the correct way )
6. Get data from script
7. Insert the data into template context
8. Render in HTML the data in the HTML template

El lunes, 15 de febrero de 2016, Xristos Xristoou <saxr...@gmail.com>
escribió:
> after read your toturial from the django docs and next page from
the django docs
> i think so my python code is wrong to get in views.py, i think so get in
form
> Τη Τρίτη, 9 Φεβρουαρίου 2016 - 9:47:30 μ.μ. UTC+2, ο χρήστης Xristos
Xristoou έγραψε:
>>
>> hello,
>>
>> i create some python mathematical function on python idle,
>> i want to create website where the user import value numbers on the
function
>> and take the results from that.
>> question one,how to connect my mathematical function on the django?
>> question two,how to connect input and output from the scipts in the
website ?
>> the second question i ask because input and output from the function is
a dynamic define from the user
>>
>>
> --
> 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/f4806da4-886f-4562-8e46-4633693b333e%40googlegroups.com
.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
"La utopía sirve para caminar" Fernando Birri

-- 
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/CAG%2B5VyOJ4H2mvjdaBRvmRizzCiwKB4vsXowKbwypAYJG%3DPp7-Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to