Git Product home page Git Product logo

Comments (6)

chicks-net avatar chicks-net commented on August 30, 2024

Tivix/django-rest-auth#136 shows how another team handled this.

from siptrackweb.

stemid avatar stemid commented on August 30, 2024

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.

from siptrackweb.

chicks-net avatar chicks-net commented on August 30, 2024

I updated my stweb/urls.py to follow the docs and the warning is still there.

/var/venv/siptrack/lib/python2.7/site-packages/siptrackweb/urls.py:253: RemovedInDjango110Warning: django.conf.urls.patterns() is deprecated and will be removed in Django 1.10. Update your urlpatterns to be a list of django.conf.urls.url() instances instead.
  (r'^prototype.js$', 'root.prototypejs'),

I also see many lines of

/var/venv/siptrack/lib/python2.7/site-packages/django/conf/urls/__init__.py:89: RemovedInDjango110Warning: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got view.add_post). Pass the callable instead.
  t = url(prefix=prefix, *t)

I'm guessing both of these are due to what is in siptrackweb/urls.py which still uses patterns().

from siptrackweb.

stemid avatar stemid commented on August 30, 2024

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.

from siptrackweb.

chicks-net avatar chicks-net commented on August 30, 2024

Agreed. I was able to proceed with testing with it as-is.

Thanks for responding so quickly. 👍

from siptrackweb.

stemid avatar stemid commented on August 30, 2024

@sii this is most likely solved now considering you've upgraded urls.py to be more modern using list(urlpatterns) instead of patterns.

from siptrackweb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.