1
0
mirror of https://github.com/djohnlewis/stackdump synced 2024-12-04 23:17:37 +00:00

Question permalinks are now recognised and internally linked.

Fixes #3.
This commit is contained in:
Sam 2013-10-22 22:03:09 +11:00
parent f067353f62
commit 645b24f370

View File

@ -32,7 +32,7 @@ from stackdump import settings
# STATIC VARIABLES
BOTTLE_ROOT = os.path.abspath(os.path.dirname(sys.argv[0]))
MEDIA_ROOT = os.path.abspath(BOTTLE_ROOT + '/../../media')
SE_QUESTION_ID_RE = re.compile(r'/questions/(?P<id>\d+)/')
SE_QUESTION_ID_RE = re.compile(r'/(questions|q)/(?P<id>\d+)/')
SE_ANSWER_ID_RE = re.compile(r'/a/(?P<id>\d+)/')
# THREAD LOCAL VARIABLES