-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Django Snippets Roadmap - all thoughts welcome #210
Comments
Hey @chriswedgwood -- thanks for this! It's something I've been thinking about for a while. More or less, I'd like us to have django snippets as a nice example of a smallish Django app. It would be nice then if folks also could use it for snippets 😀 So...
A basic API would be handy, and yes, some examples of how to integrate with front ends would be a real resource. Those are my initial thoughts. And whilst I'm here, a big thanks for your efforts over the last year here! 🏅 |
Hi |
Just to add to the sharing / embedding point above. There's a fair amount of Django snippets which get shared on Twitter, is there anything we could do here? See an example from @adamchainz https://twitter.com/AdamChainz/status/1352196191665197056?s=19 |
When I post a snippet on twitter it's an image, but copied out of the relevant blog post. Indexing code from blog posts on django snippets could be a neat idea. |
actually I was not able to understand fully on this. do you mean that to create django code snippets from blog posts or a list of blog posts where django code snippets are there so that people can visit those pages and try to understand it. @adamchainz |
I meant that snippets from blog posts could be copied into django snippets with a link back to the source post which should fully explain the code. |
sure. @adamchainz I got it now If this issue is open for work I would like to work on it |
Good stuff here. Thanks all. I do like the idea of incentivising bloggers to add a snippet and we will promote their blog. |
@adamchainz Do guide me on how to proceed on this issue |
Just cutting back to this, lots of people use carbon to post images of source code https://carbon.now.sh — but that doesn't give a copy-able source code — it's literally an image. A link back to a real snippet would make those images more useful. (So, something there...) |
@carltongibson jinx @chriswedgwood Thank you for maintaining Django Snippets and keeping the lights on. I primarily use carbon.now.sh and gists because it makes snippets pretty and visible for Twitter and Slack. Gists because people are on GitHub. If there was support for one or both of those, that might be nice. Especially better social media support (like carbon.now.sh does or maybe there is an easy way to get carbon.now.sh support for social media images through the meta tags.) Short-term, I have several gists I can bring over to Django Snippets. |
I was just thinking about this. Looking at the Twitter docs for "Cards" I think we'd need to Post to Twitter function to upload the generated image, since it says the Card display is only triggered when you expand the tweet. (We already have twitter log-in so...) (Possibly a separate issue if we're to pursue... — can we generate an image? — probably right. 😀) |
@carltongibson I haven't had enough coffee, but I don't think you need the post to Twitter, but it could work that way. Specifically, I'm proposing we had Open Graph / Twitter Card meta data from: https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/summary-card-with-large-image <meta name="twitter:description" content="Django Snippet Description here but chop it off after a paragraph or x-charcters">
<meta name="twitter:image" content="https://url/to/snippet/image"> But yes, this would require adding image support it might be possible to pass the snippet code off to Carbon Now or a like service to generate that image for us. (that's how the service used to work at least so it's probably still in their API) |
@jefftriplett — You could well be right — I was hoping that was the solution (but there was some comment in the docs I linked that made me doubt) — Anyhow... one approach or other should work right? — and that would be cool! |
@carltongibson @jefftriplett I have questions 🤔
Am in the right ballpark here? |
Or is it: Our form takes the gist js embed as input? Where does Pygments fit in all of this? |
@chriswedgwood — we should probably have a new ticket — derailing the Roadmap discussion — but 😀 — Ideally...
For the image bit:
If I could use the same for blog posts and such — image, plus link back to editable snippet — that would cool. 🤔 I need to have a potter around Carbon to see what's possible there. |
I would like to canvas opinion for those interested in the the djangosnippets.org project as to how you envision the future of this project. What are its aims and ideals? Could the Django software foundation give me some direction here?
The things I'm thinking/questions off the top of my head:
We should aim to always be on the latest Django Version
Could DjangoSnippets be used as a stepping stone to getting people contributing to the Django project itself? The barrier to entry can be a lot lower and if mistakes are made the risks are quite low. One of my first merges to master took the site down for a week and it was not the end of the world? I see a lot of emails on the Django mailing list asking how people can start contributing. Maybe we can point the less experienced developers here?
Can DjangoSnippets be turned into a simple gold standard application for newcomers to model? If so what are the areas we should address and tidy up?
Static assets. Should we modernise the current pipeline?
Should we incorporate some frontend frameworks as demos?
What do we want out of our api?
Should we do more with social media to raise our profile?
Any thoughts welcome :)
The text was updated successfully, but these errors were encountered: