Django Tutorial 2

preview_player
Показать описание


In this part of my Django tutorial we'll cover a lot. We'll bind URLs to Functions, Cover Settings, Pass Values from Pages to Functions, Work with Databases, Create Separate Apps in Our Project and much more.

Thank you to Patreon supporters like the following for helping me make this video

@kyleaisho
@thetwistedhat
vjFaLk
Рекомендации по теме
Комментарии
Автор

Changed url to path in Django 2, and the method for passing a variable is adding <int:variable_name>
for example: path('random/<int:max_rand>', random_number)

SaretMagnoslove
Автор

I've not found many videos I would comment on but yours are an exception. As an online student (novice actually), I rely heavily on online resources from people much more learned than I on the topic de jour.
I found your videos to be very enlightening but also compare it somewhat to drinking from a fire hose. I understand you have a lot to explain over a myriad of subjects and I commend you for it. I thank God for the Pause option so I can take copious notes.
My current dilemma, with which I am struggling, is with Program Development Frameworks. I would like to see a different take on some ground level explanation of how Django, SQLAlchemy, and Python come together to create something that is usable. I am on a Windows (7 at work and 10 at home) platform and would prefer something specific to those OSs.
Given the rate and amount of videos you produce across a variety of subjects I would understand completely if you can't fit it into your schedule. At any rate, I will continue to watch because I find your presentations much more helpful than most.
My hat's off to your current and future efforts.

timothywynne
Автор

Come On Folks! You know how much this guy has helped you! Hit up his Patreon, it's only right.

lawrenlelko
Автор

Woah! 24 minutes in to this tutorial series (12 minutes into this video)... and he's made a freaking API for random number generation!

donha
Автор

Legend says if you are early, Derek replies

BosticReiva
Автор

Finally :D Been refreshing your page for the last 6 hours. Love your videos man!

Zeay
Автор

I've check my sub box every day for three days for this video. Thanks Derek!

JohnSmith-bjuc
Автор

good video! i feel like django is more for mature, heavyweight apps. if you want to create an app with the only purpose of using python flask is a good alternative to django just for playing around.

billmoney
Автор

Thanks for the Tutorial! I have been looking forward for you to do a Django tutorial. I see that you have a patreon, I plan on supporting. I do have one suggestion, you might change this in later video but the Django is getting a bit to deep to quick. I found myself getting lost quickly. The standard Django tutorial is probably good at getting you a good review of breth of the product but I like the style of your other videos. They seem to step us in more slowly, in more layman's(non full time programmers) terms. I still love the tutorial and will watch all of them. Maybe you will consider a different series on Django for the more part time programmers. Thanks!

bartdemeulmeester
Автор

That was intensive! I have many questions, but at the top, is: Is there a list of all the different queries that can be asked, via the cmd prompt/ terminal? Are the queries based on a structure, that has the functions injected within the structured syntax, or is there a giant pool of queries that need to be committed to my memory.
Also I got this error after entering this query:
"
>>>
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "C:\Users\Gina\PycharmProjects\Django-DerekBanas\env_site1\lib\site-packages\django-1.10.9.dev20171123183751-py3.6.egg\django\db\models\manager.py", line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "C:\Users\Gina\PycharmProjects\Django-DerekBanas\env_site1\lib\site-packages\django-1.10.9.dev20171123183751-py3.6.egg\django\db\models\query.py", line 389, in get
(self.model._meta.object_name, num)
get() returned more than one Question -- it returned 2!
"
I don't see a syntax error, how do I correct the error? thanx

tonyiguru
Автор

Don't forget about Kivy, the python mobile framework :D. It is starting to become interesting. Also a request from me Derek, is from time to time, to also continue your eletronics tutorials (hardware), and try also to combine software + hardware at some points, as you make tutorials. I know software tutorials will be more, but we should not forget the physical stuff also ;)

dedantemon
Автор

You made my day, sir. Your videos are top notch ;)

ThierryLalinne
Автор

Which is better to learn in 2018/19 in your vast development opinion Derek? I am torn between Django, Ruby on Rails and Node js. I know Node is the popular thing at the moment, and Rails is somewhat forgotten, Django seems to be steady. But it is difficult to know what to invest time in? Any advice greatly appreciated.

adante
Автор

Question: at 11:30 -- I'm confused about how the "max_rand" parameter of the "random_number()" function gets automatically passed into the parenthesis portion of the regular expression. Can someone elaborate more on that part. Thanks very much ...and Nice Tutorials!!!

markwiygul
Автор

in the cmd of windows I type py instead of python: py manage.py runserver.

JonesDTaylor
Автор

Honestly speaking, I am new to django. I think this django thing is bit interwoven with each of its own strutures and logic that needs a bit more clarification.

wsteve
Автор

hello i just want to maker sure i got the models migrations steps right....1st manage.py makemigrations polls 2nd manage.py migrate 3rd manage.py sqlmigrate polls 0001 4th manage.py this ..sometimes i have to do manage.py migrate --fake-initial..otherwise i get errors...is this becuz somehow i already did a migrations intially??/..thxz again

lucioiams
Автор

Hi Derek, I am eagerly waiting for your further (post part 5) kivy video tutorials. Thanks, love your work!

adiification
Автор

hello what is the difference betwen static_url and static_root??....thxz for the series

lucioiams
Автор

Hi Derek: Out of frustration, specific to Ruby on Rails not getting much respect/support on Windows, I am now looking at Python/Django versus Ruby/RoR. Web commentaries suggest that while RoR started out well with an emphasis on a "Do not Repeat Yourself" development style, it has in multiple releases now become much-bloated. My question is, do you think for a "garden-variety" development that the MVC approach in Python is either better, the same, or worse in comparison to MVC in Rails? Is the learning-curve about the same or not? I have always had to run Rails in a virtual Ubuntu environment on a Windows platform to get any kind of performance at all. The MAC community seems to have no time for anyone trying to run RoR on a PC! Is Django alive and well in a PC community?

daveybalmer