Skip to content

Latest commit

 

History

History
78 lines (56 loc) · 1.32 KB

readme.md

File metadata and controls

78 lines (56 loc) · 1.32 KB

🚀 Getting Started

The template is minimally loaded and has already some settings for easy deployment to the server It implements user registration and all sorts of little thing

🛠️ Technologies Stack

  • Django
  • PostgreSQL \ Sqlite

📥 How to Install?

1. Clone the Repository

First, clone the repository and navigate to its directory:

git clone https://github.com/devvsima/django-tamplate.git
cd app

2. Setting up a virtual environment ".venv"

Linux

Install dependencies and activate the virtual environment:

python3 -m venv .venv
source .venv/bin/activate
pip3 install -r requirements.txt

Windows

Similar steps for Windows:

python -m venv .venv
.venv\Scripts\activate
pip install -r requirements.txt

💡 Note: The name .venv can be changed to anything else you wish.

3. Setting environment variable

First, copy the .env.dist file and rename it to .env:

cp .env.dist .env

Then edit the environment variables file:

vim .env
# or
nano .env

4. Django commands

~Migrations

$ python manage.py makemigrations
$ python manage.py migrate

~Create admin

$ python manage.py createsuperuser

~Launch 🚀

$ python manage.py runserver
# or
$ python manage.py runserver 0.0.0.0:8000