django quick start

Django Quick Setup Script

  • Make sure you have a running python setup.

  • Also, pip should be properly installed and configured.

  • You can now run the scripts according to your Operating System:

    • For Windows
     mkdir %1 
     cd %1
     pip install virtualenv
     virtualenv env
     call env\Scripts\activate
    
     pip install django
     django-admin startproject %1 .
     cls
    
    • For Linux and macOS
     #!/usr/bin/env bash
    
     mkdir $1
     cd $1
     pip install virtualenv
     virtualenv env
     source env\bin\activate
    
     pip install django
     django-admin startproject $1 .
     clear
posted @ 2021-11-23 14:56  花生与酒  阅读(56)  评论(0编辑  收藏  举报