django-amp-tools project improvement

117 views
Skip to first unread message

Pratham Jangra

unread,
Apr 7, 2021, 8:23:37 PM4/7/21
to Django developers (Contributions to Django itself)

Hello developers

This is Pratham Jangra, a Computer Science & Engineering undergrad sophomore.

For GSoC 2021, I am making a proposal to solve some problems in the django-amp-tools project. The most important one is to create a library for auto-parsing HTML tags.

 

Importance: As we all know AMP is used by a massive amount of websites for webpages to load faster and get pages optimized for mobile browsing. Nowadays AMP is heavily used for user-first websites, stories, ads, emails. It is widely used for SEO in websites as Google prefers it and gives the website a higher ranking.

 

Problems/Ideas: AMP uses equivalent HTML tags to optimize a particular webpage. But there are still some issues yet to be resolved as follows:

  • AMP is based on components

    • Not all tags have equivalent representation in HTML which is a big issue because day by day content is increasing on AMP pages and we will eventually need those tags to render the pages. This is the problem I have faced personally while using AMP boilerplate for a website. There is no amplify tag equivalent.

    • Translation is still a big issue for AMP.  Currently all HTML cannot be translated.

    • Automatic parsing: If there is a way to automatically parse all tags of HTML then most of the issues of equivalent representation in AMP will be solved. for e.g. <img>. All we would need to do is create a library to automatically create an AMP-equivalent page of the existing HTML page.

    • Need for stabilize the parsing.

I did my research as much as possible but still some issues are there and we can create a new library for auto-parsing the tags in normal HTML. My proposal is still in work and I would really appreciate feedback and suggestions on these issues. Please advise me to implement any other features and if there is anything wrong in the whole idea. I am open to any new ideas; and please correct me if I have missed anything in the whole idea. Thank you.

 

Regards

Pratham Jangra

Adam Johnson

unread,
Apr 8, 2021, 6:55:33 AM4/8/21
to django-d...@googlegroups.com
Hi Pratham,

Sorry to be a bit of a downer here...

The django-amp-tools project is not an official django project and has not been updated for a while (it doesn't support *any* currently supported Django versions). It's also not particularly popular - 65 stars - and in general I feel like AMP is in decline. Better CDN's and HTTP/2+3 allow for faster delivery of vanilla HTML. So I'm not sure we could support a project contributing to django-amp-tools. That said I'm prepared to be proven wrong, I know big news sites tend to still support AMP so there's probably some value there.

Did you check out the wiki page on GSoC and its suggested projects? https://code.djangoproject.com/wiki/SummerOfCode2021

Thanks,

Adam


--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-develop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/fa290e47-6ee9-4136-9a72-368fdc2da9ddn%40googlegroups.com.


--
Adam

Pratham Jangra

unread,
Apr 12, 2021, 2:19:10 AM4/12/21
to django-d...@googlegroups.com
Can I propose to make an official Django  library for AMP?

Carlton Gibson

unread,
Apr 12, 2021, 2:20:46 AM4/12/21
to Django developers (Contributions to Django itself)
This might be OK as a third-party package but I don't think it would be something we'd include in Django itself.
Nor I think would we accept it as a GSoC project. 

Sorry. 

Kind Regards,

Carlton


Reply all
Reply to author
Forward
0 new messages