1👍
Is that patterns
a typo?
for project in projects:
domain = Settings.objects.get(id_project=project).site_domain
urlpatterns += url(r'^'+project.type+r'/'+project.name+r'/', include('apps.'+project.type+'.urls'))
Source:stackexchange.com