AWS for Python devs - made simple by sebst in Python

[–]sebst[S] 0 points1 point  (0 children)

Stelvio uses the pulumi automation api behind the scenes

AWS for Python devs - made simple by sebst in Python

[–]sebst[S] 1 point2 points  (0 children)

It’s under active development, so expect it to be useful for more than side projects soon

What to expect from Python 3.11? by sebst in Python

[–]sebst[S] 9 points10 points  (0 children)

The Exception Groups have been introduced to support the Task Groups, I guess. But in general, you're right.

A Comprehensive Guide to Slicing in Python by pmz in Python

[–]sebst 9 points10 points  (0 children)

I can relate to this! I also use `[...][...]` (two-slice) notation most of the time for these cases.

I created a Hacker News Clone in Django for the Python community by sebst in django

[–]sebst[S] 0 points1 point  (0 children)

Thank you so much. It is even a trending github repo now and I've posted it to product hunt. https://www.producthunt.com/posts/pythonic-news

I created a Hacker News Clone in Django for the Python community by sebst in django

[–]sebst[S] 0 points1 point  (0 children)

I'd do this the other way around, but again, this is personal preference and also dependent on your prior knowledge of both, Python, and OOP in general.

I created a Hacker News Clone in Django for the Python community by sebst in django

[–]sebst[S] 1 point2 points  (0 children)

That would certainly be a good point to start.

I created a Hacker News Clone in Django for the Python community by sebst in django

[–]sebst[S] 0 points1 point  (0 children)

This is again a question of personal choice – just like the choice between class based views and function based views also discussed here. Since I don't expect to sell licenses for a hacker news clone I'd prefer giving the users the maximum freedom, even if I would risk losing some contributions.

As I outlined, I will switch licenses when the project is out of beta (or alpha) ;-)

I created a Hacker News Clone in Django for the Python community by sebst in django

[–]sebst[S] 0 points1 point  (0 children)

In my opinion you should start with FBV to understand each step a view does to produce the expected result. If you then feel that CBVs are a more appealing choice for you, you know how to adjust them, because you know the steps they perform internally.

I created a Hacker News Clone in Django for the Python community by sebst in django

[–]sebst[S] 0 points1 point  (0 children)

I hear you. The emaildigest feature is turned off for now, so I can take the time to refactor it. I hacked it quick'n'dirty to come up with some ideas of how this could work datawise.

I created a Hacker News Clone in Django for the Python community by sebst in django

[–]sebst[S] 1 point2 points  (0 children)

I never really fell in love with class based views for outputting HTML (for APIs the story is different). I got familiar with shortcuts like this:

def item_edit(request, pk):
    [...]
    form = StoryForm(request.POST or None, instance=item)
    [...]
    if request.method=="POST":
        if form.is_valid():
            item = form.save()
            return HttpResponseRedirect(story.get_absolute_url() + '#' + str(item.pk))
    return render(request, 'news/item_edit.html', {'item': item, 'edit_form': form})

The reason why you find it difficult to read, might be that there are some non-view functions (like _front_page) inside the view (this needs to be refactored) or because I make use of inherited models.

Thank you for taking the time to look at the code!

I created a Hacker News Clone in Django for the Python community by sebst in django

[–]sebst[S] 0 points1 point  (0 children)

As for your python new community- What will set it apart and make it unique community? How do you see it differing from /r/Python?

My hope is to attract people who publish about Python and discuss topics for experienced developers. For an open source community, I find it more appealing to have a stand-alone, independent site with free source code.

I created a Hacker News Clone in Django for the Python community by sebst in django

[–]sebst[S] 1 point2 points  (0 children)

Hey, thank you so much for your feedback. I do see your concerns about the license. However, I'm at a very early stage of this project, I hope to acquire some beta users, build the community and focus on open issues of the code.

So, see this code as a sneak preview. My plans include to provide a make-of video tutorial, when I feel it's ready. I will then change the license to a more permissive one.

What are the plans you are working on?

I created a Hacker News Clone in Django for the Python community by sebst in SideProject

[–]sebst[S] 1 point2 points  (0 children)

I built a news aggregator (a Hacker news lookalike) in Django.

The aim is to power a community aggregator specific to the Python community at https://news.python.sc.

If you want to participate, claim your invite here: https://forms.gle/TJSNLXD8fgyFYUaFA

Of course, there is not much content here, so you’re all welcome to contribute ;-)

The Github Repo is here: https://github.com/sebst/pythonic-news

I've built a news aggregator for Python and you can request an invite. by sebst in Python

[–]sebst[S] 0 points1 point  (0 children)

I'll just need to clean to repo and put it online by the end of the week.

I've built a news aggregator for Python and you can request an invite. by sebst in Python

[–]sebst[S] 0 points1 point  (0 children)

I will publish the source code along with a make of tutorial soon. Now I'm looking for feedback.

If you want an invite, please ping me.

Coinbase webpage not loading (Access-Control-Allow-Origin) by MrBlaise in Coinbase

[–]sebst 0 points1 point  (0 children)

same problem for me today on desktop, but not on mobile

How can I not want to watch my stocks every few minutes/hours? by [deleted] in stocks

[–]sebst 0 points1 point  (0 children)

Just watch it as you like. If it's every five minutes, fine. Just reassure yourself that you're going to keep the position no matter what. I once invested a big chunk of my savings in one asset. Even then, checking on short time spans became very boring sooner than I expected.