python manage.py migrate Then use Python manage.py makemigrations On Tue, 20 Nov 2018, 10:10 p.m. Tim Johnson <[email protected] wrote:
> using django on ubuntu 16.04 > python 3.5.2 > django.VERSION = > (2, 0, 0, 'final', 0) > Working from the Django Core book by Nigel George. > When launching > > (djenv) tim@linus:~/prj/cgi/djenv/djtest$ ./manage.py runserver > Performing system checks... > > System check identified no issues (0 silenced). > > # the following is a matter of concern: > > You have 1 unapplied migration(s). Your project may not work > properly until you apply the migrations for app(s): admin. > Run 'python manage.py migrate' to apply them. > > November 19, 2018 - 23:05:05 > Django version 2.1.3, using settings 'djtest.settings' > Starting development server at http://127.0.0.1:8000/ > > # Listing migrations shows: > > (djenv) tim@linus:~/prj/cgi/djenv/djtest$ python manage.py showmigrations > --list > admin > [X] 0001_initial > [X] 0002_logentry_remove_auto_add > [ ] 0003_logentry_add_action_flag_choices > auth > [X] 0001_initial > [X] 0002_alter_permission_name_max_length > [X] 0003_alter_user_email_max_length > [X] 0004_alter_user_username_opts > [X] 0005_alter_user_last_login_null > [X] 0006_require_contenttypes_0002 > [X] 0007_alter_validators_add_error_messages > [X] 0008_alter_user_username_max_length > [X] 0009_alter_user_last_name_max_length > contenttypes > [X] 0001_initial > [X] 0002_remove_content_type_name > sessions > [X] 0001_initial > > # It appears that 0003_logentry_add_action_flag_choices > # is not applied > > Questions: > 1) How do I apply this feature? > 2) Where is further relevant discussions or documentation on this > issue? (I've so far not found anything to clarify) > 3) How do the migrations above correspond to DB tables (I'm using > the default sqlite3 configuration)? > > Thanks > -- > Tim Johnson > http://www.tj49.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 [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/20181120164001.GI30127%40mail.akwebsoft.com > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAO2bGcwJKgiLUrp7xx3AYYO19rz5yAQny2NcX6QmnKuJpu4Rtw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

