Git Product home page Git Product logo

create-django-shell-func's Introduction

Create new Django / React project create-django-shell-func

The zsh/bash shell function to create a django project from scratch. This function creates and starts a new django project in the ~/sites/test.python folder. To be able to correctly use this function please follow the installation guide.

Installation

To install this function you need to add the function to your bash/zsh/shell profile file and source the file.

Prerequisites

  • Have a proper version of Python installed on your machine.
  • Have Python aliase or symlined to work with the command python, or change line 58 of the function to use the correct python command, in most cases it can be python3.

Step-by-step

  1. Copy and paste the contents of the file shell-func.txt into your ~/.zshrc or ~/.bash_profile file
  2. Create the folder named ~/sites/test.python or change line 48 of the function to point to the folder you want your project to be created.
  3. Run source ~/.zshrc or source ~/.bash_profile accordingly.

Usage

create [instance] [name] [-d --dev | -r --with-react]

Instance:
django  : currently the only project instance allower. Soon Yii2 instance to be implemented

Name:
The name of the project to be created. Have in mind the diferente django and react restriction to naming projects.

Options (and corresponding environment variables):
-d --dev        : starts the django development server with the --insecure flag to allow 
                  static files from being pulled from any STATICFILES_DIRS directories
-r --with-react : creates the project with a React.js front-end module to separate between
                  the django back-end logic

create-django-shell-func's People

Contributors

nickgoodwind avatar

Watchers

 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.