Beatrice,

Beatrice Galvani schrieb (16.04.2015 17:34 Uhr):
Hi, I'm using Django 1.7.2, Python 3.4.

My trouble is: I have a simple function in some directory written in python (e.g. a counter since 0 to 10); I would like to see these numbers on my monitor on the HTML page.. I know how start the function but I am not able to print the variables! My formatted question is *HERE on Stack Overflow <http://stackoverflow.com/questions/29624611/django-javascript-co-print-on-html-a-variable-running-on-python-file>.*

I hope someone can help me , I do not know how to proceed.
noramlly you have a template for an URL.
The template is generated by a view.
Views are python functions.
- You should call your python function from a view, the function must
  return your variable to the view function.
- The view should return your variable to the template.
- The template should be able to display your variable.


Marc

--
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5534B816.3050507%40ofd-z.niedersachsen.de.
For more options, visit https://groups.google.com/d/optout.

Reply via email to