Check out toumorokoshi and their project deepmerge.
A deep merging tool for Python core data structures
GitHub stars posts
Check out toumorokoshi and their project deepmerge.
A deep merging tool for Python core data structures
My next step into django made me realize that I do not have access to the admin panel, turns out that I need to create a cuper user first.
Right away when trying to setup the superuser I ran into this issue
django.db.utils.OperationalError: no such table: auth_user
Back to the tutorial tells me that I need to run migrations to setup some tables for the INSTALLED_APPS, django.contrib.admin being one of them.
yes I am still running remote on from my chromebook. ...python manage.py migrate
I am continuing my journey into django, but today I am not at my workstation. I am ssh’d in remotely from a chromebook. I am fully outside of my network, so I can’t access it by localhost, or it’s ip. I do have cloudflared tunnel installed and dns setup to a localhost.waylonwalker.com.
I found this in settings.py and yolo, it worked first try. I am in from my remote location, and even have auth taken care of thanks to cloudflare. I am really hoping to learn how to setup my own auth with django as this is one of the things that I could really use in my toolbelt.
I have no experience in django, and in my exploration to become a better python developer I am dipping my toe into one of the most polished and widely used web frameworks Django to so that I can better understand it and become a better python developer.
If you found this at all helpful make sure you check out the django tutorial
The first thing I need to do is render out a template to start the project. For this I need the django-admin cli. To get this I am going the route of pipx it will be installed globally on my system in it’s own virtual environment that I don’t have to manage. This will be useful only for using startproject as far as I know.
...pipx install django django-admin startproject try_django cd try_django
While updating my site to use Markata’s new configurable head I ran into some escaping issues. Things like single quotes would cause jinja to fail as it was closing quotes that it shouldnt have.
Jinja comes with a handy utility for escaping strings. I definitly tried to over-complicate this before realizing. You can just pipe your variables into e to escape them. This has worked pretty flawless at solving some jinja issues for me.
<p> {{ title|e }} </p>
The issue I ran into was when trying to setup meta tags with the new configurable head, some of my titles have single quotes in them. This is what I put in my markata.toml to create some meta tags.
[[markata.head.meta]] name = "og:title" content = "{{ title }}"
Using my article titles like this ended up causing this syntax error when not escaped.
...
Hatch allows you to specify direct references for dependencies in your pyproject.toml file. This is useful when you want to depend on a package that is not available on PyPI or when you want to use a specific version from a Git repository. Often used for unreleased packages, or unreleased versions of packages.
When I am developing python code I often have a repl open alongside of it running snippets ofcode as I go. Ipython is my repl of choice, and I hace tricked it out the best I can and I really like it. The problem I recently discovered is that I have way overcomplicated it.
So in the past the way I have setup a few extensions for myself is to add something like this to my ~/.ipython/profile_default/startup directory. It sets up some things like rich highlighting or in this example automatic imports. I even went as far as installing some of these in the case I didn’t have them installed.
import subprocess from IPython import get_ipython from IPython.core.error import UsageError ipython = get_ipython() try: ipython.run_line_magic("load_ext pyflyby", "inline") except UsageError: print("installing pyflyby") subprocess.Popen( ["pip", "install", "pyflyby"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, ).wait() ipython.run_line_magic("load_ext pyflyby", "inline") print("installing isort") subprocess.Popen( ["pip", "install", "isort"], stdout=subprocess.DEVNULL,...
...
I like pypeaday’s project stable-diffusion-pype-dev.
No description available.
Check out gradio-app and their project gradio.
Build and share delightful machine learning apps, all in Python. 🌟 Star to support our work!
Just starred stable-diffusion-webui by AUTOMATIC1111. It’s an exciting project with a lot to offer.
Stable Diffusion web UI
kedro-plugins by kedro-org is a game-changer in its space. Excited to see how it evolves.
First-party plugins maintained by the Kedro team.
I like CaffeineMC’s project sodium.
A Minecraft mod designed to improve frame rates and reduce micro-stutter
Just starred markata-todoui by WaylonWalker. It’s an exciting project with a lot to offer.
A todo plugin for markata. It is a tui (text user interface) that runs in the terminal using textual. It gives me a trello-board feel from the terminal. I can create, update, delete, move, and fully manage my todo items from the terminal with it.
I recently discovered cmp-nvim-lsp-signature-help by hrsh7th, and it’s truly impressive.
cmp-nvim-lsp-signature-help
A long needed feature of markata has been the ability to really configure out templates with configuration rather. It’s been long that you needed that if you really want to change the style, meta tags, or anything in the head you needed to write a plugin or eject out of the template and use your own.
Now you can add some extra style to your site with the existing built-in template.
[[markata.head]] text = """ <style> img { width: 100%; height: auto; } ul { display: flex; flex-wrap: wrap; } </style> """
Each text entry in markata.head just gets appended raw into the head.
...
I recently discovered stable-diffusion-videos by nateraw, and it’s truly impressive.
Create 🔥 videos with Stable Diffusion by exploring the latent space and morphing between text prompts