App URLs are defined in each app's url.py file. The root urls.py then
includes these app urls.py. This means having an include('') line for each
app (as was done with the admin site and the API docs apps). To allow
adding apps without having to edit this file by hand, Mayan subclasses
Django's AppConfig (django.apps), and overrides the ready() method to do
this dynamically:
https://gitlab.com/mayan-edms/mayan-edms/blob/master/mayan/apps/common/apps.py#L52.
The end result is that adding a 3rd party app in Mayan is a matter of just
adding the app's name in the INSTALLED_APPS list in your settings.py file,
the system takes care of all the integration.

On Thu, Dec 31, 2015 at 4:52 PM, Rachael Sewell <[email protected]> wrote:

> Hello,
>
> I'm new to the Django framework. I'm trying to figure out exactly where
> the url patterns are located. I see in mayan/settings/base.py
> that ROOT_URLCONF = 'mayan.urls'. In the mayan/url.py file I see that there
> are:
>
> urlpatterns = patterns(
>     '',
>     url(r'^admin/', include(admin.site.urls)),
>     url(r'^docs/', include('rest_framework_swagger.urls')),
> )
>
>
> My question is, where are the patterns located for the rest of the URLs in
> the applications? For example, how are urls dispatched for /document? It
> appears to be working without having a urlpattern defined.
>
> Rachael
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Mayan EDMS" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Mayan EDMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to