Thursday, July 31, 2014

Re: Is creating a view necessary ?

Hi Vipul,

I think you should follow the Django tutorial a bit further. Your HTML pages can be used as templates for the result of the views. Views in django aren't the View in a MVC-pattern, but rather the controller (this was something that confused me when I started in Django). So the python parts of your code can be run in the views and your HTML pages can be used as templates in Django.

Regards,

Andréas


2014-07-31 13:18 GMT+02:00 VIPUL BANSAL <vipulbansal91@gmail.com>:
Hi all,

I have a complete HTML website and a few python scripts.
I want to run those scripts via HTML events such as clicking a button.

I read Django tutorial and found out that it is using Views to create HTML content.

Is there any way I can do it without using the Views and use the HTML code that I have already created ?

Thnaks,

--
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+unsubscribe@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/d7f8d0b4-73c5-4cbc-bcd3-49d17ccc6c29%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@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/CALXYUbmEH6Tq5aBw3%2BF%3D0jX3ru24dxFZ_FWzKV-JMb7Q%2BrcqyQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment