Skip to content

busaidi/mazoon_aluminum

Repository files navigation

Mazoon Aluminum

Installation

Virtual Environment Setup

Windows

  1. Create a virtual environment:
    python -m venv .venv
  2. Activate the virtual environment:
    .venv\Scripts\activate

Linux

  1. Create a virtual environment:
    python -m venv .venv
  2. Activate the virtual environment:
    source .venv/bin/activate

Cleaning the Environment

If you want to clear the environment:

  1. Uninstall all packages:
    pip uninstall -r requirements.txt -y
  2. Purge the pip cache:
    pip cache purge

Upgrading pip

To upgrade pip:

python -m pip install --upgrade pip

Installing Requirements

Windows

  1. Install the requirements:
    pip install -r .\requirements.txt

Linux

  1. Install the requirements:
    pip install -r ./requirements.txt

Installing Bootstrap

To install Bootstrap using npm:

npm install

Run Development Server

To run the development server:

python manage.py runserver

Migrate

To apply database migrations:

python manage.py migrate

Make Messages

To create translation messages:

django-admin makemessages -l ar

Compile Messages

To compile translation messages:

Windows

py .\manage.py compilemessages

Linux

python manage.py compilemessages

update repo in VPS

Make settings.py assume unchanged

git update-index --assume-unchanged mazoon_aluminum/settings.py

Pull the latest changes from GitHub, assuming the default branch is 'master'

git pull origin master

Revert the assume-unchanged setting

git update-index --no-assume-unchanged mazoon_aluminum/settings.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published