Skip to content

Repository files navigation

Django Quickstart

(Original script https://github.com/henriquebastos/django-quickstart )

Adjusted to better fit my initial setup

This template includes:

One liner:

  1. Copy and paste the code below in your terminal
  2. Hit 'Enter'
  3. Type in your project's name (only letters and numbers)
  4. Hit 'Enter'
read PROJECT_NAME && \
mkdir $PROJECT_NAME && \
cd $PROJECT_NAME && \
python3 -m venv .venv && \
source .venv/bin/activate && \
python3 -m pip install --upgrade pip && \
python3 -m pip install django && \
django-admin startproject --template https://github.com/GuiFV/django-quickstart/archive/master.zip --name=.env,pytest.ini $PROJECT_NAME . && \
pip3 install --prefer-binary -r requirements-dev.txt && \
git init && \
git add . && \
git commit -m 'Initial import'

Afterwards:

  1. Change SECRET_KEY in .env (you can use https://djecrety.ir/)
  2. Create a repo
  3. Set it up locally using git remote add origin https://github.com/YOURNAME/REPO_CREATED/
  4. git push to your new repo
  5. Happy coding :)

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages