From e9c05d2b4c786010c4bad2f8524652e8aa6ae1eb Mon Sep 17 00:00:00 2001 From: Saqibur Rahman Date: Sun, 26 Nov 2023 17:45:09 +0600 Subject: [PATCH] Add WIP cookiecutter --- .env.example | 15 -- cookiecutter.json | 4 +- {{ cookiecutter.project_slug }}/.dockerignore | 11 ++ {{ cookiecutter.project_slug }}/.gitignore | 157 ++++++++++++++++++ {{ cookiecutter.project_slug }}/README.md | 2 + .../locale/.gitkeep | 0 {{ cookiecutter.project_slug }}/pytest.ini | 0 7 files changed, 172 insertions(+), 17 deletions(-) delete mode 100644 .env.example create mode 100644 {{ cookiecutter.project_slug }}/.dockerignore create mode 100644 {{ cookiecutter.project_slug }}/.gitignore create mode 100644 {{ cookiecutter.project_slug }}/README.md rename .dockerignore => {{ cookiecutter.project_slug }}/locale/.gitkeep (100%) create mode 100644 {{ cookiecutter.project_slug }}/pytest.ini diff --git a/.env.example b/.env.example deleted file mode 100644 index ebf3670..0000000 --- a/.env.example +++ /dev/null @@ -1,15 +0,0 @@ -# Django secrets -SECRET_KEY=super-insecure-django-key -DEBUG=True -ALLOWED_HOSTS=* -ENV_NAME=DEV - -# Datbase secrets -DB_HOST=localhost -DB_PORT=5432 -DB_NAME=example_db -DB_USERNAME=postgres -DB_PASSWORD=12345678 - -# Super user information -SUPERUSER_EMAIL=superuser@example.com diff --git a/cookiecutter.json b/cookiecutter.json index 0b0b699..f7c9f29 100644 --- a/cookiecutter.json +++ b/cookiecutter.json @@ -1,5 +1,5 @@ { - "project_name": "Cookiecutter Website Simple", + "project_name": "Django Project Cookiecutter", "project_slug": "{{ cookiecutter.project_name.lower().replace(' ', '_') }}", "author": "Anonymous" - } \ No newline at end of file +} diff --git a/{{ cookiecutter.project_slug }}/.dockerignore b/{{ cookiecutter.project_slug }}/.dockerignore new file mode 100644 index 0000000..7369480 --- /dev/null +++ b/{{ cookiecutter.project_slug }}/.dockerignore @@ -0,0 +1,11 @@ +.editorconfig +.gitattributes +.github +.gitignore +.gitlab-ci.yml +.idea +.pre-commit-config.yaml +.readthedocs.yml +.travis.yml +venv +.git diff --git a/{{ cookiecutter.project_slug }}/.gitignore b/{{ cookiecutter.project_slug }}/.gitignore new file mode 100644 index 0000000..f5e651a --- /dev/null +++ b/{{ cookiecutter.project_slug }}/.gitignore @@ -0,0 +1,157 @@ +# Current Project Ignores +config/settings/local.py + +# OS ignores +*.DS_Store + +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +share/python-wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.nox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +*.py,cover +.hypothesis/ +.pytest_cache/ +cover/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py +db.sqlite3 +db.sqlite3-journal + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +.pybuilder/ +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# IPython +profile_default/ +ipython_config.py + +# pyenv +# For a library or package, you might want to ignore these files since the code is +# intended to run in multiple environments; otherwise, check them in: +# .python-version + +# pipenv +# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. +# However, in case of collaboration, if having platform-specific dependencies or dependencies +# having no cross-platform support, pipenv may install dependencies that don't work, or not +# install all needed dependencies. +#Pipfile.lock + +# poetry +# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control. +# This is especially recommended for binary packages to ensure reproducibility, and is more +# commonly ignored for libraries. +# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control +#poetry.lock + +# PEP 582; used by e.g. github.com/David-OConnor/pyflow +__pypackages__/ + +# Celery stuff +celerybeat-schedule +celerybeat.pid + +# SageMath parsed files +*.sage.py + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ +.dmypy.json +dmypy.json + +# Pyre type checker +.pyre/ + +# pytype static type analyzer +.pytype/ + +# Cython debug symbols +cython_debug/ + +# PyCharm +.idea/ + +# Visual Studio Code +.vscode diff --git a/{{ cookiecutter.project_slug }}/README.md b/{{ cookiecutter.project_slug }}/README.md new file mode 100644 index 0000000..2d3ea70 --- /dev/null +++ b/{{ cookiecutter.project_slug }}/README.md @@ -0,0 +1,2 @@ +# {{ cookiecutter.project_name }} +The start of something great! diff --git a/.dockerignore b/{{ cookiecutter.project_slug }}/locale/.gitkeep similarity index 100% rename from .dockerignore rename to {{ cookiecutter.project_slug }}/locale/.gitkeep diff --git a/{{ cookiecutter.project_slug }}/pytest.ini b/{{ cookiecutter.project_slug }}/pytest.ini new file mode 100644 index 0000000..e69de29