Skip to content

Zeyu-Li/django-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Template

Getting Started

To start, you must have the following requirements

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.

About

A Django template 📝

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages