Replies

This profile is from a federated server and may be incomplete. Browse more on the original instance.

nanorepublica, to django
@nanorepublica@indiehackers.social avatar

📣 Don't use pgAdmin (or similar tools)
📄 Know what Django provides before reaching for extra tools
🔗 https://softwarecrafts.co.uk/100-words/day-104
#100_words,#django,#tooling,#management_commands

nanorepublica,
@nanorepublica@indiehackers.social avatar

@ghickman it's a bit of a click bait title, but the number of times someone new to Django has messed up their migrations by fiddling in an external tool... It's a clear 🤦 from me

nanorepublica, to django
@nanorepublica@indiehackers.social avatar

📣 Common Django Project structures - Part 3
📄 A very simple setup, useful for demos or very simple prototypes
🔗 https://softwarecrafts.co.uk/100-words/day-91
#100_words,#django,#django_apps

nanorepublica,
@nanorepublica@indiehackers.social avatar

@carlton I believe that is the option I showed today! (I think?)

nanorepublica, to random
@nanorepublica@indiehackers.social avatar

I am still setting up my new laptop, I'm taking my time and also not trying to be overwhelmed by getting a proper dotfiles repo setup.

Three questions that come to mind:

  1. Any recommendations for dealing with credentials (typically some form of API key) that live in config files that I would want to live in my dotfiles repo

  2. Similarly for transferring SSH keys.

  3. What do mac users do for local files that aren't in some form of git repo (pdfs, office files, etc) Migration Assistant?

nanorepublica,
@nanorepublica@indiehackers.social avatar

@webology Perfect! I don't use 1Password, but I imagine the bitwarden-cli will do similar

nanorepublica, to django
@nanorepublica@indiehackers.social avatar

📣 Merging a third party package into django core
📄 Question: What would a package look like if it's goal was to be merged into Django core?
🔗 https://softwarecrafts.co.uk/100-words//100-words/day-78
#100_words,#django,#packages,#merging

nanorepublica,
@nanorepublica@indiehackers.social avatar

@carlton Looking forward to it!

Perhaps a blog post or two afterwards of the process from package creation to merge would help others?

nanorepublica, to random
@nanorepublica@indiehackers.social avatar

📣 Who is the primary user for startproject

nanorepublica,
@nanorepublica@indiehackers.social avatar

@adamchainz that's good to know! Looks like Zapier auto toot failed to share the link to yesterday's article.

Here's the link: https://softwarecrafts.uk/100-words/day-72

Do you always use a template?

nanorepublica, to random
@nanorepublica@indiehackers.social avatar

📣 Analysis for unused code in a Django codebase
📄 An idea I wish existed and I hope to build one day
🔗 https://softwarecrafts.co.uk/100-words/day-71

nanorepublica,
@nanorepublica@indiehackers.social avatar

@webology @bmispelon ah coverage yes that would help.

I get the feeling like my idea might be packaging up a suite of existing hacks and tools

this unnamed codebase lacks any reasonable tests and I haven't yet pushed hard enough to make it a priority. Ideally I want to remove the cruft before I write them.

webology, to random
@webology@mastodon.social avatar

🙋 How often do you use Django's startproject and startapp?: https://micro.webology.dev/2024/04/13/how-often-do.html

nanorepublica,
@nanorepublica@indiehackers.social avatar

@webology thank you for the answer! And I'm honoured to have a blog post about it. 😅

nanorepublica, to random
@nanorepublica@indiehackers.social avatar

📣 A new Django management command
📄 A little helper to override templates
🔗 https://softwarecrafts.co.uk/100-words/day-64

nanorepublica,
@nanorepublica@indiehackers.social avatar

@webology 🤦 good spot! That's what I get for writing while travelling

nanorepublica,
@nanorepublica@indiehackers.social avatar

@ghickman I have plenty of management commands like that doesn't mean they shouldn't exist!

nanorepublica, to django
@nanorepublica@indiehackers.social avatar

#django idea of today

Has anyone considered using the Python extras to allow something like

pip install django[drf]

which would install django with DRF?

I assume not since we have been hesitant to officially endorse one third-party package over another...

Initially this either feels like a terrible idea or a further step to getting a third-party package into django core.

nanorepublica,
@nanorepublica@indiehackers.social avatar

@CodenameTim @frank the thing that gets me, is that I have heard it said multiple times 'start a third-party package to see what traction and popularity it gets'
But I have only seen a single discussion/process about what constitutes enough popularity to get something into core Django or what that process could look like.

The optionality of third party packages is great, but having a process/documentation would be advantageous.

nanorepublica,
@nanorepublica@indiehackers.social avatar

@CodenameTim @frank

My assumption is that we lack usage numbers or a similar proxy as a metric or the process for saying a package is up for integration or not.

Or it could be a series of steps.

  1. Create the package
  2. Get it mentioned in the official docs
  3. Then it can be voted on to be included in Django?

To reiterate, I am definitely not saying every package should get to be in Django but this is more a response to the feature proposals getting the feedback of 'make a package'

nanorepublica,
@nanorepublica@indiehackers.social avatar

@carlton @frank @CodenameTim My original post was an idea of perhaps a halfway house to include packages into the core of Django.
But perhaps this is just a repackaging of the --template option on startproject

benjaoming, to django
@benjaoming@social.data.coop avatar

Idea: What is for ORM, it could also be for HTTP APIs?

An immense amount of work has gone into shaping django-ninja (fantastic project) and experienced frameworks like DRF and FastAPI.. some patterns must surely be emerging that are mature enough to be bundled into Django itself?

Any existing discussions on this?

nanorepublica,
@nanorepublica@indiehackers.social avatar

@benjaoming I know that @carlton has been pushing for content negotiation to get into core as a first step so Django can natively process the likes of JSON etc.

Beyond that I'm not sure since there are a few good options out there. The forum/tickets would be the place to check for existing discussions

nanorepublica,
@nanorepublica@indiehackers.social avatar

@benjaoming @carlton

This was the recent forum I read about it: https://forum.djangoproject.com/t/request-for-steering-council-vote-on-modernising-the-request-object/26816

Also, Carlton mentioned the idea on pretty much every Django Chat podcast episode last year. 😅

nanorepublica,
@nanorepublica@indiehackers.social avatar

@benjaoming @carlton

On where more of Ninja or DRF get bundled into Django itself I am not too sure when that will happen.

Currently, the likes of DRF/Ninja existing outside core do work for everyone.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • mdbf
  • ngwrru68w68
  • modclub
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • megavids
  • GTA5RPClips
  • tacticalgear
  • normalnudes
  • tester
  • osvaldo12
  • everett
  • cubers
  • ethstaker
  • anitta
  • provamag3
  • Leos
  • cisconetworking
  • lostlight
  • All magazines