|
Revision 74, 0.9 kB
(checked in by simon, 3 months ago)
|
Implemented tagging.
Switched to arrows for the "Newer | Older" navigation.
Removed special behaviour for logged in users.
|
| Line | |
|---|
| 1 |
from django.conf.urls.defaults import * |
|---|
| 2 |
from django.conf import settings |
|---|
| 3 |
|
|---|
| 4 |
urlpatterns = patterns('bitstructures.substructure.views', |
|---|
| 5 |
(r'^$', 'blog'), |
|---|
| 6 |
(r'^(?P<year>\d{4})/(?P<month>\d{2})/(?P<slug>[a-z0-9-]+)$', 'entry_page'), |
|---|
| 7 |
(r'^(?P<year>\d{4})/(?P<month>\d{2})/(?P<slug>[a-z0-9-]+)/(?P<num>\d+)/(?P<filename>[a-zA-Z0-9-_\.]+)$', 'entry_codeblock'), |
|---|
| 8 |
(r'^drafts/(?P<slug>[a-z0-9-]+)$', 'draft_page'), |
|---|
| 9 |
(r'^drafts/(?P<slug>[a-z0-9-]+)/(?P<num>\d+)/(?P<filename>[a-zA-Z0-9-_\.]+)$', 'draft_codeblock'), |
|---|
| 10 |
(r'^fb-atom.xml$', 'atom_feed'), |
|---|
| 11 |
(r'^all$', 'all'), |
|---|
| 12 |
(r'^tagged-with/(?P<tag_name>[a-z0-9-]+)$', 'tagged_with'), |
|---|
| 13 |
(r'^robots.txt$', 'robots_txt') |
|---|
| 14 |
) |
|---|
| 15 |
|
|---|
| 16 |
if hasattr(settings, 'SUBSTRUCTURE_FEEDBURNER_REDIRECT_URL'): |
|---|
| 17 |
urlpatterns += patterns('', |
|---|
| 18 |
(r'^atom.xml$', 'bitstructures.substructure.views.redirect_to_feedburner')) |
|---|
| 19 |
else: |
|---|
| 20 |
urlpatterns += patterns('', |
|---|
| 21 |
(r'^atom.xml$', 'bitstructures.substructure.views.atom_feed')) |
|---|