MCQ KEY FACTS Flashcards

(20 cards)

1
Q

Django Language?

A

Python

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Django Architecture?

A

MVT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Django Database Default?

A

SQLite

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Start Project?

A

django-admin startproject

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Create App?

A

python manage.py startapp

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Admin User?

A

createsuperuser

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Run Server?

A

python manage.py runserver

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Migrations?

A

makemigrations then migrate

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Define Models?

A

models.py

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Route URLs?

A

urls.py, use path()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Handle Requests?

A

views.py

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Template Loop?

A

{% for book in books %}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Model String Method?

A

def __str__(self):

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Relationship Fields?

A

ForeignKey, ManyToManyField, OneToOneField

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Sessions?

A

Stored in DB, identified by a cookie

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Command for Static Files?

A

python manage.py collectstatic

17
Q

ModelAdmin Class?

A

Customizes admin display

18
Q

Regex URL Matching?

19
Q

Use of Meta in models?

A

Defines metadata (ordering, db_table)

20
Q

Security in Django?

A

Built-in CSRF, auth, SQLi prevention