2

i guess i'm stuck at a big problem. i had to delete the migrations directory in my django app and i thought when i run python manage.py makemigrations the directory will be created back, however i got an error

django.db.migrations.graph.NodeNotFoundError: Migration shoppingcart.0001_initial dependencies reference nonexistent parent node (u'student', u'0001_initial')

what i did after is recreate the migrations directory and put inside all the migrations files and run makemigrations but i'm having another error

IOError: [Errno 13] Permission denied: u'/edx/app/edxapp/edx-platform/common/djangoapps/student/migrations/0007_auto_20170427_1816.py'

ChemseddineZ
  • 1,728
  • 3
  • 14
  • 27

1 Answers1

1

I have seen this permission denied issue a few different times. These steps have helped me in the past:

  • Make sure you have a blank __init__.py file in your migrations directory

  • Make sure you you grant correct permissions on the directory, something like sudo chown <dir_name>

accraze
  • 1,522
  • 7
  • 20
  • 46
  • Thanks for your answer, i missed the `__init__.py` file in the directory. the makemigrations is working perfectly now, however when i try to acces the Users in the django admin panel i get this error **(1054, "Unknown column 'student_myuser.myuser_id' in 'field list'")** – ChemseddineZ Apr 27 '17 at 23:36
  • Sounds like the migrations haven't been applied. Try running `python manage.py migrate` and check the admin panel again. – accraze Apr 27 '17 at 23:41