Redsuncube

Unit Testing (Part - 1): Introduction

›
Generally, we all think that testing means it is part of testers or QA team, but it is wrong assumption. Testing which is done at develo...

Django: if the column is there in database and fields are not there in model.py then how to remove the column from database

›
command used ============== python manage.py schemamigration common --auto python manage.py migrate common --fake python manage....

Angularjs is not provide for configuration blocks

›
This post explains why services aren't available in configuration blocks. AngularJS has a concept of $injector which has a function ...

What is the difference between render and render-to-response

›
Render: it will send the variable in context to the html page Syntax- return render(request,"x.html",response) Render to r...

How to set the button in admin page for django framework

›
Documentation version:  development Admin actions ¶ The basic workflow of Django’s admin is, in a nutshell, “select an object, th...
2 comments:

Render and render to response in view django

›
Django “render” vs “render_to_response” Summary: Always use  render  and not  render_to_response In Django you have more than one w...

How to create sample pdf file using Python and django?

›
Process :1 step 1: run this cmd:  pip install reportlab step2: Create a file with below code. from reportlab.pdfgen import canvas ...

Name and explain the three magic methods of Python that are used in the construction and initialization of custom Objects?

›
The 3 magic methods of Python that are used in the construction and initialization of custom Objects are:  init__,  new , and  del__. ...

What is Web Scraping? How do you achieve it in Python?

›
Web Scrapping is a way of extracting the large amounts of information which is available on the web sites and saving it onto the local m...

ajax syntax sample

›
$("button").click(         function()             {                       $.ajax(                 {                     url:...

How to reverse the element in list without the reverse method

›
>>l = [1,2,3,4,5] >>> l [1, 2, 3, 4, 5] >>> l[::-1] [5, 4, 3, 2, 1] >>>

Describe how to send mail from a Python script.

›
The smtplib module defines an SMTP client session object that can be used to send mail to any Internet machine. A sample email is demon...

Explain how to overload constructors (or methods) in Python.

›
_init__ () is a first method defined in a class.  when an instance of a class is created, python calls __init__() to initialize the att...
›
Home
View web version
Powered by Blogger.