Giter VIP home page Giter VIP logo

Comments (5)

jpmckinney avatar jpmckinney commented on August 29, 2024

We're using 1.11.

from represent-boundaries.

jonathanstegall avatar jonathanstegall commented on August 29, 2024

Thanks. I did manage to get it running with 2.2.0. It's just a matter of using python manage.py migrate instead, and also in urls.py it appears to expect this instead:

from django.contrib import admin
from django.urls import path
from django.conf.urls import include, url

urlpatterns = [
    path('admin/', admin.site.urls),
    url('', include('boundaries.urls')),
]

It will start the app in any case, at that point. I may still have compatibility issues though, as python manage.py loadshapefiles results in a TypeError: '<=' not supported between instances of 'int' and 'list' error.

Do you think I ought to downgrade to 1.11 and see what happens? I'm hoping my shapefiles (used in a much older version of boundaryservice) are still compatible, but I'm not sure how to evaluate that.

from represent-boundaries.

jpmckinney avatar jpmckinney commented on August 29, 2024

The shapefiles shouldn't be a problem. Do you have the full stacktrace for the error?

from represent-boundaries.

jpmckinney avatar jpmckinney commented on August 29, 2024

I've made the two changes to the installation instructions that you noted.

from represent-boundaries.

jonathanstegall avatar jonathanstegall commented on August 29, 2024

I think I figured out the rest. Our old version used something like 'namer': utils.simple_namer(['district'], normalizer=lambda x: x.lstrip('0')), for the name function, and I was missing that I should instead be using name_func=boundaries.clean_attr('district'),. At least I think that is what I should be using. In any case, no more errors. I think I'm good on this!

Thanks for the willingness to help!

from represent-boundaries.

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.