from django conf urls defaults import from django conf import settings

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
from django.conf.urls.defaults import *
from django.conf import settings
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
(r'^update', 'twits.views.parser'),
(r'^$', 'twits.views.all_twits'),
(r'^admin/(.*)', admin.site.root),
(r'^search', 'twits.views.search'),
(r'^music/(.*)/$', 'twits.views.music'),
(r'^tags/$', 'twits.views.tags'),
(r'^tag/([\w\s]+)/$','twits.views.tag'),
(r'^(?P<path>.*)$', 'django.views.static.serve',
{'document_root': settings.MEDIA_ROOT}),
url(r'^twitter/', include('twitter_app.urls')),
)