0

(fcdjango_venv) Subinui-MacBook-Pro:Impassion_community subin$ python3 manage.py makemigrations No changes detected

I'm learning Basic Django right now, and was following the lecture, but got problem. I followed the lecture, so first I typed the code on models.py

from django.db import models

# Create your models here.


class Impassionuser(models.Model):
    username=models.CharField(max_length=64, 
                                verbose_name='사용자명')
    password = models.CharField(max_length=64, 
                                verbose_name='비밀번호')
    registered_dttm = models.DataTimeField(auto_now_add=True, 
                                verbose_name='등록시간')

    class Meta:
        db_table = 'Impassion_Impassionuser'

and then on Terminal, I typed

(fcdjango_venv) Subinui-MacBook-Pro:Impassion_community subin$ python3 manage.py makemigrations

but the result was

No changes detected

In the lecture, after typing python3 manage.py makemigrations

it shows

Migrations for "User" :
    user/migrations/0001_initial.py
        - Create model User

how can I get the same result?

Dpseh
  • 1
  • 2

1 Answers1

0

Include the name of your app after the makemigrations command and make sure you have a migrations folder created within your app.

Dan Swain
  • 2,910
  • 1
  • 16
  • 36
  • I have migrations folder in my app. and I included the name of my app after the makemigations, and I got other mssg this time. "No installed app with label 'USER'.' but I've already added the app on INSTALLED_APPS (settings.py) – Dpseh Jun 18 '19 at 16:17
  • Make sure `user` is all lowercase. Please post your `settings.py`. – Dan Swain Jun 18 '19 at 20:10