Whats the correct way to use and refer to a slugfield in a django 1.3
for example the following code should link via slug to a generic view however the NoReverseMatch er
In your template, assuming post
is an instance of your model:
{% url single_post post.slug %}
Your url regex should look like the following:
url(r'^post/(?P[\w-]+)/$', ...
To test the above regex, try to access a few posts directly in your browser with a variety of valid slugs and see if they works. Once this is done, start testing the url names.