Python Django Crash Course

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

Комментарии • 1 тыс.

  • @TraversyMedia
    @TraversyMedia  5 лет назад +14

    Hey guys, this crash course uses Python 1.x. Most of it is still relavant, especially the slides, but I have an updated crash course project with version 2.x here - ruclips.net/video/e1IyzVyrLSU/видео.html

    • @zeytelaloi
      @zeytelaloi 5 лет назад +5

      Did you mean Django 1.x?

  • @davidconnelly1793
    @davidconnelly1793 7 лет назад +235

    Okay. This is officially starting to get ridiculous! How on Earth can one person have all those skills? Is there a bunch of Brad Traversy clones out there?

    • @TraversyMedia
      @TraversyMedia  7 лет назад +173

      Haha, just studying man. I am fortunate enough for this to be my full time job. Half the week is spent learning, half spent teaching. There is nothing special about me, anyone can do it, it's just the time and the passion that is needed.

    • @serpianrex
      @serpianrex 7 лет назад +33

      Even when your reply is totally true, I still agree with David. Man, at this pace you are gonna have more content that Udemy, hahaha

    • @tonimaunde
      @tonimaunde 6 лет назад +4

      Indeed. He is amazing.

    • @djellalmohamedaniss5010
      @djellalmohamedaniss5010 6 лет назад +4

      generally back en frameworks are very similar , you have MVC , routing , models , services , views , middlewares and other similar stuffs , so by learning one framework , it will be easy to learn others even if different programming languages ! and even programming languages are similar if you use them with the same paradigm :D

    • @ValentinSt
      @ValentinSt 5 лет назад +3

      Why is that question for? Out there are so many talented people. Brad is just one of them. It's matter of passion in programing, developing stuff and love in computing. Take for example Edward Snowden who knows everything from A to Z about cyber security and cyber threats etc and cryptography etc. Full-stack developers usually know more than one programming language and they know how to use them properly. It's hard and takes lot of years to master that skill to be a full-stack developer.

  • @behshadmohebali6234
    @behshadmohebali6234 5 лет назад +2

    Amazing course. Some stuff were kinda outdated almost 2 years after upload but nothing you can't fix with a quick search. I used PostgresQL instead of MySQL but the whole process of migrating and connecting to the database was painless. Good stuff man!

  • @roshanpandey5357
    @roshanpandey5357 5 лет назад +5

    Now, I'm getting the Django, love you Brad, you made it easy for me. You are a great man Brad :)

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

    Amazing! Over the summer I was looking for Django videos and didn't find anything this good. So grateful!

  • @t0m0san
    @t0m0san 7 лет назад +48

    For Python 3.6+:
    You no longer need to create a pip virtualenv.
    Run "python3 -m venv /path/to/new/virtual/environment" in the target "projects" folder, and then
    for Mac:
    "$source /bin/activate"
    for Windows:
    "C:\> \Scripts\activate.bat"
    After that, continue following Brad's tutorial.

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

      gist.github.com/pandafulmanda/730a9355e088a9970b18275cb9eadef3

    • @o1-preview
      @o1-preview 5 лет назад

      ahh thankyou

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

    I am glad you are taking on Sponsorship. For many years you just published your videos without sponsorship while many people kept making money with crappy contents. Keep the wonderful work you are doing.

  • @kapa4208
    @kapa4208 7 лет назад +382

    Hmm.. Can I use your brain as a framework please?

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

    Hey Brad, I can't tell you enough how good and useful your videos are. Every time I try to learn something new in the web dev world, I check your page. Your videos always save me hours of research.

  • @rthomques
    @rthomques 5 лет назад +10

    For those how are using Django 2.0 +, the url's could be rewritten like this:
    # posts/urls.py
    urlpatterns = [
    path('', views.index, name='index'),
    path('details//', views.details, name='details')
    ]
    and
    # djangoproject/urls.py
    urlpatterns = [
    path('', include('posts.urls')),
    path('admin/', admin.site.urls),
    path('posts/', include('posts.urls'))
    ]

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

      what do we import at the top?

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

      THANK YOU!!! The regex pattern thing has been deprecated. I did not use it anywhere else but this thing I had a difficult time figuring out. THANK YOU!!!

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

      @@oli2034 from django.urls import include, path

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

    Best one-hour tutorial ever, covered everything from installation to a finished dynamic web page with clear and easy to understand explanations anyone can follow.
    Respect and thanks for this awesome crash course!

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

      not covered every thing

  • @wassim5622
    @wassim5622 5 лет назад +3

    when i saw xampp i just felt comfortable xD idk why

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

    This is one of those tutorials where I didn't have to go back intermittently and watch again to understand. And this is one of those tutorials which albeit long, does not contain useless umms, hmms, and gibberish or self promotion.
    A clean, to the point and at just the right pace.
    Let me go and subscribe.

  • @t.m.7801
    @t.m.7801 5 лет назад +3

    If you have problems installing mysqlclient, make sure you have the 64 bit version of Python installed if you're on a 64 bit machine on Windows. The default Python download seems to install a 32 bit Python.
    This worked for me at the time of this writing with Python 3.7.3 64bit and installing the mysqlclient 1.4.2.post1 version which is the current version of mysqlclient downloaded by using the pip install mysqlclient command.

  • @HE360
    @HE360 5 лет назад +2

    Thanks a lot for the EXCELLENT Tutorials! I have watch a bunch of them and have learned A LOT of stuff that I will help me in my future as programming career. And btw, I always hit the "Like" button before I even watch your videos LOL

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

    In django v2 a little bit change about "urlpatterns" in "djangoproject/urls.py" url change to path(' ', include('posts.urls')), and posts/urls.py change to path('posts/', views.index, name="index"),

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

      im getting an e1101 modules posts.views has no 'Indexview

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

      thanks!

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

      I've done that, and not only the page "/posts" doesnt work, the main page (localhost) also doesnt work:
      Webpage error: Using the URLconf defined in djangoproject.urls, Django tried these URL patterns, in this order:
      admin/
      posts/
      The current path, posts, didn't match any of these.
      Server error: Not Found: /
      [19/Apr/2018 02:47:54] "GET / HTTP/1.1" 404 2031
      Can you guys help me?

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

      Thank you! Is python.org the best place to read documentation about such changes?

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

    No one in the whole RUclips teaches stuff like traversy. You always start from the basic and always do everything step by step. You literally make videos for beginners. I really appreciate and love your videos Traversy 👌❤️

  • @robsonsilv4.
    @robsonsilv4. 7 лет назад +23

    Best birthday gift (on this friday) from the best! Now flask crash or django rest will be perfect :D

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

    Haven't seen materialize before, will have to check that one out.
    I went through 2 parts of the documentation tutorial on Django and what you're saying all makes sense.
    What Django documentation didn't go through super early is how to actually use it to create HTML elements and interact with everything, which you've shown. IT now makes me continue to use Django. Thank you so much.
    Now if you'll excuse me I have a startup to build ;)

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

    can you make a tutorial on simple thing using django? please
    listed bellow:
    1. home page will contain only a login form
    2. after login user can put information (name, age, salary )
    3. and there will be a button that shows the record inserted (name, age, salary)
    4. user can print that record with a report that shows total salary and names and ages
    5. user can log out.

  • @nenojay6832
    @nenojay6832 7 лет назад

    i was just looking for tutorials to learn django , and here you're making one . love it, much love fam

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

    For Django 2.0+, look in your settings file and update it like so
    Templates = [
    ...
    'DIRS': [
    os.path.join(BASE_DIR, 'posts/templates')
    ],
    ...
    ]

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

    feeling shame on myself, being a java developer haven't come across this channel, you are the GOAT man :) awesome

  • @Quand101
    @Quand101 7 лет назад +16

    Ur channel is awesome

  • @richardsontrev
    @richardsontrev 7 лет назад

    This was exactly what I was hoping to find. Excellent balance of introduction and depth needed to get up and running. Thanks for your work!

  • @genuinelycool8556
    @genuinelycool8556 6 лет назад +45

    pip install --only-binary :all: mysqlclient
    hope above command fixes your "pip install mysqlclient" issue !
    gud luck

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

      you save me...thanks

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

      thanks man, it worked for me can you please explain what's the difference between this command and pip install mysqlclient?

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

      Error : "Could not find a version that satisfies the requirement mysqlclient (from versions: )
      No matching distribution found for mysqlclient" please help me to solve it out. Thanks!

    • @sirhavock4631
      @sirhavock4631 6 лет назад +7

      " Had the same problem, searched the web etc. Here this answer:
      mysql-python install error: Cannot open include file 'config-win.h'
      It has all the instructions. In short go to this site: www.lfd.uci.edu/~gohlke/pythonlibs/#mysqlclient:
      There you will find mysqlclient‑1.3.13‑cp36‑cp36m‑win32.whl mysqlclient‑1.3.13‑cp36‑cp36m‑win_amd64.whl
      Download the correct file for your platform.
      Then use your downloaded wheels file with pip and your done:
      pip install c:\mysqlclient‑1.3.13‑cp36‑cp36m‑win_amd64.whl
      The www.lfd.uci.edu/~gohlke/pythonlibs has lots of lots of compiled libaries to solve the problem of building them from source yourself. They even compile them for python 3.7 :) "
      - mrangry777
      stackoverflow.com/questions/51146117/installing-mysqlclient-in-python-3-6-in-windows

    • @zigzagbeon
      @zigzagbeon 6 лет назад +2

      After spending hours on trying to find a solution, i finally found your comment. Thanks man

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

    This is really great.. i could create a web app within two hours which helped me to manage my first round of interview.. thanks alot..we need more videos please

  • @wizardfix
    @wizardfix 5 лет назад +3

    A very good tutorial, which helped clarify in my mind the whole operation of Django, particularly the relationship between models and views. Thank you!

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

    I had decided to develop an app using a Python framework, instead of Express, and since I had learned some Flask during the Udacity full stack web developer nanodegree, I thought I would use it. But then I decided to take a look at Django, and I found this course, and it has been great to get me started! It is awesome that I will not have to develop an admin system! Thanks.

  • @emirhodzic2860
    @emirhodzic2860 7 лет назад +54

    If you find some differences in your Django project, just to note that on December 2nd new version was released. Python 2.0. Why didn't you wait just one more month before making this tutorial :( Upvote if you want Traversy Media to create a new CrashCourse on Django 2 with PostgreSQL

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

    Brad, your crash courses are excellent. Thank you for taking the time to put this together!

  • @heavyraindrops4750
    @heavyraindrops4750 7 лет назад +24

    In order to get localhost/phpmyadmin to work I had to start XAMPP and click start on Apache and MySQL.

    • @Nikhil-Sontakke
      @Nikhil-Sontakke 4 года назад

      thx bro

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

      I wish I had read your comment before spending an hour trying to work it out

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

      @@jonnywilde1244 Remember all read comment

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

      Thanks dude! Had not started apache and didn't know why it wasnt working :(

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

      Thanks mate,saved a lot of my time

  • @oras4940
    @oras4940 7 лет назад

    This video should be a template of what a "Crash Course" is. Really informative and invaluable. Thanks a lot!

  • @ponysopher
    @ponysopher 5 лет назад +3

    For everyone getting an error from urls.py in 2019, Django version 2.0's path() object now doesn't support regular expressions. Use re_path for regular expressions, or leave out the '^'

  • @stormllamas1948
    @stormllamas1948 5 лет назад +2

    Brad: Let's put in TraversyMedia Blog, doesn't really matter you can put whatever you want.
    Me: Yes, of course, it's just a name.
    Also Me: *Types in TraversyMedia Blog*

  • @pikachu5223
    @pikachu5223 7 лет назад +42

    Ideas for news crash courses!
    Swagger
    Lodash
    Design patterns in JavaScript
    Sass
    SMACSS & BEM
    Algorithms
    Data Structures
    Fundamentals of UX Design
    Java
    GraphQL
    + JavaScript Vanilla
    + C#
    + React
    Leave your idea!
    i will donate you brad! Thank you so much! the best teacher for me!

    • @TraversyMedia
      @TraversyMedia  7 лет назад +7

      Great List, already looking into some of these

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

      NativeSript

    • @kapa4208
      @kapa4208 7 лет назад +4

      Please do ASP.NET MVC crash course too 🙏

    • @pikachu5223
      @pikachu5223 7 лет назад +2

      Traversy Media i forgot functional programming :)

    • @bawonos024
      @bawonos024 7 лет назад +6

      Vote for Design patterns in JavaScript

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

    PERFECT first tutorial on django. Very eloquently explained from start to end!

  • @AbhishekNigam
    @AbhishekNigam 7 лет назад +30

    I owe you a lot of my learning. Your crash courses have been really helpful to get started with something new. Having been taken courses from "Coding Entrepreneurs" and Django Girls project to learn Django, but I have difficulty in its deployment... have tried a couple of times, but haven't been able to deploy Django application with DEBUG=False, having issues with sometimes serving files to some weird 500 error code when I flip Debug=False. Can you pls make a Django deployment tutorial. There a lot of tutorials on Django app development, but there isn't good tutorials on its deployment. Thanks

  • @tails8806
    @tails8806 7 лет назад

    I just watched this entire tutorial just to see what Django is all about and how it works. I don't intend to get into Django today, but maybe in the future I will. Thanks for putting up this video.

  • @renancoelho5657
    @renancoelho5657 7 лет назад +4

    Chrome notification

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

    So helpful! You definitely have the best crash course videos on youtube!

  • @perfectwebsolutions
    @perfectwebsolutions 7 лет назад +11

    On My MacBook after installing version 3 of Python I still get version 2.7 when I type python --version and gets old pip --version so what I did is use python3 --version and pip3 --version to get the correct CLI interface and version. so, if you are on mac use python3 and pip3 to make use of this tutorial.

    • @minoanlight4545
      @minoanlight4545 6 лет назад +4

      That's correct, for Python 3 console, you need to type python3. If you type just python, it is gonna open the Python 2 console by default.

    • @faresgeek-dz5692
      @faresgeek-dz5692 6 лет назад

      Minoan Light and to use install py pkgs for py 3 use pip3

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

      you can add Alias in .bash_profile file. ALIAS python=python3. By doing so, you can use python instead of typing python3 everytime.

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

    Just a minor correction... at 34:49 and some other instants in the video... when you say that url(r'^admin/, admin.site.urls') .. You say the "r" before the opening quote is for routes ... that's actually a Python flag to say that string literal is to be considered a raw string literal, so as to ignore any characters that would otherwise be considered escape characters.
    Anyway, keep up the great work.. You're a legend !

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

      Latest Django doesnt have the carrot or the r!

  • @TraversyMedia
    @TraversyMedia  7 лет назад +79

    If you want to skip the slides and jump right in to setup, go to 9:45. An updated Django 2.x crash course will be out soon but much of this still applies. There are just a few syntax changes in 2.x

    • @mayuresh888
      @mayuresh888 7 лет назад +2

      Hey please do a tutorial on ADONIS framework, its awesome framework and i will like your tutorial on it

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

      Great tutorial, Can you tell me how you linked your Django framework to MySQL database? cause i followed all steps but it seems phpmyadmin requires path to store the database but i don't know cause i'm total noob on Windows Xamp and Django

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

      I dont mind your intros. They are very informative.

    • @b.e.s.t.2015
      @b.e.s.t.2015 6 лет назад

      When will you create a 2.x Django tutorial?

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

      I was looking for this

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

    34:50 The 'r' before the string doesn't stand for "route", it stands for "raw", which tells Python to treat it as a raw string (not escaping backslashes)

  • @VitaAbOvo
    @VitaAbOvo 7 лет назад +6

    I've watched a lot of videos of yours now to learn about programming. My question for you is where do YOU go to learn how to code in these different frameworks/languages? What are your "go-to" resources?

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

      Every new framework has its tutorials, for Django all you need to do is go to their official site.

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

    I should come straight to your channel every time I want to learn something new. It's like every other tutorial channel is ran by smug know-it-alls who have forgotten what being a beginner is like.

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

    I am getting syntax error at the end of the video : here :
    url(r'^details/(?P\d+)/$', views.details, name='details')

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

      path('details/', views.details, name='details')

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

    I love your channel and all the content you put on here, I'm starting a new project and i am learning tons of things from you, Thank you Brad

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

    So I am having a problem with: python manage.py migrate
    When I run this in the CMD it does not work.
    Any Advice??

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

      That isnt actucally an issue. Everything should work eve nif you get that Error Message.
      Look at the actual Django Turoial on the Djanog Website docs.djangoproject.com/en/2.2/intro/tutorial01/
      I hoppe that can help you :)

  • @rrifatalam
    @rrifatalam 7 лет назад

    Really glad to have django crash course. Looking forward to you for advanced series. And also badly need symfony advanced series. Really grateful to you if do sort of this.

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

    hello, I cannot solve after" >python manage.py migrate

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

    This was great and included a lot of details not mentioned in a 30 hr django course I'm currently taking (e.g. curly braces are from jinja). Subbed

  • @Optte
    @Optte 6 лет назад +3

    With any issue with mysql
    pip install --only-binary :all: mysqlclient

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

    Cool course, thank you Brad! I wanted to get started with Django a long time ago and now you helped me a lot.

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

    Okay, enough is enough. I have been trying to resolve (python3 manage.py migrate) for the last 3 days. Every time I run it, it gives me the error (Traceback most recent calls). I am literally stuck for the last 3 days. Please help!

    • @y-h2951
      @y-h2951 6 лет назад

      stack overflow ? maybe it will help

    • @y-h2951
      @y-h2951 6 лет назад

      try "python manage.py migrate" instead of python 3

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

      @@y-h2951 yes, I tried that too. I have python version of 3. So, I figured that command would be python3 instead of python.

    • @y-h2951
      @y-h2951 6 лет назад

      @@bazarsadtsogtjargal2047 and it didnt work as well ?

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

      Same error, have you find a solution ?

  • @obi-wan-satoshi
    @obi-wan-satoshi 7 лет назад

    Splendid! Brad, I love the way you simplify the learning process for us. Bless you! It think it should be important to note the version of Django being used since later versions have some subtle changes. I read the 2.* documentation before watching your video.

    • @obi-wan-satoshi
      @obi-wan-satoshi 7 лет назад

      Ah, I see others commented on it too. The video was still helpful nonetheless. Skimming through the documentation after this is helpful. That's what I'd recommend to anyone who wants to keep up with the latest changes in Django.

  • @user-yg2gw4je8d
    @user-yg2gw4je8d 6 лет назад +6

    pip install mysqlclient doesn't work for me. I get "_mysql.c(29): fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory" and can go no further. Many posts claiming to fix this don't fix for me. At least one post alluded that mysqlclient requires an earlier version of C++, but I don't know if this is correct.

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

      same for me, idk what to do

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

      I am stuck with the same error. Dont know what to do. Tried lot of fix from stackoverflow and github but still didn't work.

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

      Same here, also tried multiple ways to solve this, installed C++ and so on, nothing helps... blah

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

      Hey, I solved it, see my comment

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

      Solved it, see my comment

  • @justindjeumene1156
    @justindjeumene1156 7 лет назад

    Great man! I love your courses, thank you so much and I can't wait for advance one on django.

  • @dakshshah1394
    @dakshshah1394 7 лет назад +3

    I am using macOs, but I am not able to follow along with the tutorial. When I try to do python3 manage.py migrate, it is unable to connect to the MySQL being run by the XAMPP application. If I start the mySQL service which is present in /usr/... then it is able to communicate with that, but that is not the same as the one I viewed in phpMyAdmin. I am super curious, how is this working in the video, and why hasn't the configuration for that been shown

    • @cizbarca
      @cizbarca 7 лет назад

      I'm in a similar place

    • @elliotglasenk527
      @elliotglasenk527 7 лет назад

      +1

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

      I'm in a similar situation in Linux.

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

      I'm stuck at the same position , did you by any chance find a solution to this?

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

      Nope.I am trying it without xampp. I'll let you know if that works.

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

    Finally something good that worth watching! Thank you Brad, very nice tutorial again! :)

  • @nicholasbrown3443
    @nicholasbrown3443 7 лет назад +7

    Poor naming convention on the model. Otherwise, good video. Models should always be singular. i.e. - Post not Posts.The verbose_name_plural in the class Meta is for signifying how the table name displays with multiple rows.

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

    u r just awsome u have no idea really how much i am grateful to u not because of only this one i learn from u a lot
    someone like me who have no university degree you are a great teacher

  • @divusiulius7539
    @divusiulius7539 7 лет назад +3

    "uhhhh Houston, we have a problem."
    Apollo 13 astronaut John Swigert and the NASA Mission Control Center ("Houston")
    Apparently the "urlpatterns" in the original urls.py has changed since you've made this video!
    At 31:50 you modified the urlpatterns in urls.py. The default urlpatterns entries no longer start with "url" they start with "Path". Not only that, they -Django has removed the ("r") for routing. As in "path('^admin/', admin.site.urls)" I commented out their New lines and edited in your recommendations. And I also added the posts as per your recommendations and NG! No Good!

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

      same problem here ... I'd really like to see the reply to this or any kind of solution ... Thanks guys

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

      Well....., Since I didn't get a timely reply to this burning question, I was forced to evolve to a more current video.
      ruclips.net/video/QVX-etwgvJ8/видео.html
      To be perfectly honest, the urlpattern ( url / path ) answer is and was made simpler by Django.

    • @wilsongaturu134
      @wilsongaturu134 7 лет назад

      Did you find out how to pass in the details url that we made in this tutorial towards the end?

    • @nickborn2297
      @nickborn2297 7 лет назад +2

      The options I took for this was to use (after importing) re_path:
      re_path(r'^details/(?P\d+)/$', views.details, name='details')
      Also make sure to save your /posts/views.py after you created the view for details :)

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

    The best tutorial video I've seen in a while.
    Lots of tutorials basically just require the user the mimic the actions of the instructor.
    Your method actually helps the viewer understand the functionality and potential of each action.
    Excellent! Keep it up.

  • @MrRicharddaniel
    @MrRicharddaniel 7 лет назад +3

    I am having problem with migrating the databases.. Does setting up the project at the root level make a difference ?
    I just set it up on my desktop... But in the video the project was set up starting from C drive. Could that be a reason for errors when migrating the databases?
    Thanks in advance

    • @MrRicharddaniel
      @MrRicharddaniel 7 лет назад +4

      Nevermind.. Its fixed. In case anyone has this error...
      #1045 - Access denied for user 'root'@'localhost' (using password: YES)
      Locate the config.inc.php file in the xamp > phpMyAdmin folder and change password to an empty string like this ' '.

    • @tommy.carrascal
      @tommy.carrascal 7 лет назад

      damn im having the same issue as you but when i checked the file it was already an empty string

    • @kaushikippili
      @kaushikippili 7 лет назад +7

      save the password as ' ' rather than '123456' as given in the video lecture in the settings.py

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

      Thank YOU!

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

      LIFE SAVER!

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

    Didn't find any tutorial as good as this :)
    Great Work !!

  • @Tntdruid
    @Tntdruid 7 лет назад +3

    Is multi lang easy to add?

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

      Just change en to you language, for example pt-br (in settings)

    • @Tntdruid
      @Tntdruid 7 лет назад

      Robson Silva thanks

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

    Thanks for this video. I was having trouble understanding the general structure of django projects, like what does what and how does it do it but now I think I have a much better understanding of django.

  • @abdelrhmanhussien377
    @abdelrhmanhussien377 7 лет назад +4

    Wohooo, you made my day bro

  • @soad2609
    @soad2609 5 лет назад +2

    You're beyond any complement. I don't know, if I meet you someday, I'll touch your masterpiece head. Maybe I'll get some wisdom from your brain.
    And please do another video on how to deploy a python django project on any webserver.

  • @kenjohnsiosan9707
    @kenjohnsiosan9707 6 лет назад +3

    Hello sir, using python version 3.7 throws warning when installing mysqlclient
    the error is: Failed building wheel for mysqlclient
    should I downgrade my version of python or am i missing something on my setup.
    thanks

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

      hlo bro , i also faced this problem and it was sloved by this "ruclips.net/video/GfbdlxlzzII/видео.html" and anather way would be unofficial wheel------www.lfd.uci.edu/~gohlke/pythonlibs/#mysqlclient-- this video will also help you ----ruclips.net/video/jnpC_Ib_lbc-/видео.html--

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

      pip install "mysqlclient==1.3.12"

  • @hazimhalim7058
    @hazimhalim7058 7 лет назад

    This is Gold ! Thank You Traversy !

  • @thenewway416
    @thenewway416 7 лет назад +12

    Machine learning with python

    • @devilmanscott
      @devilmanscott 7 лет назад +7

      Brad might need to brush up on math and algorithms, though check out Daniel Shiffman, does a few good introductions on it.

    • @robsonsilv4.
      @robsonsilv4. 7 лет назад +2

      Brad focus more on web dev

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

      You should probably see Siraj Riwal videos. Also visit Sentdex on more tutorials.. Their tutorials are incredibly helpful.

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

    The Best Teacher I have ever seen.

  • @TraversyMedia
    @TraversyMedia  6 лет назад +49

    Hi Guys, if you are interested in building a real world app using Django 2.x, Here is a promo code for my 11 hr "Python Django Dev To Deployment" course
    www.udemy.com/python-django-dev-to-deployment/?couponCode=TRAVERSYMEDIA

    • @JerrySmith-nq9mj
      @JerrySmith-nq9mj 6 лет назад

      I just purchased this. I've been watching your videos for a few months now. Very informative and easy to follow. Been in IT for 20 years but not really much programming. Luckily Python is pretty newbie friendly. Thanks for all the help you provide.

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

      hey which editor is used for codes in this video !!!!!!!!

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

      i would like to purchase this course .
      will you cover all this project with in 11 hours tutorials .
      i need do build this application for my collage Project.
      will i get this project if i complete 11 hours. i know basic of python and basic of django .
      which django version did yo use ?
      thanks

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

      @@nishantsinha1765 visual studio code

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

      sir the video is brilliant and i do have certain doubts one of them is i cannot create an second url like that for my posts.urls it throws ModuleNotFoundError: No module named 'post.urls' can u help me with that

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

    Sir You are awesome no words to describe your way to teach ..hats off

  • @asdfghjkl1770
    @asdfghjkl1770 5 лет назад +2

    I am 15 and I am learning programming .
    Love from Bangladesh!
    Brad sir, You are a amazing teacher!

  • @marufahmed595
    @marufahmed595 Год назад

    Great Explanation, brother, I really like your voice while you explaining

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

    Excellent tutorial. Would love to see more on Django Rest Framework, and its integration with a frontend framework/library such as React. Probably a tutorial series (with authentication, access levels, all the works). Just a suggestion. Keeping making great videos!

  • @Fido1hn
    @Fido1hn 7 лет назад

    I'm gladly subscribing. I'm a bit new to web development and I've been looking for video resource. Many are in Hindi & I don't understand it. But man I love your videos, they are amazing!

  • @draakisback
    @draakisback 7 лет назад

    Fairly good starter tutorial.
    In the past few years, I haven't touched anything like Django or Rails for production because I am finding better backend solutions in languages like Go, Elixir, Clojure and even Rust. That being said, I still use Django when I need to rapidly prototype something because its just so damned quick and easy.

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

    You forgot to mention that both apache and mysql must be started from XAMPP control panel. Apache is host for PHPmyadmin and SQL is to start engine and make db accessible. ;) Great video!

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

      Found out why localhost/phpmyadmin doesn't work. Thanks..

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

    Worked perfect for me and learned a lot within a very short time. Thank you very much.

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

    Correction @Traversy Media, 34:02, `from . import` implies from current module's dir, not from all.

  • @soumambanerjee1816
    @soumambanerjee1816 7 лет назад

    As crystal clear as water . please +Traversy Media make more detailed video in django to create more awesome projects(Audience demand you know :P) they are awesome. Love you man, you are really changing the world by your knowledge :) Love from India

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

    I suggest for those actually following along, such as myself, to use other names rather than 'post' and 'posts', because it can be confusing what 'post' and 'posts' you are talking about. I trying to make everything unique (meaning minimize the similarity between terms), so if there is an issue, I have a better understanding of what is happening when I fix the issue. I left the views and urls, but you might be able to change them. Not sure....
    Great video BTW!

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

    Brad, you should open a school! I would do whatever I needed to get enrolled ASAP! Your tutorials never get me lost or make me encounter errors. I understand when I watch them! That’s huge! I really hope you consider opening one someday in the near future and hope you can teach Python and Django

  • @wushuheroes
    @wushuheroes 7 лет назад

    wonderful! I looked for a Django Tutorial, but the most are outdated and the explanation was very bad. Your Tutorial is the best, that i have found on the internet!!!

  • @AlvinandTheBand
    @AlvinandTheBand 7 лет назад

    can't thank you enough Brad. Love you.

  • @muthuhari8875
    @muthuhari8875 7 лет назад

    Brad thank u so much I started my Django project with very basic knowledge , it's going to be very much helpful thank u again

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

    Brad Traversy, a fountain of knowledge.

  • @zk-mc
    @zk-mc 6 лет назад

    Beautiful thank you. Well explained and perfect pace.

  • @storyden5
    @storyden5 7 лет назад

    Infact am beginning to Love this man.. Sir is a pleasure to say Thank You. If not for my college i could have focused to learn many of your crash Course.. God will Advance you more. Priest of Coding He will make you. I love this a lot

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

    Thanks for this awesome tutorial. Just loved it.

  • @blessingalfred
    @blessingalfred 7 лет назад

    This is absolutely beautiful. Thanks

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

    Thank you so much for this course. I really appreciate it. Thanks for sharing your knowledge.

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

    you really delivered. Brilliant video. Thanks

  • @zastojn_golaz
    @zastojn_golaz 7 лет назад

    Thank you for this crash course :) learned a lot. Subbed

  • @Therealbighustle
    @Therealbighustle 7 лет назад

    great video man really, it helped me out a lot thank you I hope your going to be making more.