-
Notifications
You must be signed in to change notification settings - Fork 0
/
urls.py
32 lines (22 loc) · 930 Bytes
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
from django.conf.urls.defaults import *
from django.contrib import admin
from mezzanine.core.views import direct_to_template
admin.autodiscover()
from mezzanine.twitter.models import Query, Tweet
from django.contrib import admin
admin.site.register(Query)
admin.site.register(Tweet)
# Add the urlpatterns for any custom Django applications here.
# You can also change the ``home`` view to add your own functionality to
# the project's homepage.
urlpatterns = patterns("",
("^admin/", include(admin.site.urls)),
url("^$", direct_to_template, {"template": "index.html"}, name="home"),
# ADD YOUR OWN URLPATTERNS *ABOVE* THE LINE BELOW.
# ``mezzanine.urls`` INCLUDES A *CATCH ALL* PATTERN
# FOR PAGES, SO URLPATTERNS ADDED BELOW ``mezzanine.urls``
# WILL NEVER BE MATCHED!
("^", include("mezzanine.urls")),
)
# Adds ``MEDIA_URL`` to the context.
handler500 = "mezzanine.core.views.server_error"