# pydoc > django

---
type: CommandReference
command: django
mode: pydoc
section: 
source: pydoc3
---

## Quick Reference

- `import django` — import the Django package
- `django.setup()` — configure settings, logging, and app registry
- `django.VERSION` — current version tuple `(3, 2, 12, 'final', 0)`

## Name

django — Django package

## Synopsis

python
import django
django.setup(set_prefix=True)
## Package Contents

- `__main__`
- `apps` (package)
- `conf` (package)
- `contrib` (package)
- `core` (package)
- `db` (package)
- `dispatch` (package)
- `forms` (package)
- `http` (package)
- `middleware` (package)
- `shortcuts`
- `template` (package)
- `templatetags` (package)
- `test` (package)
- `urls` (package)
- `utils` (package)
- `views` (package)

## Functions

- `setup(set_prefix=True)` — Configure the settings (happens as side effect of accessing the first setting), configure logging and populate the app registry. Set the thread-local urlresolvers script prefix if `set_prefix` is `True`.

## Data

- `VERSION = (3, 2, 12, 'final', 0)`

## Version

3.2.12

## File

`/usr/lib/python3/dist-packages/django/__init__.py`

## See Also

- [Django documentation](https://docs.djangoproject.com/en/3.2/)