Django Tutorial #7 - Migrations

Поделиться
HTML-код
  • Опубликовано: 14 янв 2025

Комментарии • 43

  • @AvZNaV
    @AvZNaV 6 лет назад +13

    You make, by far, the best tutorials on youtube for net related topics.

  • @joebegleycodes1347
    @joebegleycodes1347 6 лет назад +10

    Normally on these long tutorials, the code hits a snag and it's really hard to press on. Your videos are so straightforward and well taught that it doesn't happen. You're great at this. Never stop.

    • @NetNinja
      @NetNinja  6 лет назад +1

      Glad you like them, really appreciate your comments :)

  • @alexa22irl
    @alexa22irl 4 года назад +2

    You tutorials are the best! I'm a beginner in Django, but all you have explained so far makes so much sense! Great job! Thank you!

  • @ceejayx7225
    @ceejayx7225 5 лет назад +6

    DAAAMMN bro.... at the beginning you said, that this tutorial is gonna be the best.
    MAN you said the fuckin truth.
    The way you teach us how everything is wokring is amazing!
    I have watched a few tutorials from other YTer but you explained the best.
    Big thumbs up from germany.

    • @NetNinja
      @NetNinja  5 лет назад +1

      Thanks Christian :)

  • @leylaleyla8953
    @leylaleyla8953 Год назад +1

    You are the best. The clearest

  • @DaAaRcCcHOoO
    @DaAaRcCcHOoO 7 лет назад +1

    Thank you for this tutorial, I like it so far

  • @t.gentertainmentgroup1262
    @t.gentertainmentgroup1262 Год назад +2

    Is it just me or he makes it looks so easy

  • @mazmk6522
    @mazmk6522 2 года назад

    Thank You so much kind man, god bless you

  • @azgartar
    @azgartar 4 года назад +3

    How does the editor know where to create the migrations file....you were in the djangonautic directory when you ran the command, yet it created the file within articles/migrations. What if there was another app created with a migrations folder, where would it then have been created. Please advise

    • @SamChaneyProductions
      @SamChaneyProductions 4 года назад +2

      You can add the app name (and the most current migration file) after migrate ex: "python manage.py migrate my_app 003_migration_file"
      The forum post below has more info:
      stackoverflow.com/questions/32531350/django-1-8-run-a-specific-migration

  • @shadiismailalzouabi1035
    @shadiismailalzouabi1035 4 года назад +2

    When I run: python manage.py migrate the next error appear: ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment? plz advise.

    • @shadiismailalzouabi1035
      @shadiismailalzouabi1035 4 года назад

      I found solution: djangowaves.com/tips-tricks/fix-import-error-no-module-named-django-core-management/

  • @arthurlp6381
    @arthurlp6381 5 лет назад +1

    Hi Shaun. Thanks for the video. Where did you specify database/user/pwd to use? If not done, what does django use by default? Thanks

  • @suvik619
    @suvik619 3 года назад

    can I know the theme on your Atom text editor pls, looks clean af?

  • @thebigvusi3377
    @thebigvusi3377 2 года назад

    Nigga you’re the best 🔥🔥 thanks for the informative videos 🙏🏻🙏🏻

  • @markgordon6513
    @markgordon6513 3 года назад

    great video pal

  • @saifshovon3439
    @saifshovon3439 3 года назад

    thanks a lot

  • @hengvicheka582
    @hengvicheka582 5 лет назад

    Thanks

  • @usernameundefined123
    @usernameundefined123 10 месяцев назад

    For some reason when I make a test in Django it always says it can’t find my models in the test_AppName. but my migration is there

  • @SamChaneyProductions
    @SamChaneyProductions 4 года назад

    So to make it super clear, makemigrations creates a migration file but does NOT affect the database and migrate takes the migration file(s) and DOES change the database?

  • @Opyjoestudio
    @Opyjoestudio 4 года назад +1

    after typing the command "python manage.py makemigrations" ,
    it returned an error message which says " No changes Detected"

    • @rahulmadhugiri
      @rahulmadhugiri 3 года назад +5

      For anyone that has this problem, make sure to save your "models.py" file before calling the "makemigrations" command. I had the problem and as soon as I saved the file, everything worked perfectly.

    • @anupamparihar1094
      @anupamparihar1094 3 года назад

      @@rahulmadhugiri thanks bro

  • @JoshT4life
    @JoshT4life 4 года назад

    what is the use of sqlmigrate?

  • @varuntaneja4654
    @varuntaneja4654 6 лет назад

    where are these 13 builtin models are hide for which we need to run the migrations?

  • @kjshdudnjdhdbdjdjxfxy
    @kjshdudnjdhdbdjdjxfxy 2 года назад

    your voice is magnificent...

  • @Lbmaniak
    @Lbmaniak 6 лет назад

    thx

  • @koroushsanabadi6790
    @koroushsanabadi6790 3 года назад

    can you tell me. what is it: no changes detected (..python manage.py makemigrations)

  • @Abolfazl-MI27
    @Abolfazl-MI27 3 года назад

    how to find 1 settion

  • @MultiDesire101
    @MultiDesire101 5 лет назад

    To the point tutorial videos. Otherwise, other tutorials are prolonged for nothing and in a few minutes, a person gets irritated and leaves.

  • @hankmoody2851
    @hankmoody2851 7 лет назад +1

    Hello, Ninja! I have an error while trying runserver or migrate commands
    return render(request, 'articles/article_list.html'),
    IndentationError: expected indented block
    Can you help me with it?
    Thank you for your lessons.

    • @magarmuch-xo
      @magarmuch-xo 7 лет назад

      Can you give a snapshot of the code in the views where your return render command is written?

    • @DivyanshBatham
      @DivyanshBatham 7 лет назад +1

      You might have accidentally added or removed the indentation on that line "return render(request, 'articles/article_list.html')," in the file articles\views.py

    • @jeffersnsn
      @jeffersnsn 6 лет назад

      It's an IndentationError. Always google your error messages

    • @yassir3715
      @yassir3715 6 лет назад

      You could've forgotten to add a TAB right before you type 'return' , that's basically an IdentationError.
      Python expects an Idented block

  • @mandeeppabla9131
    @mandeeppabla9131 6 лет назад

    Hey I have an error. When I run "python manage.py migrate'' ... I get the following error:
    (base) C:\Users\mpabl\Desktop\django_ex\djangoex>python manage.py migrate
    Operations to perform:
    Apply all migrations: admin, auth, contenttypes, sessions
    Running migrations:
    No migrations to apply.

    • @victoroleacu4558
      @victoroleacu4558 4 года назад

      I have the same problem, did you solve it?

    • @chawza8402
      @chawza8402 4 года назад

      i know its to late. have you commit the migration first? try "python manage.py makemigration" first before migrate

    • @victoroleacu4558
      @victoroleacu4558 4 года назад +2

      @@chawza8402 I managed to solve it, don't remember how. I think it was because of the migration file, it wasn't assuming it was a migration.

  • @yavuzkuru6720
    @yavuzkuru6720 2 года назад

    Thanks