Django Template
Getting Started
To start, you must have the following requirements
- Python (latest version is recommended)
- IDE (VS Code)
- Django (to install see How to Use section)
How to Set Up
To start, install the required packages using the requirement.txt This step will require the virtual env module (this might require admin access) and although this is completely optional, it is strongly recommended
To install virtual env do a pip install exactly like the following:
pip install virtualenv
Afterwards, you need to create a virtual environment with
py -m venv env
Next you want to activate the virtual env so in Windows enter:
.\env\Scripts\activate
Otherwise, if you are on Mac or Linux,
source env/Scripts/activate
Next install the requirements modules
pip install -r requirements.txt
Right now, this is just Django, so you could have done
pip install Django
How to Use
Once you are in a virtual environment, you can go into template folder with the following command:
cd .\template\
Next to start the Django project
py .\manage.py runserver
Now you can go to http://127.0.0.1:8000/ and see the Django default homepage
Renaming
If you want to rename the Django project, I recommend deleting the project and starting a new project with the How it was Made section below
How it was Made
After virtual env and Django where installed, I used the startproject command
django-admin startproject template
License
This code is under MIT licence.