Giter Club home page Giter Club logo

sdmanagementportal's Introduction

Подготовка окружения

Pycharm

Windows powershell

Install choco

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient) .DownloadString('https://community.chocolatey.org/install.ps1'))

Install Pycharm Community

choco install PyCharm-community -y

Ссылка для ручного скачивания: https://www.jetbrains.com/ru-ru/pycharm/download/download-thanks.html?platform=windows&code=PCC

MacOS homebrew

brew install pycharm-ce

Python 3.10

Windows powershell

choco install python3 -y

Ссылка для ручного скачивания: https://www.python.org/downloads/

MacOS homebrew

brew install [email protected]

Обновление pip

Windows powershell

python -m pip install --upgrade pip

MacOS

sudo python3 -m pip install --upgrade pip

Запуск стенда разработки портала

Клонируем репо

cd ПутькПапкеПроекта

git clone https://gitlab.corp.tass.ru/myltsev_a/sdmanagementportal.git

Создать и активировать виртуальное окружение

python3 -m venv venv

или

python -m venv venv

Windows

.\venv\scripts\Activate

MacOS

source venv/bin/activate

Обновить pip внутри venv

python -m pip install --upgrade pip
или
python3 -m pip install --upgrade pip

Установить пакеты Джанго

pip install -r requirements.txt
или
python3 -m pip install -r requirements.txt

Выполнить миграции БД

python manage.py makemigrations MainApp
python manage.py migrate
или
python3 manage.py makemigrations MainApp
python3 manage.py migrate

Создать суперпользователя

python manage.py createsuperuser

Запустить дев сервер

python manage.py runserver
или
python3 manage.py runserver

Технологии

Python 3.10
Django 4
Django crispy forms
Bootstrap 5 https://www.bootstrapcdn.com/
FontAwesome 6 https://fontawesome.com/download

При создании нового проекта

django-admin startproject projectname path

cd projectpath

python manage.py startapp appname

В папке проекта в settings.py добавить InstalledApps (имя app)

sdmanagementportal's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.