-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
get NameError: name 'patterns' is not defined
when following install instructions on centos7
#13
Comments
Tivix/django-rest-auth#136 shows how another team handled this. |
Thanks, seems to me the main problem was in urls.py that django-admin generates. I've updated the docs to reflect its new appeareance. Also might add some note in the docs about which Django version is recommended for that guide. |
I updated my
I also see many lines of
I'm guessing both of these are due to what is in |
Will definitely move away from patterns() and towards using a urlpatterns list in the master branch too Chris, thanks for pointing that out. I'll make a PR asap. All I did for now, and which was enough to get siptrack working on my CentOS 7 install, was to update the docs. |
Agreed. I was able to proceed with testing with it as-is. Thanks for responding so quickly. 👍 |
@sii this is most likely solved now considering you've upgraded urls.py to be more modern using list(urlpatterns) instead of patterns. |
While following https://github.com/sii/siptrackweb/wiki/Install-personal-dev-environment I ran into
NameError: name 'patterns' is not defined
when runningpython manage.py migrate
. According to stackoverflow this can be fixed by replacingwith
which got me past that issue, but then I see
Should the instructions be updated to avoid this deprecation?
The text was updated successfully, but these errors were encountered: