Metadata-Version: 2.5
Name: dpythons
Version: 0.2.0
Summary: Django practical slips: slip-wise code, guides and solved projects
Requires-Python: >=3.8
Provides-Extra: django
Requires-Dist: django; extra == 'django'
Requires-Dist: djangorestframework; extra == 'django'
Description-Content-Type: text/markdown

# dpythons

Django practical slips (1 to 20): all code slip-wise with folder structure and file paths, guides with commands, explanations and viva questions, plus a solved project for each slip.

## Install

```powershell
python -m pip install dpythons
```

## Use

```powershell
dpythons              # all code, slip by slip (Enter = next, a = all, q = quit)
dpythons code 8       # code of slip 8 only
dpythons code --all   # all code without pausing
dpythons txt          # save ALL_SLIPS_CODE.txt in the current folder
dpythons menu         # interactive menu
dpythons list         # all slips
dpythons start        # basics: how to write Django code
dpythons show 8       # guide for slip 8
dpythons get 8        # copy slip 8 project into .\slip8
dpythons export       # copy everything into .\practical-slips
dpythons viva         # viva questions
```

If PowerShell says `dpythons` is not recognized, use `python -m dpythons` instead, for example `python -m dpythons list`.

## Use from Python

```python
import dpythons

print(dpythons.list_slips())
print(dpythons.get_code(1))
print(dpythons.get_guide(1))
dpythons.export_slip(1, "my_folder")
```

## Running a copied project

The package does not install Django by itself. Install it with:

```powershell
python -m pip install django djangorestframework
```

## Rebuild after changing the solutions

```powershell
python sync.py
python -m build
```
