On Saturday, 14 June 2014 17:22:24 UTC+1, Eran Ariel wrote:
>
> Hi, I am interested in Django as a platform to deploy applications using 
> mod_wsgi, accordingly, whether existing Django libraries such as the forms 
> library could be applied for this purpose as user initiated POST requests – 
> to pass the variables.  I can place my scripts within the models.py file, 
> accordingly, the script runs at the shell upon running "python manage.py 
> runserver" command, however, I cannot see any output at 
> http://localhost/8000 (at least for now).
>
> How do I get my python application "browser enabled"? 
>
>  
>
Your question is not very clear. In particular, I don't understand why you 
have put your code in models.py - that's for database models and their 
associated logic.

Django, like all web frameworks, operates on the basis of HTTP requests and 
responses. That is, a user makes a request over the web (usually via a 
browser), and Django returns a response which is displayed. If you want to 
make your script "web-enabled", then you need to fit it within that 
request-response cycle. That usually means calling it from a view.
--
DR.

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/67cb5e47-e0a3-4a7f-8b8c-0d8c472d58e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to