Source

meblog / urls.py

Full commit
Hudarsono 5eb5c64 














Hudarsono Hu 89db69e 
Hudarsono Hu 997e9dd 

Hudarsono 5eb5c64 






Hudarsono Hu 89db69e 

Hudarsono Hu 0179e2e 
Hudarsono caf905b 

Hudarsono 0f264f7 
Hudarsono 1eda38a 
Hudarsono caf905b 

Hudarsono 0f264f7 
Hudarsono caf905b 



Hudarsono 0f264f7 




Hudarsono Hu ccd4900 
Hudarsono bd8b62c 
Hudarsono Hu 0179e2e 
Hudarsono bd8b62c 
Hudarsono Hu ccd4900 
Hudarsono cd4e2a9 

Hudarsono Hu 997e9dd 
Hudarsono bd8b62c 
Hudarsono 0f264f7 

Hudarsono 5eb5c64 
# Copyright 2008 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from django.conf.urls.defaults import *
from django.conf import settings
from posts.rss import LatestFeed


urlpatterns = patterns('',
    # Example:
    # (r'^foo/', include('foo.urls')),

    # Uncomment this for admin:
#     (r'^admin/', include('django.contrib.admin.urls')),

	# serve static resources
	#(r'^resources/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT }),

	(r'^$', 'posts.views.stream'),

    (r'^admin/$', 'posts.views.listPost'),
	(r'^posts/$', 'posts.views.listPost'),
    (r'^posts/category/([-\w]+)$', 'posts.views.listPostByCategory'),
    (r'^posts/tag/([-\w]+)$', 'posts.views.listPostByTag'),
    (r'^post/new/', 'posts.views.newPost'),
    (r'^post/(\d{4})/(\d{2})/(\d{2})/([-\w]+)', 'posts.views.showPost'),
    (r'^post/edit/(\d{4})/(\d{2})/(\d{2})/([-\w]+)', 'posts.views.editPost'),
    (r'^post/delete/(\d{4})/(\d{2})/(\d{2})/([-\w]+)', 'posts.views.delPost'),

    (r'^pages/$', 'pages.views.listPages'),
    (r'^page/new/', 'pages.views.newPage'),
    (r'^page/edit/([-\w]+)', 'pages.views.editPage'),
    (r'^page/delete/([-\w]+)', 'pages.views.delPage'),

    (r'^media/$', 'media.views.listMedia'),
    (r'^media/serve/([-\w]+)', 'media.views.serve'),
    (r'^media/delete/([-\w]+)', 'media.views.delMedia'),
	(r'^media/upload/', 'media.views.upload'),
    (r'^media/download/([-\w]+)', 'media.views.download'),

	(r'^feeds/latest/$', LatestFeed()),

    (r'^contact/$', 'pages.views.contact'),
    (r'^([-\w]+)', 'pages.views.render'),
)