新人エンジニアのブログ

主にバックエンド

プログラム内のファイル名を一括変更する方法 サクラエディタ

急ぎの人は[続きを読む]をクリックし、目次のやり方以降を読んでください

イメージできない場合はやりたいことの図を見てください。

  • 事例
    • 前置き
  • やること
    • やりたいこと
      • 使用した道具
      • 使用した機能
      • やり方
    • 実行例
      • 実行結果
続きを読む

サブネットマスクは九九でわかる? -失敗から学ぶ CCNA -

サブネットマスクと聞くと

以下のサイトの仮面の絵がいつも思い浮かぶ

f:id:UYCP:20200724191743p:plain

subnet mask man

https://wa3.i-3-i.info/word11975.html

  • 肝心なのはマスクの正体を知ることだ!
    •  Bad mask /30 for address
    • 計算ができないからマスクマンを倒せない?(設定できない?)
    • サブネットマスクをどう考えるか?
  • 失敗例
  • 最後に
続きを読む

Django: Run server automatically by one-click

Run Django server automatically by one-click

Run Django server automatically by one click on Windows 10.

Script

Please wait for few minutes or click "gist" below.

gistb9a7b8f1716732a2832419f4041a8179

How to use Django server

Before you make the bat file, you must install python3 and Django for Windows.

After that follow the document below.

English

Setting up a Django development environment - Learn web development | MDN

In Japanese

Django 開発環境の設定 - ウェブ開発を学ぶ | MDN

Making the bat file

First, get your path to your manage.py file.

My location was

C:\Users\Windows\AppData\Local\Programs\Python

I can use "call" bat file command to run python command on bat file.

I wrote like this.

call python manage.py runserver

Use "pause" in the end

This is for checking bat file execution result.

Result

f:id:UYCP:20200210114340p:plain

cmd
Run and check your website

http://127.0.0.1:8000/

Reference

How to Create a Batch File to Run Python Script

datatofish.com

In Japanese

Djangoのカスタムコマンドを作成してコマンドラインから実行する

qiita.com