Saturday, April 1, 2023

Re: Migration running in shell, but no change in DB

Dear Muhammad

Thanks, but I did that several times. And I also check the INSTALLED_APPS. It is listed there, as it was before. :/

Best regards
Martin

On Saturday, April 1, 2023 at 2:48:05 PM UTC+2 Muhammad Juwaini Abdul Rahman wrote:
Try running:
```
./manage.py makemigrations <app_name>
```

If there are no changes detected by makemigrations, something wrong with your app. Check INSTALLED_APPS in settings.py for any error.

On Friday, 31 March 2023 at 22:17:06 UTC+8 Martin Heitmann wrote:
Hello everyone

I have a project with multiple apps in it. As database I use MariaDB. Have not touched it for a while, but now I had to add a field to the models of one app. makemigrations and migrate run without any indication of an error. But no change occurs in the db. Tested it with an altered models.py in another app and the result is the same. Do you have any advice how to narrow this down?

Best regards
Martin

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/4c8bbe4c-57d3-4d61-bbe9-23fc8644afb7n%40googlegroups.com.

Re: Migration running in shell, but no change in DB

Dear Jason
Thanks for your reply. I will gladly do that. This is the latest migration file:

# Generated by Django 3.2.10 on 2023-04-01 13:45

from django.db import migrations, models
import django.utils.timezone


class Migration(migrations.Migration):

    dependencies = [
        ('ObjPLW2', '0037_alter_waeschepaket_w_bezahlt'),
    ]

    operations = [
        migrations.CreateModel(
            name='Wartungsarbeit',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('wa_titel', models.CharField(max_length=201)),
                ('wa_beschreibung', models.TextField()),
                ('wa_turnus', models.PositiveIntegerField(default=1)),
                ('wa_startdatum', models.DateField(default=django.utils.timezone.now)),
                ('wa_erstelldatum', models.DateTimeField(auto_now_add=True)),
                ('wa_bearbeitungsdatum', models.DateTimeField(auto_now=True)),
            ],
        ),
    ]

Does this help?
On Saturday, April 1, 2023 at 1:55:00 PM UTC+2 Jason wrote:
part of getting effective help is sharing how you're doing things and the code.  for example, sharing the migration generated would be helpful. you do have the context of how and what is being executed, we don't, so sharing that with your original questions is a big part in getting effective help
On Saturday, April 1, 2023 at 4:08:06 AM UTC-4 Martin Heitmann wrote:
The migrations do not show up in the django_mirations table. The problem must occur earlier.
On Saturday, April 1, 2023 at 8:42:20 AM UTC+2 David Nugent wrote:
I would check in the django_migrations table to ensure that the migration has successfully been run.



From: 'Martin Heitmann' via Django users <django...@googlegroups.com>
Reply: django...@googlegroups.com <django...@googlegroups.com>
Date: 31 March 2023 at 19:46:02
To: Django users <django...@googlegroups.com>
Subject:  Migration running in shell, but no change in DB

Hello everyone

I have a project with multiple apps in it. As database I use MariaDB. Have not touched it for a while, but now I had to add a field to the models of one app. makemigrations and migrate run without any indication of an error. But no change occurs in the db. Tested it with an altered models.py in another app and the result is the same. Do you have any advice how to narrow this down?

Best regards
Martin
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/be9ef414-4b51-4072-a1b7-b7ba036016aan%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c6d2bbd0-96cd-4f69-90c3-46d082029704n%40googlegroups.com.

Re: Migration running in shell, but no change in DB

Try running:
```
./manage.py makemigrations <app_name>
```

If there are no changes detected by makemigrations, something wrong with your app. Check INSTALLED_APPS in settings.py for any error.

On Friday, 31 March 2023 at 22:17:06 UTC+8 Martin Heitmann wrote:
Hello everyone

I have a project with multiple apps in it. As database I use MariaDB. Have not touched it for a while, but now I had to add a field to the models of one app. makemigrations and migrate run without any indication of an error. But no change occurs in the db. Tested it with an altered models.py in another app and the result is the same. Do you have any advice how to narrow this down?

Best regards
Martin

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/3df9a5a4-657b-4bef-a124-a146b71d5882n%40googlegroups.com.

Re: Migration running in shell, but no change in DB

part of getting effective help is sharing how you're doing things and the code.  for example, sharing the migration generated would be helpful. you do have the context of how and what is being executed, we don't, so sharing that with your original questions is a big part in getting effective help
On Saturday, April 1, 2023 at 4:08:06 AM UTC-4 Martin Heitmann wrote:
The migrations do not show up in the django_mirations table. The problem must occur earlier.
On Saturday, April 1, 2023 at 8:42:20 AM UTC+2 David Nugent wrote:
I would check in the django_migrations table to ensure that the migration has successfully been run.



From: 'Martin Heitmann' via Django users <django...@googlegroups.com>
Reply: django...@googlegroups.com <django...@googlegroups.com>
Date: 31 March 2023 at 19:46:02
To: Django users <django...@googlegroups.com>
Subject:  Migration running in shell, but no change in DB

Hello everyone

I have a project with multiple apps in it. As database I use MariaDB. Have not touched it for a while, but now I had to add a field to the models of one app. makemigrations and migrate run without any indication of an error. But no change occurs in the db. Tested it with an altered models.py in another app and the result is the same. Do you have any advice how to narrow this down?

Best regards
Martin
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/be9ef414-4b51-4072-a1b7-b7ba036016aan%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c689793e-3795-46c1-b875-8f2068981357n%40googlegroups.com.

Re: Debug error when c

Remove the second urlpattern, and add the debug_toolbar path to the first urlpattern. Try running makemigrations and migrate after installing the debug_toolbar.

On Thursday, March 30, 2023 at 6:48:51 PM UTC+1 Ricky Abura wrote:
Hi,
I am learning django, in the process of developing youtube clone, I meet the attached error when installing django debug toolbar. I don't know where I am not getting right but I strictly follow some tutorial. Any assistance please?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/36cfe6fe-4186-4fa8-9c31-9e57a0428c03n%40googlegroups.com.

Re: Migration running in shell, but no change in DB

The migrations do not show up in the django_mirations table. The problem must occur earlier.
On Saturday, April 1, 2023 at 8:42:20 AM UTC+2 David Nugent wrote:
I would check in the django_migrations table to ensure that the migration has successfully been run.



From: 'Martin Heitmann' via Django users <django...@googlegroups.com>
Reply: django...@googlegroups.com <django...@googlegroups.com>
Date: 31 March 2023 at 19:46:02
To: Django users <django...@googlegroups.com>
Subject:  Migration running in shell, but no change in DB

Hello everyone

I have a project with multiple apps in it. As database I use MariaDB. Have not touched it for a while, but now I had to add a field to the models of one app. makemigrations and migrate run without any indication of an error. But no change occurs in the db. Tested it with an altered models.py in another app and the result is the same. Do you have any advice how to narrow this down?

Best regards
Martin
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/be9ef414-4b51-4072-a1b7-b7ba036016aan%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/85e72a9e-2bf1-48f8-aa48-059487c172ccn%40googlegroups.com.

Re:Roles and Permissions in python Django

Hello friends i am doing a django project and i am stack on roles and permissions.This is what i am supposed to do.

I am supposed to do the roles and permissions.
So I have done the roles but now permissions is the problem.
For example the organisation admin and the local admin when logged into the system they are supposed to see the dashboard.
Security personnel is supposed to only validate the invites.
Staff resident and Portal user are only supposed to create invites.
But in my case all of them when logged in are seeing the dashboard.

Anyone who can help in this please.we can connect.

Regards,
Daisi Caroline.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/13ea8217-134d-4b6b-b7f9-1b79517748d3n%40googlegroups.com.