Giter Club home page Giter Club logo

django-docker's Introduction

Project setup

Create a new Python environment

python -m venv env

Activate the newly created Python environment (Windows)

source env/Scripts/activate

Activate the newly created Python environment (Ubuntu / Mac)

source env/Scripts/activate

Install Python Poetry using the docs at https://python-poetry.org/

curl -sSL https://install.python-poetry.org | python -

Test if Poetry is installed

```shell
poetry --version

Initialize Poetry using MIT license

poetry init

Add a few essential packages (Windows)

poetry add django djangorestframework psycopg2 django-filter

Add a few essential packages (Ubuntu / Mac)

poetry add django djangorestframework psycopg2 django-filter

Install required packages

poetry install

Create /core`` folder in project folder and set up the Django main folder in the /core`

django-admin startproject config .

Modify /core/manage.py

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "core.project.settings")

Modify /core/config/settings.py

BASE_DIR = Path(__file__).resolve().parent.parent.parent
ROOT_URLCONF = "core.project.urls"
WSGI_APPLICATION = "core.project.wsgi.application"

Add split settings package

poetry add django-split-settings PyYAML

Copy developer settings

mkdir -p local
cp core/config/settings/templates/settings.dev.py ./local/settings.dev.py

Add two development packages

poetry add -D flake8
poetry add -D pre-commit
poetry run pre-commit sample-config
poetry run pre-commit install
poetry run pre-commit run --all-files
poetry run pre-commit uninstall
poetry run pre-commit install

Modify Makefile to have pre-commit commands

AWS bucket_name=farrokhtala-backend secret_key=AKIATSXJHY4PHDMVYTGH jtbdPfXIoQRFfmk5oJEdd7McSisnEtZCHFcb3FNg ip = 54.218.28.41

django-docker's People

Contributors

alifta avatar

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.