Cannot access rosetta
问题 Versions: Python 3.5.1 Django 1.10 django-rosetta 0.7.13 The installation guide tells you to add the following to your project's settings.py : from django.conf import settings if 'rosetta' in settings.INSTALLED_APPS: urlpatterns += patterns('', url(r'^rosetta/', include('rosetta.urls')), ) However, this just results in an error: NameError: name 'patterns' is not defined 回答1: Searching for that problem reveals that one apparently has to import it: from django.conf.urls import patterns But