aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django/urls.py.example
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2016-06-20 16:37:07 -0400
committerbnewbold <bnewbold@robocracy.org>2016-06-20 16:37:07 -0400
commitbaf14633cbd8af6413290ccae5765aefd2a278a5 (patch)
tree6fcdf0e488d707ce373d46a50f543364ea7bf3b8 /bn_django/urls.py.example
parent4b5b2769679515a54d3287077821421dce613432 (diff)
downloadbnewnet-baf14633cbd8af6413290ccae5765aefd2a278a5.tar.gz
bnewnet-baf14633cbd8af6413290ccae5765aefd2a278a5.zip
remove old django folder
Diffstat (limited to 'bn_django/urls.py.example')
-rw-r--r--bn_django/urls.py.example63
1 files changed, 0 insertions, 63 deletions
diff --git a/bn_django/urls.py.example b/bn_django/urls.py.example
deleted file mode 100644
index df261c7..0000000
--- a/bn_django/urls.py.example
+++ /dev/null
@@ -1,63 +0,0 @@
-from django.conf import settings
-from django.conf.urls.defaults import *
-from photos.models import Photo, Gallery
-from django.contrib.comments.models import Comment
-from django.contrib import admin
-import git_wiki.models
-
-admin.autodiscover()
-
-urlpatterns = patterns('',
- # Example:
- # (r'^bn_django/', include('bn_django.foo.urls')),
- (r'^$', 'django.views.generic.simple.direct_to_template',
- {'template': 'frontpage.html','extra_context':dict({ \
- 'latest_photos':Photo.objects.order_by('-date')[:2], \
- 'latest_galleries':Gallery.objects.order_by('-date')[:4], \
- #'latest_comments':Photo.objects.order_by('date')[:4] \
- 'latest_knowledge':git_wiki.models.shortlog(), \
- 'latest_comments':Comment.objects.order_by('-submit_date')[:8], \
- 'newitems':git_wiki.models.newest_items(), \
- })}),
- (r'^about/$', 'django.views.generic.simple.direct_to_template',
- {'template': 'about.html'}),
- (r'^credits/$', 'django.views.generic.simple.direct_to_template',
- {'template': 'credits.html'}),
- (r'^copyright/$', 'django.views.generic.simple.direct_to_template',
- {'template': 'copyright.html'}),
-
- (r'^knowledge/$', 'bn_django.git_wiki.views.frontpage',),
- #(r'^k/$', 'django.views.generic.simple.direct_to_template',
- # {'template': 'nogo.html'}),
- (r'^k/', include('bn_django.git_wiki.urls')),
- (r'^code/$', 'django.views.generic.simple.direct_to_template',
- {'template': 'nogo.html'}),
- #(r'^code/', include('bn_django.git_browse.urls')),
- (r'^photos/', include('bn_django.photos.urls')),
-
- #(r'^search/', include('bn_django.search.urls')),
-
- # Uncomment this for admin:
- (r'^admin/doc/', include('django.contrib.admindocs.urls')),
- (r'^admin/(.*)', admin.site.root),
- (r'^comments/', include('django.contrib.comments.urls')),
-
- (r'^journal/', include('bn_django.journal.urls')),
- (r'^artifacts/$', 'django.views.generic.simple.direct_to_template',
- {'template': 'journal/artifacts.html'}),
- (r'^artifacts/', include('bn_django.journal.artifact_urls')),
-
- # uncomment for development
- #(r'^static/(?P<path>.*)$', 'django.views.static.serve',
- # {'document_root': '/home/bnewbold/code/bn-project/static',
- # 'show_indexes': True}),
- #(r'^style/(?P<path>.*)$', 'django.views.static.serve',
- # {'document_root': '/home/bnewbold/code/bn-project/static/style'}),
- #(r'^media/(?P<path>.*)$', 'django.views.static.serve',
- # {'document_root': '/home/bnewbold/code/bn-project/media'}),
-)
-
-if settings.DEBUG:
- urlpatterns += patterns('',
- (r'^static/(?P<path>.*)$', 'django.views.static.serve',
- {'document_root': '/path/to/media'}), )