Custom short url (fix #22)

This commit is contained in:
Yohan Boniface 2013-06-16 18:08:08 +02:00
parent e14310e5db
commit 3b7131f2fd
2 changed files with 2 additions and 1 deletions

View file

@ -137,6 +137,7 @@ AUTHENTICATION_BACKENDS += (
LEAFLET_STORAGE_ALLOW_ANONYMOUS = False LEAFLET_STORAGE_ALLOW_ANONYMOUS = False
SITE_URL = "http://umap.org" SITE_URL = "http://umap.org"
UMAP_DEMO_SITE = False UMAP_DEMO_SITE = False
MAP_SHORT_URL_NAME = "umap_short_url"
#============================================================================== #==============================================================================
# Third party app settings # Third party app settings

View file

@ -15,7 +15,7 @@ urlpatterns = patterns('',
(r'^admin/', include(admin.site.urls)), (r'^admin/', include(admin.site.urls)),
url(r'', include('social_auth.urls')), url(r'', include('social_auth.urls')),
# We don't want it to be localized # We don't want it to be localized
url(r'^m/(?P<pk>\d+)/$', MapShortUrl.as_view(), name='map_short_url'), url(r'^m/(?P<pk>\d+)/$', MapShortUrl.as_view(), name='umap_short_url'),
) )
urlpatterns += i18n_patterns('', urlpatterns += i18n_patterns('',
url(r'^$', views.home, name="home"), url(r'^$', views.home, name="home"),