Git Product home page Git Product logo

sechack365_0603's Introduction

SecHack365_0603

環境

  • python 3.7.3
  • django 2.2.1

環境構築&実行方法

以下はあくまで参考程度に.
python manage.py runserverを実行した後にThe install worked successfully! Congratulations! と出れば(たぶん)ここは無視してokです.

Pythonのダウンロードからブラウザで確認するまで

  1. https://www.anaconda.com/distribution/ からPython3.7をダウンロード
  2. python -VPython 3.7.3と出ればok
  3. conda install django でDjangoをインストール
  4. python manage.py runserverを実行後にURLにアクセス
    • The install worked successfully! Congratulations! と出れば成功
    • ModuleNotFoundError: No module named 'XXXXX' と出るときは,conda install XXXXX

DBまわり

migrateの実行

  1. ./SecHack365_0603に移動
  2. python manage.py migrateを実行

admin関連

  1. python manage.py createsuperuserを実行して管理者情報の登録
  2. http://localhost:8000/admin/でログイン

DBについて

Usbというモデルを追加しました.これはidusb_serial_numberだけを持つようにしているので,必要に応じて適宜変更してください.
python manage.py shellを実行すれば,Pythonシェルでも確認できます.

# インポート
from sample.models import Usb

# 作成
usn = Usb(usb_serial_number="sample serial")
# 保存
usn.save()

# それぞれの取り出し
usn.id
usn.usb_serial_number

# 保存したデータをまとめて取り出し
Usb.objects.all()

Pythonスクリプトからchromeを開く

  1. http://chromedriver.chromium.org/downloads から自分の環境に合ったドライバをインストールして,PythonPageTranslation下に配置
  2. seleniumをインストール
    ex) conda install selenium

参考文献

北海道回までにすること

終わったものは横線で消します.

  1. Djangoの環境構築(本田)
  2. 画面の作成(平川)
    • 登録されてないUSBが接続された時のアラート
    • USB登録画面
  3. USBの検知(房安)
  4. DBまわり(髙石,本田)
    • 設定
    • DBに保存
    • DBから取得
  5. ポスター(全員?)
    • ざっと概要作成(髙石)

sechack365_0603's People

Contributors

masa0910 avatar yoshikazufusayasu avatar jpnykw avatar

Stargazers

 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.