Metadata-Version: 2.1
Name: djecorator
Version: 1.1.0
Summary: A flask-style decorator for Django views
Author-email: Stephan Fitzpatrick <knowsuchagency@gmail.com>
Description-Content-Type: text/markdown
Classifier: License :: OSI Approved :: MIT License
Requires-Dist: django
Project-URL: Source, https://github.com/knowsuchagency/djecorator

# Djecorator

Write Django routes in the same style as Flask.

## Installation

```
pip install djecorator
```

## Usage

### views.py

```python
from django.shortcuts import render
from djecorator import Route

route = Route()

@route("/")
def index(request):
    return render(request, "index.html")
```

### urls.py

```python
import views

urlpatterns = [
    ...
]

urlpatterns += views.route.patterns
```

