Custom short url (fix #22)
This commit is contained in:
parent
e14310e5db
commit
3b7131f2fd
2 changed files with 2 additions and 1 deletions
|
@ -137,6 +137,7 @@ AUTHENTICATION_BACKENDS += (
|
|||
LEAFLET_STORAGE_ALLOW_ANONYMOUS = False
|
||||
SITE_URL = "http://umap.org"
|
||||
UMAP_DEMO_SITE = False
|
||||
MAP_SHORT_URL_NAME = "umap_short_url"
|
||||
|
||||
#==============================================================================
|
||||
# Third party app settings
|
||||
|
|
|
@ -15,7 +15,7 @@ urlpatterns = patterns('',
|
|||
(r'^admin/', include(admin.site.urls)),
|
||||
url(r'', include('social_auth.urls')),
|
||||
# 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('',
|
||||
url(r'^$', views.home, name="home"),
|
||||
|
|
Loading…
Reference in a new issue