Skip to content

Commit 64c4c24

Browse files
committed
All fix for production
1 parent 55bfe48 commit 64c4c24

File tree

5 files changed

+27
-26
lines changed

5 files changed

+27
-26
lines changed

.env

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
DEBUG=on
2+
SECRET_KEY=your-secret-key
3+
DATABASE_URL=psql://urser:[email protected]:8458/database
4+
SQLITE_URL=sqlite:///my-local-sqlite.db
5+
CACHE_URL=memcache://127.0.0.1:11211,127.0.0.1:11212,127.0.0.1:11213
6+
REDIS_URL=rediscache://127.0.0.1:6379/1?client_class=django_redis.client.DefaultClient&password=ungithubbed-secret

.pre-commit-config.yaml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,12 @@
11
fail_fast: true
22
repos:
33
- repo: https://github.com/pre-commit/pre-commit-hooks
4-
rev: v3.1.0
4+
rev: v3.2.0
55
hooks:
66
- id: trailing-whitespace
7-
- repo: https://github.com/psf/black
8-
rev: 19.3b0
9-
hooks:
10-
- id: black
7+
language: python
118
- repo: https://github.com/asottile/blacken-docs
12-
rev: v1.7.0
9+
rev: v1.8.0
1310
hooks:
1411
- id: blacken-docs
1512
additional_dependencies: [black==19.3b0]
16-
- repo: local
17-
hooks:
18-
- id: markdownlint
19-
name: markdownlint
20-
description: "Lint Markdown files"
21-
entry:
22-
markdownlint '**/*.md' --fix --ignore node_modules --config
23-
"./.markdownlint.json"
24-
language: node
25-
types: [markdown]

Pipfile

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,19 @@ verify_ssl = true
55

66
[dev-packages]
77
pylint = "*"
8+
pylint-django = "*"
89
autopep8 = "*"
910
rope = "*"
1011
safety = "*"
11-
pylint-django = "*"
1212
flake8 = "*"
13-
black ="*"
1413
pre-commit= "*"
1514

1615
[packages]
17-
django = "==3.1.*"
18-
gunicorn = "==20.0.*"
19-
psycopg2 = "==2.8.*"
20-
django-filter = "==2.3.*"
21-
django-guardian = "==2.3.*"
16+
django = ">=3.1.0"
17+
gunicorn = ">=20.0.0"
18+
psycopg2 = ">=2.8.0"
19+
django-filter = ">=2.3.0"
20+
django-guardian = ">=2.3.0"
2221

2322
[requires]
2423
python_version = "3.8"

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
# django-template
2-
My personal Django template project
2+
My personal Django template project.
3+
4+
This a blank django template for my project. Build around [this post](https://victoria.dev/blog/my-django-project-best-practices-for-happy-developers/) and other find online.

makefile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,16 @@ include .env
66
help: ## Show this help
77
@egrep -h '\s##\s' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
88

9+
.PHONY: env
10+
env: ## Install pipenv
11+
pip3 install pipenv
12+
pipenv shell --python 3.8
13+
914
.PHONY: install
10-
install: ## Make venv and install requirements
11-
$(BIN) pipenv install; pipenv run pre-commit install
15+
install: env ## Make venv and install requirements
16+
pipenv install --development
17+
pipenv run pre-commit install
18+
pre-commit autoupdate
1219

1320
migrate: ## Make and run migrations
1421
$(PYTHON) manage.py makemigrations

0 commit comments

Comments
 (0)