{
"folders": [
{
"path": "."
}
],
"settings": {
"files.exclude": {
"**/.git": true,
"dist": true,
"node_modules": true
}
}
}
slug = models.SlugFiled(unique=True)
url(r'^(?P<slug>[-a-zA-Z0-9_]+)$', 'article_detail', name='article_detail'),
def article_detail(request, slug):
article = get_object_or_404(Article, slug=slug)
...