[PYTHON] Shell to create django project

I've digested various Django tutorials, but I'm getting tired of making projects first. So create a shell. The project name is unified as "config".

start_django.sh


#!/bin/sh

#Create & move working directory
mkdir $1 && cd $1

#Virtual environment construction
python3 -m venv venv

#Activate
source venv/bin/activate

#django installation
pip install django

#Project creation
django-admin startproject config .

Grant execute permission and execute with source. * Note that the directory will not be moved even if you execute it with sh.

$ chmod 755 django_start.sh
$ source ./django_start.sh <project_name>

Recommended Posts

Shell to create django project
Steps to create a Django project
Deploy django project to heroku
To myself as a Django beginner (1) --Create a project app--
Django Project Baseline
[Python] Introduce UIKit3 to your Django project
How to create a Rest Api in Django
Create a Django schedule
Django project environment construction
Django --start project without start project
unable to import django
[Django] Rename the project
update django version 1.11.1 to 2.2
Start a Django project
Create Django Todo list
A memo to create a virtual environment (venv) before Django
I tried to create a table only with Django
How to reference static files in a Django project
To myself as a Django beginner (4) --Create a memo app--
Create an API with Django
Django Getting Started: 2_ Project Creation
Django beginners create simple apps 3
Django beginners create simple apps 1
Shell program to display pyramids
Create ToDo List [Python Django]
Create a homepage with django
How to do the initial setup from Django project creation
Convert Scratch project to Python
Django beginners create simple apps 2
Create a Django login screen
Create your own Django middleware
I'm trying to create an authentication / authorization process with Django
Create and list Django models
Pass text to Django genericview
django project development environment construction
[Django] Memo to create an environment of Django + MySQL + Vue.js [Python]
Django beginners create simple apps 5
Create a shell script to run the python file multiple times
Rails users try to create a simple blog engine with Django
I tried to create Bulls and Cows with a shell program
Create a REST API to operate dynamodb with the Django REST Framework
reload in django shell with ipython
Steps to develop Django with VSCode
[Note] Django project creation and terminology
I tried to create Quip API
[Django] How to test Form [TDD]
Django1.11.1 Image uploader Easy to stumble
Command to create Linux Live USB
Create folders from '01' to '12' with python
Register your Django application in your project
How to create a Conda package
Create new application use python, django
How to create your own Transform
Shell program to display multiplication tables
How to create an email user
How to create a virtual bridge
How to create / delete symbolic links
How to reflect CSS in Django
How to get started with Django
[Django] Create your own 403, 404, 500 error pages
Create Python project documentation in Sphinx