From 58297e8feb6b6ab36c23d459c3636e94c4b4d263 Mon Sep 17 00:00:00 2001 From: MateusVrs Date: Tue, 17 Oct 2023 14:12:02 -0300 Subject: [PATCH 1/3] git(ignored): adiciona novamente o .gitignore --- .gitignore | 137 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 137 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..6f9eb6d8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,137 @@ +# Django # +*.log +*.pot +*.pyc +__pycache__ +db.sqlite3 +media + +# Backup files # +*.bak + +# If you are using PyCharm # +# User-specific stuff +.idea/**/workspace.xml +.idea/**/tasks.xml +.idea/**/usage.statistics.xml +.idea/**/dictionaries +.idea/**/shelf + +# AWS User-specific +.idea/**/aws.xml + +# Generated files +.idea/**/contentModel.xml + +# Sensitive or high-churn files +.idea/**/dataSources/ +.idea/**/dataSources.ids +.idea/**/dataSources.local.xml +.idea/**/sqlDataSources.xml +.idea/**/dynamic.xml +.idea/**/uiDesigner.xml +.idea/**/dbnavigator.xml + +# Gradle +.idea/**/gradle.xml +.idea/**/libraries + +# File-based project format +*.iws + +# IntelliJ +out/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Python # +*.py[cod] +*$py.class + +# Distribution / packaging +.Python build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +*.egg-info/ +.installed.cfg +*.egg +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.coverage +.coverage.* +.cache +.pytest_cache/ +nosetests.xml +coverage.xml +*.cover +.hypothesis/ + +# Jupyter Notebook +.ipynb_checkpoints + +# pyenv +.python-version + +# celery +celerybeat-schedule.* + +# SageMath parsed files +*.sage.py + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ + +# Sublime Text # +*.tmlanguage.cache +*.tmPreferences.cache +*.stTheme.cache +*.sublime-workspace +*.sublime-project + +# sftp configuration file +sftp-config.json + +# Package control specific files Package +Control.last-run +Control.ca-list +Control.ca-bundle +Control.system-ca-bundle +GitHub.sublime-settings + +# Visual Studio Code # +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +.history \ No newline at end of file From 84364fdd414e940a36dea69961dccfb46b0ddc50 Mon Sep 17 00:00:00 2001 From: MateusVrs Date: Tue, 17 Oct 2023 14:22:21 -0300 Subject: [PATCH 2/3] scripts(env): script para gerar chave django --- scripts/env.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/env.sh b/scripts/env.sh index f54b3bf5..3fcc3b02 100644 --- a/scripts/env.sh +++ b/scripts/env.sh @@ -2,4 +2,4 @@ cp ./api/.env.example ./api/.env -sed -i "s/your_secret_key/$(python3 -c 'from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())')/g" ./api/.env \ No newline at end of file +sed -i "s/your_secret_key/$(python3 -c 'import string; import random; print("".join(random.SystemRandom().choice(string.ascii_uppercase + string.digits) for _ in range(64)))')/g" ./api/.env \ No newline at end of file From ce9156f61b176cc46194b13ed9c8d9f25002ef69 Mon Sep 17 00:00:00 2001 From: MateusVrs Date: Tue, 17 Oct 2023 14:29:49 -0300 Subject: [PATCH 3/3] scripts(env): adiciona lower case na random choice --- scripts/env.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/env.sh b/scripts/env.sh index 3fcc3b02..1837bc17 100644 --- a/scripts/env.sh +++ b/scripts/env.sh @@ -2,4 +2,4 @@ cp ./api/.env.example ./api/.env -sed -i "s/your_secret_key/$(python3 -c 'import string; import random; print("".join(random.SystemRandom().choice(string.ascii_uppercase + string.digits) for _ in range(64)))')/g" ./api/.env \ No newline at end of file +sed -i "s/your_secret_key/$(python3 -c 'import string; import random; print("".join(random.SystemRandom().choice(string.ascii_uppercase + string.ascii_lowercase + string.digits) for _ in range(64)))')/g" ./api/.env \ No newline at end of file