Giter Site home page Giter Site logo

webuildcity / polis Goto Github PK

View Code? Open in Web Editor NEW
1.0 6.0 1.0 12.9 MB

This repository contains the city instance of Polis. Together with the Django-WBC Library it is our development repo for the latest features of the WBC platform.

Home Page: http://polis.we-build.city

License: GNU General Public License v3.0

Python 50.40% CSS 9.57% HTML 40.03%
2gitlab

polis's Introduction

Polis City Demo - powered by the Open Source project We-Build.City

Polis - is the Demo Instance of the Smart City Planning Platform of We-build.City polis.we-build.city

More about the OpenSource project: we-build.city or the company and services: services.we-build.city

How to setup your own city instance:

  1. Have Python 2.7.x installed. (1.1 brew install GDAL )
  2. Clone https://github.com/webuildcity/wbc to a location of your choice.
  3. Clone this repository, https://github.com/webuildcity/polis, to a location of your choice. 3.1 Rename the sub-directory "polis" to your own "city name" i.e. "paris".
  4. Make a copy of your local settings: 4.1 Copy /path/to/polis/city/default.local.py to /path/to/polis/city/local.py. 4.2 Edit /path/to/polis/city/local.py to match your setup.

4.3 Edit the path to the 'wbc' library directory within the 'wbc' repository and update the database adapter settings. For testing purposes, use the sqlite3 adapter. 4.4 Edit the HAYSTACK_CONNECTIONS block, edit the name of the index.

  1. Install the dependencies using pip pip install -r /path/to/city/requirements.txt. You might want to use a virtualenv for this.

  2. Change to the home-directory of the city repository and execute python manage.py migrate to set up the database structure.

  3. Use python manage.py load-fixtures to load test data of the administrative information about our "polis test city" Hamburg into the database.

  4. Run python manage.py createsuperuser to create an admin account.

  5. Start the development server using python manage.py runserver.

  6. Open a browser and go to http://localhost:8000/. A map of our "polis test city" Hamburg should appear.

  7. Use http://localhost:8000/admin/ to log in. Under region and process, districts, departments, places and publications can be added or edited.

polis's People

Contributors

jochenklar avatar lundelius avatar philippgeisler avatar solveigs avatar vse avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

codeforhamburg

polis's Issues

Problem with installing

When I try to install to execute python manage.py migrate, this error shows up:

Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/management/__init__.py", line 338, in execute_from_command_line
    utility.execute()
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/management/__init__.py", line 312, in execute
    django.setup()
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/__init__.py", line 18, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/apps/registry.py", line 85, in populate
    app_config = AppConfig.create(entry)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/apps/config.py", line 119, in create
    import_module(entry)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
ImportError: No module named notifications

What can i do?

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.