Skip to main content

Command Palette

Search for a command to run...

Automate the Django Project setup with Bash

PR link at the end

Updated
1 min read
Automate the Django Project setup with Bash

Django Letsgo

A shell script to automate the django project creation process. This also includes the initial routing. The following actions are performed when you run this script:

  • Creation of the project folder

  • Creating and activating virtual enviroment

  • Updating pip to latest version

  • Installing neccessary pip packages

  • Starting django project django-admin startproject

  • Starting an app python manage.py startapp

  • Writing to settings .py, urls .py, views .py, templates

  • Adding static files to project

  • Making migrations and migrating them

  • Running the server for the first time

  • Add an AuthApp with working login and Register

Getting Started

To get started, download the latest release and extract the files on your PC

Usage

  • Place the script anywhere you wish

  • Open the folder in Git-Bash and type the following command

$ source django-letsgo -p <projectname>

    flags:
     -p <projectname> : Start a django project with the name <projectname>
     -a               : Start the authapp with working login and register pages
     -h               : Show this help
  • Wait for few seconds and your server is running.

Contributing

To contribute just make a PR

Automation & Beyond

Part 1 of 2

Automate like a pro with practical Bash scripts that streamline your development environment. From setting up Django projects to installing tools like Tailwind CSS, this series is packed with time-saving hacks.

Up next

Automate the Tailwind CSS Installation Process

Tailwind Letsgo A shell script to automate the tailwind installation process. Prerequisites Node Js is required to run this script. If not installed, install it using this link https://nodejs.org/en/download/ Run the script $ source tailwind.sh The ...

More from this blog

N

Neeraj Adhav's Blog

30 posts

I share tutorials, insights, and experiments across cloud computing, AI, and sustainable open-source tech, with a strong focus on Linux systems and real-world applications.