Parcourir la source

Doc: add a note about the URL namespace for pluggable URLs

Baptiste Jonglez il y a 8 ans
Parent
commit
16f40803d8
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      EXTENDING.md

+ 2 - 0
EXTENDING.md

@@ -169,3 +169,5 @@ Optionaly, you can customize which URLs are plugged and to which prefix via the
         class MyAppConfig(AppConfig, coin.apps.AppURLS):
         class MyAppConfig(AppConfig, coin.apps.AppURLS):
             name = 'my_app'
             name = 'my_app'
             exported_urlpatterns = [('coolapp', 'my_app.cool_urls')]
             exported_urlpatterns = [('coolapp', 'my_app.cool_urls')]
+
+The URL namespace will be set to the prefix ('coolapp' in this example).