Skip to main content

Django + sape.ru.

Project description

# django-sape

## Настройка

`settings.py`

```
INSTALLED_APPS = \
(
...
'sape',
...
)
```

```
SAPE_DOMAIN = 'example.com'
SAPE_USER = 'sape_username'
SAPE_CHARSET = 'utf8'
SAPE_DIR = '/tmp/sape_cache/'
```

## Запрос ссылок (обновление кеша)

`./manage.py sape fetch`

## В шаблоне

```
{% load sape_extras %}
...
{% sape_links request %}
```

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-sape-0.2.4.tar.gz (3.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page