Re: migrations: "no changes detected"

2022-02-16 Thread Dev femibadmus
I have and solve this allot, after adding to ur model myapp run the following: >> python manage.py makemigrations myapp >> python manage.py migrate myapp num where num is the new migrations made u can see this when u open myapp/migrations the new file 000(n) is the num If this doesn't work try

Re: migrations: "no changes detected"

2022-02-09 Thread frank maduka
Make sure that You have registered you App you created and used it's models. Py to create database tables as well as registering models to the admin.py On Wed, Feb 9, 2022, 7:14 AM ramadhan ngallen wrote: > Your apps should be below django default apps > I.e below static files > > > On users you

Re: migrations: "no changes detected"

2022-02-08 Thread ramadhan ngallen
Share project structure as an image and details project settings(settings.py) On 9 Feb 2022, 07:05 +0300, 'Delvin Alexander' via Django users , wrote: > there is! but will this have something to do with it? > - "from django.contrib.auth.models import User" > Rite now the error is displaying this:

Re: migrations: "no changes detected"

2022-02-08 Thread ramadhan ngallen
Your apps should be below django default apps I.e below static files On users you can from django.contrib.auth import get_user_model Then initiate it as User = get_user_model() To use it E.g my_users = User.objects.all() On 9 Feb 2022, 07:05 +0300, 'Delvin Alexander' via Django users , wrot

Re: migrations: "no changes detected"

2022-02-08 Thread 'Delvin Alexander' via Django users
there is! but will this have something to do with it? - "from django.contrib.auth.models import User" Rite now the error is displaying this: - Requested setting INSTALLED_APPS, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.

Re: migrations: "no changes detected"

2022-02-08 Thread ramadhan ngallen
On your app(blog) on the module(folder) migrations,   make sure there is a file named   __init__.py You can share app structure too On 9 Feb 2022, 06:26 +0300, 'Delvin Alexander' via Django users , wrote: > here is a list of my installed apps: > > i added the blog.apps but still nothing. > > >

Re: migrations: "no changes detected"

2022-02-08 Thread 'Delvin Alexander' via Django users
here is a list of my installed apps: i added the blog.apps but still nothing. INSTALLED_APPS = [ 'blog.apps.BlogConfig', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib

Re: migrations: "no changes detected"

2022-02-08 Thread Yeboah Dominic
the issue from current configuration > > > > Regards > > > > *From:* 'Delvin Alexander' via Django users [mailto: > django-users@googlegroups.com] > *Sent:* 08 February 2022 10:12 > *To:* Django users > *Subject:* migrations: "no changes detected&quo

RE: migrations: "no changes detected"

2022-02-08 Thread Feroz Ahmed
8 February 2022 10:12 To: Django users Subject: migrations: "no changes detected" I am trying to run migrations so that i can create a table, but when I type out, "python manage.py makemigrations" it returns this: "no changes detected" would anyone know the

Re: migrations: "no changes detected"

2022-02-08 Thread Fajri Fath
You must delete your folder migrations in your app. Example: rm -rf myapplication/migrations And rm db.sqlite3 and run python manage.py makemigrations Pada tanggal Sel, 8 Feb 2022 11.43 AM, 'Delvin Alexander' via Django users < django-users@googlegroups.com> menulis: > I am trying to run mi

Re: migrations: "no changes detected"

2022-02-07 Thread Armaan Alam
delete database and migration then again run makemigrations and migrate On Tue, 8 Feb 2022 at 11:05, RANGA BHARATH JINKA wrote: > Hi, > > I think you forgot to add the app name in settings file. Please add the > app names in installed apps. Then it will find out the models. > > All the best > >

Re: migrations: "no changes detected"

2022-02-07 Thread RANGA BHARATH JINKA
Hi, I think you forgot to add the app name in settings file. Please add the app names in installed apps. Then it will find out the models. All the best On Tue, 8 Feb 2022, 10:14 am 'Delvin Alexander' via Django users, < django-users@googlegroups.com> wrote: > I am trying to run migrations so t

migrations: "no changes detected"

2022-02-07 Thread 'Delvin Alexander' via Django users
I am trying to run migrations so that i can create a table, but when I type out, "python manage.py makemigrations" it returns this: "no changes detected" would anyone know the reason for this? -- You received this message because you are subscribed to the Google Groups "Django users" group. To