Code Monkey home page Code Monkey logo

backend's People

Contributors

joshuazrobins avatar kikisdeliveryservice avatar steveofla avatar ultra-mk avatar worace avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

backend's Issues

Error when trying to python manage.py migrate during project setup

 sofianehome$ python manage.py migrate
Traceback (most recent call last):
  File "manage.py", line 22, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 367, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 316, in execute
    settings.INSTALLED_APPS
  File "/usr/local/lib/python2.7/site-packages/django/conf/__init__.py", line 53, in __getattr__
    self._setup(name)
  File "/usr/local/lib/python2.7/site-packages/django/conf/__init__.py", line 41, in _setup
    self._wrapped = Settings(settings_module)
  File "/usr/local/lib/python2.7/site-packages/django/conf/__init__.py", line 97, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
  File "/usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/Users/sofianehome/code/foodforla/backend/settings.py", line 19, in <module>
    import urllib.parse as urlparse
ImportError: No module named parse

Make JSON for the front-end

Michael and I think this will be a good format for the front-end to use…

[
  {
    name: 'All Peoples Christian Center',
    type: 'Food Bank',
    address_1: '822 E. 20th Street',
    address_2: 'Suite 500',
    city: 'Los Angeles',
    state: 'CA',
    zipcode: '90011',
    phone: '213-747-6357',
    website: 'www.example.com',
    active: true | false
    category: 'CG' | 'FM' | 'FB'
    latitude: 34.0856924,
    longitude: -118.1729264,
    hours: [
     {
       day: '1stMo',
       open_time: '08:00',
       close_time: '17:00'
     },
     {
       day: 'AllTu',
       open_time: '08:00',
       close_time: '17:00'
     }
    ]
  },
  …
]

Investigate CSV storage options

Currently files are stored in google drive as sheets. We will need to access these files to put them into the Postgres database. Currently the csv_ingest file is looking for the files to be stored locally.

Can we grab the data directly from google sheets? Should we move it to Amazon S3? Is storing the locally the best option?

@rebeccapizano -> Is this something you'd be able to take a look at?

Commonize test file names

currently we have name_test.py and name_plural_test.py. We should commonize to a single naming convention.

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.