stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Web Frameworks and Django Flashcards | StudBud
Explore
/
Web Frameworks and Django
Web Frameworks and Django
20 terms
·
StudBud Administration
·
341 plays
Imported from external platform
Flashcards
20 cards
F
Practice quiz
P
Host live
L
Questions
20
Answers
1
Which Django setting specify the list of authentication back-ends to use
BACKEND_ AUTHENTICATION
AUTHENTICATION_BACKENDS
AUTHENTICATION_BACKEND
BACKENDS_ AUTHENTICATION
2
What happens when url.py file is edited while the development server is still running?
The development server does nothing
The web page is automatically reloaded
The development server automatically restarts
Development server terminates
3
What is Django command to view a database schema of an existing( or legacy) database?
manage.py legacydb
manage.py inspectdb
django-admin.py schemadump
manage.py inspect
4
Which method is used to check password string given by user, in Django
test_password
detect_password
check_password
None of these
5
What exception is thrown by Django when the template tag is not closed
TemplateSyntaxError
TemplateError
ConditionSyntaxError
SyntaxError
6
What is the Django command to start a new app named ‘demo’ in an existing project?
manage.py –startapp demo
manage.py –newapp demo
manage.py startapp demo
manage.py newapp demo
7
What does {% include %} does?
It is the same as {% extend %}.
None of the above
Includes content from another template having the same templates defined
It will include another template
8
What characters surround the template tag in Django
%
{%
{
{#
9
What is superclass of Django form
django.form
django.Form.Newforms
Newforms.Form
django.Newforms.form
10
Which installed module enables session in Django
django.contrib.session
contrib.sessions
django.contrib.sessions
django.session
11
How does Django treats a requested URL string
Unicode string
Python string
ASCII characters
EBCDIC mapped string
12
What is the Django shortcut method to more easily render an html response?
render_to_response
a) render_to_html
render
response_render
13
Django is based on which framework?
None of the above
MVVM
MVC
MVT or MTV (Model-View-Template)
14
What happens when url.py file is edited while the development server is still running?
The development server automatically restarts
Developmentserver terminates
Theweb page is automatically reloaded
Thedevelopment server does nothing
15
What is the purpose of __init__.py in project directories?
It is useless and can be deleted
It allows Python to recognise the folder aspackage
It is used to initialise any empty values
None of the above
16
What are the features available in Django Framework?
All of the above
Form Handling
Admin Interface (CRUD)
Templating
17
In Django how would you retrieve all the ‘Users’ records from a given database?
User.objects.all()
User.object.all()
Users.objects.all()
User.all_records()
18
What will happen on execution of this command : > python manage.py createsuperuser
It will create an admin superuser
None of the above
Both a and b
It will ask for name and password of the superuser
19
What command is used to start a project in Django?
All of the above
manage.py
Project
_init_.py
20
By using django.contrib.humanize, you can use the following filter in your template to display the number 3 as three.
intcomma
apnumber
intword
ordinal