Summary:
The purpose of this document is to outline a migration guide for Django projects
using poetry
and nox
to migrate from using flake8
to ruff
for the
purposes of linting the project.
created: 20230502
GitHub supports several lightweight markup languages for documentation; the most popular ones (generally, not just at GitHub) are Markdown and reStructuredText. Markdown is sometimes considered easier to use, and is often preferred when the purpose is simply to generate HTML. On the other hand, reStructuredText is more extensible and powerful, with native support (not just embedded HTML) for tables, as well as things like automatic generation of tables of contents.
#!/bin/bash | |
fonts_dir="${HOME}/.local/share/fonts" | |
if [ ! -d "${fonts_dir}" ]; then | |
echo "mkdir -p $fonts_dir" | |
mkdir -p "${fonts_dir}" | |
else | |
echo "Found fonts dir $fonts_dir" | |
fi |
#
# .env template for django projects
#
#
# Remember to rename this file to .env
# and uncomment the appropriate CONFIG statements
# depending upon the deployment environment
# Documentation: https://github.com/sloria/environs#usage-with-django
# Installation: `pip install environs[django]`
Last updated: 20211215 20220223 20220505
Personal public repositories: GitHub - kevinbowen777 GitLab - kevinbowen
See this StackOverflow answer for additional information.
# Pull base image
FROM python:3.10
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
poetry add -D django-debug-toolbar
OR
pipenv install django-debug-toolbar --dev
If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.
Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.
If in doubt about what git is doing when you run these commands, just