Django Tutorial 4 : Django Testing

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


In this part of my Django tutorial series we'll focus on Generic Views and Automated Testing. Through testing we can quickly check how are site is operating after each change. You can also simulate how the site will interact with a user depending upon an unlimited number of randomized inputs. With a little work up front you will save yourself from numerous future headaches.

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

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

Simply great, always when I search for some subject on youtube and I find one of your videos talking about it, I can relief because I know I will understand and get the job done!
thank you for making great quality videos

AlejandroGonzalez-mowy
Автор

Can't wait about you doing a pentesting serie, you explain things so well!

duelingnetworkniceboy
Автор

As more of a C++ guy, I always like to watch your videos on different languages just to see how different the syntax is and everything, pretty interesting :P

gabe
Автор

Very nice!. Make more videos. I want this series to be as detailed as possible!!!
Make 50 videos on

dfhfdgfgdfshdfhe
Автор

Didn't understand how you could use "create_question" function from one class in another. The "def create_question" is indented inside the first test class, isn't it?
Another thing a would say(but it's not very important) is that you should use 'string {}'.format() instead % format string. Again, this is not very important but it's python and it's elegant.
Nice tutorial Derek, thanks a lot.

leonardorezende
Автор

Thank you so much for awesome Django series :)

sanjayshr
Автор

for thoes using path instead of url in urlpatterns should add "pk_url_kwarg = 'question_id'
" to DetailView and ResultView class in views.py

nick-hqoz
Автор

I hit a wall, when it comes to running my test.py, in terminal, in PyCharm, using a windows machine.
When I enter: python manage.py test polls
I receive, to much of an error to post here, then the following towards the end:
ModuleNotFoundError: No module named 'sampsite.polls'


I didn't get any errors, when I ran things in shell, during that portion of the tut.
Any insights are welcome.

tonyiguru
Автор

The examples for testing were a little complex, I felt overwhelm though i am not totally new to python

alirezabagheri
Автор

Well hello


Eagerly waiting for your c++ tutorial

vixellar
Автор

hey derek, could you show us examples other than the ones in the documentation.. when it would would be more productive for learners

Ak-yztd
Автор

Nice video. How can you update index view such that, Questions with not more than 1 choices can be avoided from display. How will you test it?

The
Автор

Hi Derek,

How can a deploy the local django project to a production server and can join many different apps like poll into one site?

Thanks for your videos, they are very helpful.

christaras
Автор

Hi Derek,
I am fun of Python and MongoDB as well (I saw your tutorials about these as well),
and now I thought Django would be a great webframe where I can use both.

I'd like to ask can you show us a video how Django can use Mongodb? CRUD template would be great

Sorry for the question but I couldn't find a detailed tutorial where django connected to mongodb :(

Thanks,
Mark

xmark
Автор

Awesome! Thanks Derek! How many more Django videos do you have planned and what are you working on after? :) Would you be able to make a video covering Verilog as well?

littleolliebenjy
Автор

Hello everyone with the create_question errors,
to fix the error copy the create_question method and place it before the classes start(where you import stuff)

That should fix the errors if not check for typos

fazalali
Автор

hey self.pub_date will always goin to be smaller than exp then how it is going to give true i dont understand

rashmitpankhania
Автор

Hey Derek, been watching you for a very long time. Can you please make a video tutorial on creating a campaign in Roll20? There are couple tutorials online but no one explains stuff as fast and clear as you do.

fatihcakmak
Автор

Unrelated question: Do you have a link for some descrete mathematics lectures you recommend?

Thanks. Love your videos.

Drnc
Автор

Hi Derek. Have you any plans to make more Go tutorials?

kaabok