Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 799 Bytes

File metadata and controls

20 lines (17 loc) · 799 Bytes

Django Template Scripts

Simple Django scripts useful for bootstraping django applications.

  • adds django-environ and creates .env file
  • create .gitignore file

Integrate ReactJs

  • sets up ReactJs as a frontend app
  • add babel and webpack configuration files
  • edits package.json for building config types of dev and production
  • set up urls, view, add frontend app to settings.INSTALLED_APPS
  • set up minimal ReactJs app

How to use

  • create virtual env at project root level: "virtualenv venv"
  • activate virtualnenv
  • install packages "pip install -r requirements.txt"
  • run either "python react.py" or "djangotemplate react"
  • the script will ask you for the project name and will create it in your current working directory
  • input the name of the app and wait until the script finish