Code Monkey home page Code Monkey logo

seoul_bike's Introduction

seoul_bike

django project for the Seoul public bicycle system
 

환경
Windows / Python 3.7 / Pycharm 2020.1 / pipenv / Django 3.1
 

자동 실행 설정할 파일
10분마다: update_station_now_and_daily_station.py
1시간마다(매 50분): update_weather.py 하루마다: table daily_station -> table station_to_stack 전처리. 모델 업데이트용 데이터 넣기  

DB 완전 초기화의 경우

  • 삭제할 것
    db.sqlite3(sqlite3.exe 아님), app들 안에 있는 pycache, migrations 폴더
$ python manage.py makemigrations
$ python manage.py migrate
$ python manage.py makemigrations (앱이름)
$ python manage.py migrate
  • 초기 데이터 넣기 - 각 1회만 실행
    python manage.py seed_users Python manage.py seed_stations Python update_station_now_and_daily_station.py
  • table 내 데이터 삭제시 주의
    삭제 후 fk 관계에 주의해 삭제한 table과 CASCADE 걸려있는 table의 create 파일 실행

seoul_bike's People

Contributors

creatoryoon avatar junha6316 avatar nekh802 avatar phin09 avatar skskwon315 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

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.