Skip to content

devvsima/django-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 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

Releases

No releases published

Packages

No packages published

Languages