Update documentation

This commit is contained in:
Alexis Métaireau 2024-02-22 23:04:47 +01:00
parent 1e4578c308
commit c786519109
165 changed files with 1019 additions and 2178 deletions

View file

@ -48,7 +48,6 @@ Alexis Métaireau </title>
<section id="content" class="body"> <section id="content" class="body">
<dl> <dl>
<dt>2024</dt> <dt>2024</dt>
<dd><a href='https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html'>Changing the primary key of a model in&nbsp;Django</a></dd>
<dd><a href='https://blog.notmyidea.org/notes-hebdo-17.html'>Notes hebdo&nbsp;#17</a></dd> <dd><a href='https://blog.notmyidea.org/notes-hebdo-17.html'>Notes hebdo&nbsp;#17</a></dd>
<dd><a href='https://blog.notmyidea.org/le-conflit-nest-pas-une-agression.html'>Le conflit n&#8217;est pas une&nbsp;agression</a></dd> <dd><a href='https://blog.notmyidea.org/le-conflit-nest-pas-une-agression.html'>Le conflit n&#8217;est pas une&nbsp;agression</a></dd>
<dd><a href='https://blog.notmyidea.org/notes-hebdo-16.html'>Notes hebdo&nbsp;#16</a></dd> <dd><a href='https://blog.notmyidea.org/notes-hebdo-16.html'>Notes hebdo&nbsp;#16</a></dd>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time> <time datetime="2024-02-14T00:00:00+01:00">14 février 2024</time>
@ -119,8 +108,13 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/postgresql.html">postgresql</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sysadmin.html">sysadmin</a> <h1><a href="https://blog.notmyidea.org/importing-a-postgresql-dump-under-a-different-database-name.html" id="page-title">Importing a PostgreSQL dump under a different database&nbsp;name</a></h1>
Simple commands to help you during an import Simple commands to help you during an import
</section> </section>
<section class="section index">
<time datetime="2023-11-12T00:00:00+01:00">12 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/deployment.html">Deployment</a> <h1><a href="https://blog.notmyidea.org/deploying-and-customizing-datasette.html" id="page-title">Deploying and customizing&nbsp;datasette</a></h1>
Step by step follow-up on how I've deployed it and added custom templates on top.
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2024-semaine-2.html" rel="bookmark" title="Permalink to 2024, Semaine 2">2024, Semaine&nbsp;2</a></li>
<li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li> <li><a href="https://blog.notmyidea.org/format-an-usb-disk-from-the-command-line-on-macosx.html" rel="bookmark" title="Permalink to Format an USB disk from the command-line on MacOSX">Format an <span class="caps">USB</span> disk from the command-line on&nbsp;MacOSX</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau - </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time> <time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time>
@ -119,8 +108,14 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1>
A heads-up on what I've been doing this week on uMap A heads-up on what I've been doing this week on uMap
</section> </section>
<section class="section index">
<time datetime="2023-11-11T00:00:00+01:00">11 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/graphs.html">Graphs</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sql.html">SQL</a> <h1><a href="https://blog.notmyidea.org/using-datasette-for-tracking-my-professional-activity.html" id="page-title">Using Datasette for tracking my professional&nbsp;activity</a></h1>
<p>I&#8217;ve been following Simon Willison since quite some time, but I&#8217;ve actually never played with his main project <a href="https://datasette.io">Datasette</a>&nbsp;before.</p>
<p>As I&#8217;m going back into development, I&#8217;m trying to track where my time goes, to be able to find patterns, and just remember how much time …</p>
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau - </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time> <time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time>
@ -119,8 +108,14 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1>
A heads-up on what I've been doing this week on uMap A heads-up on what I've been doing this week on uMap
</section> </section>
<section class="section index">
<time datetime="2023-11-11T00:00:00+01:00">11 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/graphs.html">Graphs</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sql.html">SQL</a> <h1><a href="https://blog.notmyidea.org/using-datasette-for-tracking-my-professional-activity.html" id="page-title">Using Datasette for tracking my professional&nbsp;activity</a></h1>
<p>I&#8217;ve been following Simon Willison since quite some time, but I&#8217;ve actually never played with his main project <a href="https://datasette.io">Datasette</a>&nbsp;before.</p>
<p>As I&#8217;m going back into development, I&#8217;m trying to track where my time goes, to be able to find patterns, and just remember how much time …</p>
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau - </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time> <time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time>
@ -119,8 +108,14 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1>
A heads-up on what I've been doing this week on uMap A heads-up on what I've been doing this week on uMap
</section> </section>
<section class="section index">
<time datetime="2023-11-11T00:00:00+01:00">11 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/graphs.html">Graphs</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sql.html">SQL</a> <h1><a href="https://blog.notmyidea.org/using-datasette-for-tracking-my-professional-activity.html" id="page-title">Using Datasette for tracking my professional&nbsp;activity</a></h1>
<p>I&#8217;ve been following Simon Willison since quite some time, but I&#8217;ve actually never played with his main project <a href="https://datasette.io">Datasette</a>&nbsp;before.</p>
<p>As I&#8217;m going back into development, I&#8217;m trying to track where my time goes, to be able to find patterns, and just remember how much time …</p>
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau - </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time> <time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time>
@ -119,8 +108,14 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1>
A heads-up on what I've been doing this week on uMap A heads-up on what I've been doing this week on uMap
</section> </section>
<section class="section index">
<time datetime="2023-11-11T00:00:00+01:00">11 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/graphs.html">Graphs</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sql.html">SQL</a> <h1><a href="https://blog.notmyidea.org/using-datasette-for-tracking-my-professional-activity.html" id="page-title">Using Datasette for tracking my professional&nbsp;activity</a></h1>
<p>I&#8217;ve been following Simon Willison since quite some time, but I&#8217;ve actually never played with his main project <a href="https://datasette.io">Datasette</a>&nbsp;before.</p>
<p>As I&#8217;m going back into development, I&#8217;m trying to track where my time goes, to be able to find patterns, and just remember how much time …</p>
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau - </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time> <time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time>
@ -119,8 +108,14 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1>
A heads-up on what I've been doing this week on uMap A heads-up on what I've been doing this week on uMap
</section> </section>
<section class="section index">
<time datetime="2023-11-11T00:00:00+01:00">11 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/graphs.html">Graphs</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sql.html">SQL</a> <h1><a href="https://blog.notmyidea.org/using-datasette-for-tracking-my-professional-activity.html" id="page-title">Using Datasette for tracking my professional&nbsp;activity</a></h1>
<p>I&#8217;ve been following Simon Willison since quite some time, but I&#8217;ve actually never played with his main project <a href="https://datasette.io">Datasette</a>&nbsp;before.</p>
<p>As I&#8217;m going back into development, I&#8217;m trying to track where my time goes, to be able to find patterns, and just remember how much time …</p>
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau - </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time> <time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time>
@ -119,8 +108,14 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1>
A heads-up on what I've been doing this week on uMap A heads-up on what I've been doing this week on uMap
</section> </section>
<section class="section index">
<time datetime="2023-11-11T00:00:00+01:00">11 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/graphs.html">Graphs</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sql.html">SQL</a> <h1><a href="https://blog.notmyidea.org/using-datasette-for-tracking-my-professional-activity.html" id="page-title">Using Datasette for tracking my professional&nbsp;activity</a></h1>
<p>I&#8217;ve been following Simon Willison since quite some time, but I&#8217;ve actually never played with his main project <a href="https://datasette.io">Datasette</a>&nbsp;before.</p>
<p>As I&#8217;m going back into development, I&#8217;m trying to track where my time goes, to be able to find patterns, and just remember how much time …</p>
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau - </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time> <time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time>
@ -119,8 +108,14 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1>
A heads-up on what I've been doing this week on uMap A heads-up on what I've been doing this week on uMap
</section> </section>
<section class="section index">
<time datetime="2023-11-11T00:00:00+01:00">11 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/graphs.html">Graphs</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sql.html">SQL</a> <h1><a href="https://blog.notmyidea.org/using-datasette-for-tracking-my-professional-activity.html" id="page-title">Using Datasette for tracking my professional&nbsp;activity</a></h1>
<p>I&#8217;ve been following Simon Willison since quite some time, but I&#8217;ve actually never played with his main project <a href="https://datasette.io">Datasette</a>&nbsp;before.</p>
<p>As I&#8217;m going back into development, I&#8217;m trying to track where my time goes, to be able to find patterns, and just remember how much time …</p>
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau - </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time> <time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time>
@ -119,8 +108,14 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1>
A heads-up on what I've been doing this week on uMap A heads-up on what I've been doing this week on uMap
</section> </section>
<section class="section index">
<time datetime="2023-11-11T00:00:00+01:00">11 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/graphs.html">Graphs</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sql.html">SQL</a> <h1><a href="https://blog.notmyidea.org/using-datasette-for-tracking-my-professional-activity.html" id="page-title">Using Datasette for tracking my professional&nbsp;activity</a></h1>
<p>I&#8217;ve been following Simon Willison since quite some time, but I&#8217;ve actually never played with his main project <a href="https://datasette.io">Datasette</a>&nbsp;before.</p>
<p>As I&#8217;m going back into development, I&#8217;m trying to track where my time goes, to be able to find patterns, and just remember how much time …</p>
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau - </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time> <time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time>
@ -119,8 +108,14 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1>
A heads-up on what I've been doing this week on uMap A heads-up on what I've been doing this week on uMap
</section> </section>
<section class="section index">
<time datetime="2023-11-11T00:00:00+01:00">11 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/graphs.html">Graphs</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sql.html">SQL</a> <h1><a href="https://blog.notmyidea.org/using-datasette-for-tracking-my-professional-activity.html" id="page-title">Using Datasette for tracking my professional&nbsp;activity</a></h1>
<p>I&#8217;ve been following Simon Willison since quite some time, but I&#8217;ve actually never played with his main project <a href="https://datasette.io">Datasette</a>&nbsp;before.</p>
<p>As I&#8217;m going back into development, I&#8217;m trying to track where my time goes, to be able to find patterns, and just remember how much time …</p>
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau - </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time> <time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time>
@ -119,8 +108,14 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1>
A heads-up on what I've been doing this week on uMap A heads-up on what I've been doing this week on uMap
</section> </section>
<section class="section index">
<time datetime="2023-11-11T00:00:00+01:00">11 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/graphs.html">Graphs</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sql.html">SQL</a> <h1><a href="https://blog.notmyidea.org/using-datasette-for-tracking-my-professional-activity.html" id="page-title">Using Datasette for tracking my professional&nbsp;activity</a></h1>
<p>I&#8217;ve been following Simon Willison since quite some time, but I&#8217;ve actually never played with his main project <a href="https://datasette.io">Datasette</a>&nbsp;before.</p>
<p>As I&#8217;m going back into development, I&#8217;m trying to track where my time goes, to be able to find patterns, and just remember how much time …</p>
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau - </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time> <time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time>
@ -119,8 +108,14 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1>
A heads-up on what I've been doing this week on uMap A heads-up on what I've been doing this week on uMap
</section> </section>
<section class="section index">
<time datetime="2023-11-11T00:00:00+01:00">11 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/graphs.html">Graphs</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sql.html">SQL</a> <h1><a href="https://blog.notmyidea.org/using-datasette-for-tracking-my-professional-activity.html" id="page-title">Using Datasette for tracking my professional&nbsp;activity</a></h1>
<p>I&#8217;ve been following Simon Willison since quite some time, but I&#8217;ve actually never played with his main project <a href="https://datasette.io">Datasette</a>&nbsp;before.</p>
<p>As I&#8217;m going back into development, I&#8217;m trying to track where my time goes, to be able to find patterns, and just remember how much time …</p>
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau - </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time> <time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time>
@ -119,8 +108,14 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1>
A heads-up on what I've been doing this week on uMap A heads-up on what I've been doing this week on uMap
</section> </section>
<section class="section index">
<time datetime="2023-11-11T00:00:00+01:00">11 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/graphs.html">Graphs</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sql.html">SQL</a> <h1><a href="https://blog.notmyidea.org/using-datasette-for-tracking-my-professional-activity.html" id="page-title">Using Datasette for tracking my professional&nbsp;activity</a></h1>
<p>I&#8217;ve been following Simon Willison since quite some time, but I&#8217;ve actually never played with his main project <a href="https://datasette.io">Datasette</a>&nbsp;before.</p>
<p>As I&#8217;m going back into development, I&#8217;m trying to track where my time goes, to be able to find patterns, and just remember how much time …</p>
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau - </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time> <time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time>
@ -119,8 +108,14 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1>
A heads-up on what I've been doing this week on uMap A heads-up on what I've been doing this week on uMap
</section> </section>
<section class="section index">
<time datetime="2023-11-11T00:00:00+01:00">11 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/graphs.html">Graphs</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sql.html">SQL</a> <h1><a href="https://blog.notmyidea.org/using-datasette-for-tracking-my-professional-activity.html" id="page-title">Using Datasette for tracking my professional&nbsp;activity</a></h1>
<p>I&#8217;ve been following Simon Willison since quite some time, but I&#8217;ve actually never played with his main project <a href="https://datasette.io">Datasette</a>&nbsp;before.</p>
<p>As I&#8217;m going back into development, I&#8217;m trying to track where my time goes, to be able to find patterns, and just remember how much time …</p>
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau - </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time> <time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time>
@ -119,8 +108,14 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1>
A heads-up on what I've been doing this week on uMap A heads-up on what I've been doing this week on uMap
</section> </section>
<section class="section index">
<time datetime="2023-11-11T00:00:00+01:00">11 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/graphs.html">Graphs</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sql.html">SQL</a> <h1><a href="https://blog.notmyidea.org/using-datasette-for-tracking-my-professional-activity.html" id="page-title">Using Datasette for tracking my professional&nbsp;activity</a></h1>
<p>I&#8217;ve been following Simon Willison since quite some time, but I&#8217;ve actually never played with his main project <a href="https://datasette.io">Datasette</a>&nbsp;before.</p>
<p>As I&#8217;m going back into development, I&#8217;m trying to track where my time goes, to be able to find patterns, and just remember how much time …</p>
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau - </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time> <time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time>
@ -119,8 +108,14 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1>
A heads-up on what I've been doing this week on uMap A heads-up on what I've been doing this week on uMap
</section> </section>
<section class="section index">
<time datetime="2023-11-11T00:00:00+01:00">11 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/graphs.html">Graphs</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sql.html">SQL</a> <h1><a href="https://blog.notmyidea.org/using-datasette-for-tracking-my-professional-activity.html" id="page-title">Using Datasette for tracking my professional&nbsp;activity</a></h1>
<p>I&#8217;ve been following Simon Willison since quite some time, but I&#8217;ve actually never played with his main project <a href="https://datasette.io">Datasette</a>&nbsp;before.</p>
<p>As I&#8217;m going back into development, I&#8217;m trying to track where my time goes, to be able to find patterns, and just remember how much time …</p>
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau - </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time> <time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time>
@ -119,8 +108,14 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1>
A heads-up on what I've been doing this week on uMap A heads-up on what I've been doing this week on uMap
</section> </section>
<section class="section index">
<time datetime="2023-11-11T00:00:00+01:00">11 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/graphs.html">Graphs</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sql.html">SQL</a> <h1><a href="https://blog.notmyidea.org/using-datasette-for-tracking-my-professional-activity.html" id="page-title">Using Datasette for tracking my professional&nbsp;activity</a></h1>
<p>I&#8217;ve been following Simon Willison since quite some time, but I&#8217;ve actually never played with his main project <a href="https://datasette.io">Datasette</a>&nbsp;before.</p>
<p>As I&#8217;m going back into development, I&#8217;m trying to track where my time goes, to be able to find patterns, and just remember how much time …</p>
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau - </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time> <time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time>
@ -119,8 +108,14 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1>
A heads-up on what I've been doing this week on uMap A heads-up on what I've been doing this week on uMap
</section> </section>
<section class="section index">
<time datetime="2023-11-11T00:00:00+01:00">11 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/graphs.html">Graphs</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sql.html">SQL</a> <h1><a href="https://blog.notmyidea.org/using-datasette-for-tracking-my-professional-activity.html" id="page-title">Using Datasette for tracking my professional&nbsp;activity</a></h1>
<p>I&#8217;ve been following Simon Willison since quite some time, but I&#8217;ve actually never played with his main project <a href="https://datasette.io">Datasette</a>&nbsp;before.</p>
<p>As I&#8217;m going back into development, I&#8217;m trying to track where my time goes, to be able to find patterns, and just remember how much time …</p>
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau - </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time> <time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time>
@ -119,8 +108,14 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1>
A heads-up on what I've been doing this week on uMap A heads-up on what I've been doing this week on uMap
</section> </section>
<section class="section index">
<time datetime="2023-11-11T00:00:00+01:00">11 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/graphs.html">Graphs</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sql.html">SQL</a> <h1><a href="https://blog.notmyidea.org/using-datasette-for-tracking-my-professional-activity.html" id="page-title">Using Datasette for tracking my professional&nbsp;activity</a></h1>
<p>I&#8217;ve been following Simon Willison since quite some time, but I&#8217;ve actually never played with his main project <a href="https://datasette.io">Datasette</a>&nbsp;before.</p>
<p>As I&#8217;m going back into development, I&#8217;m trying to track where my time goes, to be able to find patterns, and just remember how much time …</p>
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau - </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time> <time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time>
@ -119,8 +108,14 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1>
A heads-up on what I've been doing this week on uMap A heads-up on what I've been doing this week on uMap
</section> </section>
<section class="section index">
<time datetime="2023-11-11T00:00:00+01:00">11 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/graphs.html">Graphs</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sql.html">SQL</a> <h1><a href="https://blog.notmyidea.org/using-datasette-for-tracking-my-professional-activity.html" id="page-title">Using Datasette for tracking my professional&nbsp;activity</a></h1>
<p>I&#8217;ve been following Simon Willison since quite some time, but I&#8217;ve actually never played with his main project <a href="https://datasette.io">Datasette</a>&nbsp;before.</p>
<p>As I&#8217;m going back into development, I&#8217;m trying to track where my time goes, to be able to find patterns, and just remember how much time …</p>
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau - </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time> <time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time>
@ -119,8 +108,14 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1>
A heads-up on what I've been doing this week on uMap A heads-up on what I've been doing this week on uMap
</section> </section>
<section class="section index">
<time datetime="2023-11-11T00:00:00+01:00">11 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/graphs.html">Graphs</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sql.html">SQL</a> <h1><a href="https://blog.notmyidea.org/using-datasette-for-tracking-my-professional-activity.html" id="page-title">Using Datasette for tracking my professional&nbsp;activity</a></h1>
<p>I&#8217;ve been following Simon Willison since quite some time, but I&#8217;ve actually never played with his main project <a href="https://datasette.io">Datasette</a>&nbsp;before.</p>
<p>As I&#8217;m going back into development, I&#8217;m trying to track where my time goes, to be able to find patterns, and just remember how much time …</p>
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau - </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time> <time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time>
@ -119,8 +108,14 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1>
A heads-up on what I've been doing this week on uMap A heads-up on what I've been doing this week on uMap
</section> </section>
<section class="section index">
<time datetime="2023-11-11T00:00:00+01:00">11 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/graphs.html">Graphs</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sql.html">SQL</a> <h1><a href="https://blog.notmyidea.org/using-datasette-for-tracking-my-professional-activity.html" id="page-title">Using Datasette for tracking my professional&nbsp;activity</a></h1>
<p>I&#8217;ve been following Simon Willison since quite some time, but I&#8217;ve actually never played with his main project <a href="https://datasette.io">Datasette</a>&nbsp;before.</p>
<p>As I&#8217;m going back into development, I&#8217;m trying to track where my time goes, to be able to find patterns, and just remember how much time …</p>
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau - </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time> <time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time>
@ -119,8 +108,14 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1>
A heads-up on what I've been doing this week on uMap A heads-up on what I've been doing this week on uMap
</section> </section>
<section class="section index">
<time datetime="2023-11-11T00:00:00+01:00">11 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/graphs.html">Graphs</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sql.html">SQL</a> <h1><a href="https://blog.notmyidea.org/using-datasette-for-tracking-my-professional-activity.html" id="page-title">Using Datasette for tracking my professional&nbsp;activity</a></h1>
<p>I&#8217;ve been following Simon Willison since quite some time, but I&#8217;ve actually never played with his main project <a href="https://datasette.io">Datasette</a>&nbsp;before.</p>
<p>As I&#8217;m going back into development, I&#8217;m trying to track where my time goes, to be able to find patterns, and just remember how much time …</p>
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau - </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time> <time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time>
@ -119,8 +108,14 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1>
A heads-up on what I've been doing this week on uMap A heads-up on what I've been doing this week on uMap
</section> </section>
<section class="section index">
<time datetime="2023-11-11T00:00:00+01:00">11 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/graphs.html">Graphs</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sql.html">SQL</a> <h1><a href="https://blog.notmyidea.org/using-datasette-for-tracking-my-professional-activity.html" id="page-title">Using Datasette for tracking my professional&nbsp;activity</a></h1>
<p>I&#8217;ve been following Simon Willison since quite some time, but I&#8217;ve actually never played with his main project <a href="https://datasette.io">Datasette</a>&nbsp;before.</p>
<p>As I&#8217;m going back into development, I&#8217;m trying to track where my time goes, to be able to find patterns, and just remember how much time …</p>
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau - </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time> <time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time>
@ -119,8 +108,14 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1>
A heads-up on what I've been doing this week on uMap A heads-up on what I've been doing this week on uMap
</section> </section>
<section class="section index">
<time datetime="2023-11-11T00:00:00+01:00">11 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/graphs.html">Graphs</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sql.html">SQL</a> <h1><a href="https://blog.notmyidea.org/using-datasette-for-tracking-my-professional-activity.html" id="page-title">Using Datasette for tracking my professional&nbsp;activity</a></h1>
<p>I&#8217;ve been following Simon Willison since quite some time, but I&#8217;ve actually never played with his main project <a href="https://datasette.io">Datasette</a>&nbsp;before.</p>
<p>As I&#8217;m going back into development, I&#8217;m trying to track where my time goes, to be able to find patterns, and just remember how much time …</p>
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau - </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time> <time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time>
@ -119,8 +108,14 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1>
A heads-up on what I've been doing this week on uMap A heads-up on what I've been doing this week on uMap
</section> </section>
<section class="section index">
<time datetime="2023-11-11T00:00:00+01:00">11 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/graphs.html">Graphs</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sql.html">SQL</a> <h1><a href="https://blog.notmyidea.org/using-datasette-for-tracking-my-professional-activity.html" id="page-title">Using Datasette for tracking my professional&nbsp;activity</a></h1>
<p>I&#8217;ve been following Simon Willison since quite some time, but I&#8217;ve actually never played with his main project <a href="https://datasette.io">Datasette</a>&nbsp;before.</p>
<p>As I&#8217;m going back into development, I&#8217;m trying to track where my time goes, to be able to find patterns, and just remember how much time …</p>
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau - </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time> <time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time>
@ -119,8 +108,14 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1>
A heads-up on what I've been doing this week on uMap A heads-up on what I've been doing this week on uMap
</section> </section>
<section class="section index">
<time datetime="2023-11-11T00:00:00+01:00">11 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/graphs.html">Graphs</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sql.html">SQL</a> <h1><a href="https://blog.notmyidea.org/using-datasette-for-tracking-my-professional-activity.html" id="page-title">Using Datasette for tracking my professional&nbsp;activity</a></h1>
<p>I&#8217;ve been following Simon Willison since quite some time, but I&#8217;ve actually never played with his main project <a href="https://datasette.io">Datasette</a>&nbsp;before.</p>
<p>As I&#8217;m going back into development, I&#8217;m trying to track where my time goes, to be able to find patterns, and just remember how much time …</p>
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau - </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time> <time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time>
@ -119,8 +108,14 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1>
A heads-up on what I've been doing this week on uMap A heads-up on what I've been doing this week on uMap
</section> </section>
<section class="section index">
<time datetime="2023-11-11T00:00:00+01:00">11 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/graphs.html">Graphs</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sql.html">SQL</a> <h1><a href="https://blog.notmyidea.org/using-datasette-for-tracking-my-professional-activity.html" id="page-title">Using Datasette for tracking my professional&nbsp;activity</a></h1>
<p>I&#8217;ve been following Simon Willison since quite some time, but I&#8217;ve actually never played with his main project <a href="https://datasette.io">Datasette</a>&nbsp;before.</p>
<p>As I&#8217;m going back into development, I&#8217;m trying to track where my time goes, to be able to find patterns, and just remember how much time …</p>
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau - </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time> <time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time>
@ -119,8 +108,14 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1>
A heads-up on what I've been doing this week on uMap A heads-up on what I've been doing this week on uMap
</section> </section>
<section class="section index">
<time datetime="2023-11-11T00:00:00+01:00">11 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/graphs.html">Graphs</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sql.html">SQL</a> <h1><a href="https://blog.notmyidea.org/using-datasette-for-tracking-my-professional-activity.html" id="page-title">Using Datasette for tracking my professional&nbsp;activity</a></h1>
<p>I&#8217;ve been following Simon Willison since quite some time, but I&#8217;ve actually never played with his main project <a href="https://datasette.io">Datasette</a>&nbsp;before.</p>
<p>As I&#8217;m going back into development, I&#8217;m trying to track where my time goes, to be able to find patterns, and just remember how much time …</p>
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau - </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time> <time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time>
@ -119,8 +108,14 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1>
A heads-up on what I've been doing this week on uMap A heads-up on what I've been doing this week on uMap
</section> </section>
<section class="section index">
<time datetime="2023-11-11T00:00:00+01:00">11 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/graphs.html">Graphs</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sql.html">SQL</a> <h1><a href="https://blog.notmyidea.org/using-datasette-for-tracking-my-professional-activity.html" id="page-title">Using Datasette for tracking my professional&nbsp;activity</a></h1>
<p>I&#8217;ve been following Simon Willison since quite some time, but I&#8217;ve actually never played with his main project <a href="https://datasette.io">Datasette</a>&nbsp;before.</p>
<p>As I&#8217;m going back into development, I&#8217;m trying to track where my time goes, to be able to find patterns, and just remember how much time …</p>
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau - </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time> <time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time>
@ -119,8 +108,14 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1>
A heads-up on what I've been doing this week on uMap A heads-up on what I've been doing this week on uMap
</section> </section>
<section class="section index">
<time datetime="2023-11-11T00:00:00+01:00">11 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/graphs.html">Graphs</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sql.html">SQL</a> <h1><a href="https://blog.notmyidea.org/using-datasette-for-tracking-my-professional-activity.html" id="page-title">Using Datasette for tracking my professional&nbsp;activity</a></h1>
<p>I&#8217;ve been following Simon Willison since quite some time, but I&#8217;ve actually never played with his main project <a href="https://datasette.io">Datasette</a>&nbsp;before.</p>
<p>As I&#8217;m going back into development, I&#8217;m trying to track where my time goes, to be able to find patterns, and just remember how much time …</p>
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau - </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time> <time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time>
@ -119,8 +108,14 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1>
A heads-up on what I've been doing this week on uMap A heads-up on what I've been doing this week on uMap
</section> </section>
<section class="section index">
<time datetime="2023-11-11T00:00:00+01:00">11 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/graphs.html">Graphs</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sql.html">SQL</a> <h1><a href="https://blog.notmyidea.org/using-datasette-for-tracking-my-professional-activity.html" id="page-title">Using Datasette for tracking my professional&nbsp;activity</a></h1>
<p>I&#8217;ve been following Simon Willison since quite some time, but I&#8217;ve actually never played with his main project <a href="https://datasette.io">Datasette</a>&nbsp;before.</p>
<p>As I&#8217;m going back into development, I&#8217;m trying to track where my time goes, to be able to find patterns, and just remember how much time …</p>
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau - </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time> <time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time>
@ -119,8 +108,14 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1>
A heads-up on what I've been doing this week on uMap A heads-up on what I've been doing this week on uMap
</section> </section>
<section class="section index">
<time datetime="2023-11-11T00:00:00+01:00">11 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/graphs.html">Graphs</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sql.html">SQL</a> <h1><a href="https://blog.notmyidea.org/using-datasette-for-tracking-my-professional-activity.html" id="page-title">Using Datasette for tracking my professional&nbsp;activity</a></h1>
<p>I&#8217;ve been following Simon Willison since quite some time, but I&#8217;ve actually never played with his main project <a href="https://datasette.io">Datasette</a>&nbsp;before.</p>
<p>As I&#8217;m going back into development, I&#8217;m trying to track where my time goes, to be able to find patterns, and just remember how much time …</p>
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau - </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time> <time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time>
@ -119,8 +108,14 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1>
A heads-up on what I've been doing this week on uMap A heads-up on what I've been doing this week on uMap
</section> </section>
<section class="section index">
<time datetime="2023-11-11T00:00:00+01:00">11 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/graphs.html">Graphs</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sql.html">SQL</a> <h1><a href="https://blog.notmyidea.org/using-datasette-for-tracking-my-professional-activity.html" id="page-title">Using Datasette for tracking my professional&nbsp;activity</a></h1>
<p>I&#8217;ve been following Simon Willison since quite some time, but I&#8217;ve actually never played with his main project <a href="https://datasette.io">Datasette</a>&nbsp;before.</p>
<p>As I&#8217;m going back into development, I&#8217;m trying to track where my time goes, to be able to find patterns, and just remember how much time …</p>
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li>

View file

@ -43,17 +43,6 @@ Alexis Métaireau - </title>
</ul> </ul>
</section> </section>
<h1></h1> <h1></h1>
<section class="section index">
<time datetime="2024-02-22T00:00:00+01:00">22 février 2024</time>
<a class='tag' href="https://blog.notmyidea.org/tag/django.html">django</a>, <a class='tag' href="https://blog.notmyidea.org/tag/orm.html">orm</a>, <a class='tag' href="https://blog.notmyidea.org/tag/migrations.html">migrations</a> <h1><a href="https://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html" id="page-title">Changing the primary key of a model in&nbsp;Django</a></h1>
<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
The previous model was using django&nbsp;ids.</p>
<p>The migrations will need to do the following&nbsp;things:</p>
<ul>
<li>Create a new <code>uuid</code> field/column in the&nbsp;database</li>
<li>Iterate over the existing items …</li></ul>
</section>
<section class="section index"> <section class="section index">
<time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time> <time datetime="2024-02-12T00:00:00+01:00">12 février 2024</time>
@ -119,8 +108,14 @@ sudo<span class="w"> </span>diskutil<span class="w"> </span>eraseDisk<span class
<a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1> <a class='tag' href="https://blog.notmyidea.org/tag/python.html">Python</a>, <a class='tag' href="https://blog.notmyidea.org/tag/crdt.html">CRDT</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sync.html">Sync</a>, <a class='tag' href="https://blog.notmyidea.org/tag/umap.html">uMap</a> <h1><a href="https://blog.notmyidea.org/adding-real-time-collaboration-to-umap-first-week.html" id="page-title">Adding Real-Time Collaboration to uMap, first&nbsp;week</a></h1>
A heads-up on what I've been doing this week on uMap A heads-up on what I've been doing this week on uMap
</section> </section>
<section class="section index">
<time datetime="2023-11-11T00:00:00+01:00">11 novembre 2023</time>
<a class='tag' href="https://blog.notmyidea.org/tag/datasette.html">Datasette</a>, <a class='tag' href="https://blog.notmyidea.org/tag/graphs.html">Graphs</a>, <a class='tag' href="https://blog.notmyidea.org/tag/sql.html">SQL</a> <h1><a href="https://blog.notmyidea.org/using-datasette-for-tracking-my-professional-activity.html" id="page-title">Using Datasette for tracking my professional&nbsp;activity</a></h1>
<p>I&#8217;ve been following Simon Willison since quite some time, but I&#8217;ve actually never played with his main project <a href="https://datasette.io">Datasette</a>&nbsp;before.</p>
<p>As I&#8217;m going back into development, I&#8217;m trying to track where my time goes, to be able to find patterns, and just remember how much time …</p>
</section>
<ul> <ul>
<li><a href="https://blog.notmyidea.org/2023-semaine-49-et-50.html" rel="bookmark" title="Permalink to 2023, Semaine 49 et 50">2023, Semaine 49 et&nbsp;50</a></li>
<li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li> <li><a href="https://blog.notmyidea.org/rescuing-a-broken-asahi-linux-workstation.html" rel="bookmark" title="Permalink to Rescuing a broken asahi linux workstation">Rescuing a broken asahi linux&nbsp;workstation</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-48.html" rel="bookmark" title="Permalink to 2023, Semaine 48">2023, Semaine&nbsp;48</a></li>
<li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li> <li><a href="https://blog.notmyidea.org/2023-semaine-47.html" rel="bookmark" title="Permalink to 2023, Semaine 47">2023, Semaine&nbsp;47</a></li>

Some files were not shown because too many files have changed in this diff Show more