Question: I created a django application so along the line I wanted to reset the entire database so I deleted the database and deleted all migration files. it is not the first time I have done such which I assume is not a bad way of doing it. so I ran the command like `python manage.py makemigrations` and I got this error in my terminal 

```
 django.db.migrations.exceptions.NodeNotFoundError: 
Migration auth.0009_user_following dependencies reference nonexistent parent node (u'profiles', u'0001_initial')

```

I am totally confused and I dont have any idea on what to do next. HELP

Answer: 
You have a custom migrations in your generic app auth, just delete the file:

```
VIRTUALENV_PATH/lib/python2.7/site-packages/django/contrib/auth/migrations/auth.0009_user_following

```
You need to run this to get the initial migration:

```
python manage.py makemigrations <nameofyourapp>

```

Then run

```
python manage.py migrate

```