Admin, Files, and Setup Flashcards

(3 cards)

1
Q

How do you register models in the admin?

A

In admin.py, use admin.site.register(ModelName)

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

What is the role of urls.py?

A

Maps URL paths to views.

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

What is settings.py used for?

A

Holds app config: DB, middleware, installed apps, timezones, etc.

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