[Fixed]-Creating dynamic URLS by concatenating strings rises UnicodeEncodeError

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'))

Leave a comment