Tuesday, July 25, 2017

Re: The best way to use AMP of google with Django



On Jul 24, 2017 10:54 AM, "carlos" <crocha09.09@gmail.com> wrote:
Hi, i have blogs with Django i need use AMP (https://www.ampproject.org/)

After a quick look at the link, it doesn't appear as though that service will support Django. It in itself is a development framework geared towards fast mobile applications, with its own template syntax, and hooks in to several other layers like Google caching. However,  it appears to be a closed system and I don't see where Django would fit.

Django provides control over the back end application process and performs advanced application logic for the end user in Python,  and is probably more powerful than what can be [easily] accomplished through their software. 

Django is designed to run as the primary underlying framework, but it doesn't provide the custom JS libraries,  etc.  because it expects you as the developer to use whatever HTML or JS library you are comfortable with. 

What is the best way to use it with django, someone has an example
To apply with django or idea, book, tutorial etc. i read, see this projects
https://github.com/shtalinberg/django-amp-tools

I don't think this project is related to the AMP service above other than an overlap in nomenclature. It also looks to be somewhat unfinished. Open an issue directly with them,  I don't know how much help this general mailing list will be. 

TL;DR; They aren't compatible because both tools have different goals and implementation strategies,  although Django is technically capable of doing anything the AMP service is,  but not the other way around. 

I'd recommend that you don't focus on the new age terminology, rather develop your project requirements and then look for a framework or software service that fits those requirements. Starting with a buzzword and trying to crow bar in a somewhat unrelated technology will likely not end well.

-James

--
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2Be%2BciVBB1Ko5fa8yFDp3O_%2B5hYO6jy8%3D2CDtZXxpG-aQhiTYA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment