"""Tierra2Pruebas URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based views 1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') Including another URLconf 1. Import the include() function: from django.urls import include, path 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) """ from django.conf import settings from django.conf.urls.static import static from django.conf.urls import url from django.contrib import admin from django.urls import path, include import os import django.views '''urlpatterns0 = [ path('admin/', admin.site.urls), path(r'alm01/', include('alm01.urls')), path(r'alm02/', include('alm02.urls')), path(r'alm03/', include('alm03.urls')), path(r'alm04/', include('alm04.urls')), path(r'alm05/', include('alm05.urls')), path(r'pro03/', include('pro03.urls')), ] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)''' urlpatterns = [path('admin/', admin.site.urls)] urlpatterns.append(path(r'monitorT/', include('monitorT.urls')),) urlpatterns.append(path(r'accounts/', include('django.contrib.auth.urls')),) for i in list(os.walk("./"))[0][1]: if (('GMS' in i ) or ('AI' in i) or ('Tierra_2' in i) or ('MG' in i)): for j in list(os.walk("./"+i))[0][1]: if (('Tierra_2' in i) and (('alm' in j ) or ('pro' in j) or ('cap' in j) or ('qc' in j) or ('dis' in j) or ('solutions' in j))): urlpatterns.append(path(r''+i+'/'+j+'/', include(i+'.'+j+'.urls')),) elif (('GMS' in i) and ('tools' not in j) and ('__pycache__' not in j)): urlpatterns.append(path(r''+i+'/'+j+'/', include(i+'.'+j+'.urls')),) elif (('MG' in i) and ('tools' not in j) and ('__pycache__' not in j)): urlpatterns.append(path(r''+i+'/'+j+'/', include(i+'.'+j+'.urls')),) elif (('AI' in i) and ('tools' not in j) and ('__pycache__' not in j)): urlpatterns.append(path(r''+i+'/'+j+'/', include(i+'.'+j+'.urls')),) # Docs url added urlpatterns += [path(r'docs/', include('docs.urls'))] # MonitoT url added urlpatterns += [path(r'monitor/', include('monitorT.urls'))] urlpatterns =urlpatterns + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) urlpatterns =urlpatterns + [url(r'^static/(?P.*)$', django.views.static.serve, {'document_root': settings.STATIC_ROOT, 'show_indexes': settings.DEBUG})] urlpatterns =urlpatterns + [url(r'^Tierra_2/static/(?P.*)$', django.views.static.serve, {'document_root': settings.STATIC_ROOT, 'show_indexes': settings.DEBUG})]