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
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
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:
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
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.
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.
>
>
>
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
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
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
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
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
>
>
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
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
13 matches
Mail list logo