Mercurial > public > sg101
comparison downloads/management/commands/dlwgetcat.py @ 685:a75554eb6bae
For Django 1.5: slugify is now available at django.utils.text.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Fri, 23 Aug 2013 19:40:01 -0500 |
parents | 161b56849114 |
children | b59c154d0163 |
comparison
equal
deleted
inserted
replaced
684:161b56849114 | 685:a75554eb6bae |
---|---|
5 """ | 5 """ |
6 import os.path | 6 import os.path |
7 | 7 |
8 from django.core.management.base import LabelCommand, CommandError | 8 from django.core.management.base import LabelCommand, CommandError |
9 from django.template.loader import render_to_string | 9 from django.template.loader import render_to_string |
10 from django.template.defaultfilters import slugify | 10 from django.utils.text import slugify |
11 from django.contrib.sites.models import Site | 11 from django.contrib.sites.models import Site |
12 from django.conf import settings | 12 from django.conf import settings |
13 | 13 |
14 from downloads.models import Category, Download | 14 from downloads.models import Category, Download |
15 | 15 |