版本:無法訪問羅塞塔
- 的Python 3.5.1
- Django的1.10
- Django的羅塞塔0.7.13
The installation guide告訴你以下添加到您的項目settings.py
:
from django.conf import settings
if 'rosetta' in settings.INSTALLED_APPS:
urlpatterns += patterns('',
url(r'^rosetta/', include('rosetta.urls')),
)
然而,這只是導致一個錯誤:
NameError: name 'patterns' is not defined