Reputation: 833
I'm getting this error
error at /
unknown specifier: ?P&
and I suppose it's coming from this line
(r'^(?P<template>\w+)/$', static_page),
I copied this from a tutorial, how do I fix this error ?
Upvotes: 0
Views: 247
Reputation: 336078
You want to use
r'^(?P<template>\w+)/$'
for your regex. You seem to have copied the regex with HTML entities still encoded; the regex engine expects verbatim <
and >
.
Upvotes: 2