Simple Project to quickly get a new Django environment up and running
- Create a new repo on github with
git clone https://github.com/fullerth/DjangoSetup.git <new-repo-name>
- Change the new repo origin to
git remote rm origin
git remote add origin <new-repo-url>
- Edit this README.md to discuss the new project.
- Checkin and push to test the new repo
- Create a virtual environment
python3 -m venv <new-repo-name>_venv
- Install requirements
pip install -r requirements.txt
- Make a Django site
Both project and app templates for django-admin/manage.py are provided.
To create a project, from the root directory use:
django-admin startproject --template project_template <project-name> source
To create a new application with the template use:
manage.py startapp --template <path-to-app-template> <app-name>
The project will ignore a virtual environment in django_setup_venv. After cloning the project change this in .gitignore to a sane value for the new project.