-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
200 changed files
with
2,256 additions
and
11,530 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
*.pyc | ||
*.mo | ||
database.db | ||
mails/ | ||
.spyderproject | ||
|
@@ -17,3 +18,4 @@ media/ | |
scripts/ | ||
exports/ | ||
backup/ | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
from __future__ import unicode_literals | ||
|
||
from .base_settings import * | ||
|
||
DEBUG = True | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
from __future__ import unicode_literals | ||
|
||
from .base_settings import * | ||
|
||
DEBUG = False | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,6 @@ | |
framework. | ||
""" | ||
from __future__ import unicode_literals | ||
|
||
import os | ||
import sys | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
VIRTUAL_ENV ?= .venv | ||
|
||
.PHONY: run | ||
run: $(VIRTUAL_ENV) | ||
$(VIRTUAL_ENV)/bin/pip install -r requirements.txt | ||
yarn install || npm install | ||
cp -n Lagerregal/template_development.py Lagerregal/settings.py | ||
$(VIRTUAL_ENV)/bin/python manage.py compilemessages -l de | ||
$(VIRTUAL_ENV)/bin/python manage.py migrate | ||
$(VIRTUAL_ENV)/bin/python manage.py populate | ||
$(VIRTUAL_ENV)/bin/python manage.py runserver | ||
|
||
.PHONY: makemessages | ||
makemessages: $(VIRTUAL_ENV) | ||
$(VIRTUAL_ENV)/bin/python manage.py makemessages -l de -d django --ignore=node_modules | ||
$(VIRTUAL_ENV)/bin/python manage.py makemessages -l de -d djangojs --ignore=node_modules | ||
|
||
.PHONY: test | ||
test: $(VIRTUAL_ENV) | ||
$(VIRTUAL_ENV)/bin/pip install coverage | ||
$(VIRTUAL_ENV)/bin/coverage run --branch --omit=.venv/* manage.py test | ||
$(VIRTUAL_ENV)/bin/coverage html --skip-covered | ||
|
||
.PHONY: lint | ||
lint: $(VIRTUAL_ENV) | ||
$(VIRTUAL_ENV)/bin/pip install flake8 isort | ||
$(VIRTUAL_ENV)/bin/flake8 | ||
$(VIRTUAL_ENV)/bin/isort -rc -c api demo devicegroups devices devicetags history Lagerregal locale locations mail main media netork users | ||
|
||
$(VIRTUAL_ENV): | ||
python3 -m venv $(VIRTUAL_ENV) | ||
$(VIRTUAL_ENV)/bin/pip install -U pip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.