mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-18 10:54:51 +03:00
Merge pull request #14 from cookiecutter/master
Merge upstream changes from `2022.02.10` to `2022.02.13`
This commit is contained in:
commit
95060377d0
5
.github/contributors.json
vendored
5
.github/contributors.json
vendored
|
@ -1237,5 +1237,10 @@
|
||||||
"name": "Ryan Fitch",
|
"name": "Ryan Fitch",
|
||||||
"github_login": "ryfi",
|
"github_login": "ryfi",
|
||||||
"twitter_username": ""
|
"twitter_username": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "ghazi-git",
|
||||||
|
"github_login": "ghazi-git",
|
||||||
|
"twitter_username": ""
|
||||||
}
|
}
|
||||||
]
|
]
|
15
CHANGELOG.md
15
CHANGELOG.md
|
@ -3,6 +3,21 @@ All enhancements and patches to Cookiecutter Django will be documented in this f
|
||||||
|
|
||||||
<!-- GENERATOR_PLACEHOLDER -->
|
<!-- GENERATOR_PLACEHOLDER -->
|
||||||
|
|
||||||
|
## 2022.02.13
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- Change docs port from 7000 to 9000 ([#3590](https://github.com/cookiecutter/cookiecutter-django/pull/3590))
|
||||||
|
|
||||||
|
## 2022.02.12
|
||||||
|
|
||||||
|
### Updated
|
||||||
|
- Update pytest to 7.0.1 ([#3588](https://github.com/cookiecutter/cookiecutter-django/pull/3588))
|
||||||
|
|
||||||
|
## 2022.02.11
|
||||||
|
|
||||||
|
### Updated
|
||||||
|
- Update sentry-sdk to 1.5.5 ([#3586](https://github.com/cookiecutter/cookiecutter-django/pull/3586))
|
||||||
|
|
||||||
## 2022.02.10
|
## 2022.02.10
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
|
@ -768,6 +768,13 @@ Listed in alphabetical order.
|
||||||
</td>
|
</td>
|
||||||
<td></td>
|
<td></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>ghazi-git</td>
|
||||||
|
<td>
|
||||||
|
<a href="https://github.com/ghazi-git">ghazi-git</a>
|
||||||
|
</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Gilbishkosma</td>
|
<td>Gilbishkosma</td>
|
||||||
<td>
|
<td>
|
||||||
|
|
|
@ -13,7 +13,7 @@ If you set up your project to `develop locally with docker`_, run the following
|
||||||
|
|
||||||
$ docker-compose -f local.yml up docs
|
$ docker-compose -f local.yml up docs
|
||||||
|
|
||||||
Navigate to port 7000 on your host to see the documentation. This will be opened automatically at `localhost`_ for local, non-docker development.
|
Navigate to port 9000 on your host to see the documentation. This will be opened automatically at `localhost`_ for local, non-docker development.
|
||||||
|
|
||||||
Note: using Docker for documentation sets up a temporary SQLite file by setting the environment variable ``DATABASE_URL=sqlite:///readthedocs.db`` in ``docs/conf.py`` to avoid a dependency on PostgreSQL.
|
Note: using Docker for documentation sets up a temporary SQLite file by setting the environment variable ``DATABASE_URL=sqlite:///readthedocs.db`` in ``docs/conf.py`` to avoid a dependency on PostgreSQL.
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ To setup your documentation on `ReadTheDocs`_, you must
|
||||||
|
|
||||||
Additionally, you can auto-build Pull Request previews, but `you must enable it`_.
|
Additionally, you can auto-build Pull Request previews, but `you must enable it`_.
|
||||||
|
|
||||||
.. _localhost: http://localhost:7000/
|
.. _localhost: http://localhost:9000/
|
||||||
.. _Sphinx: https://www.sphinx-doc.org/en/master/index.html
|
.. _Sphinx: https://www.sphinx-doc.org/en/master/index.html
|
||||||
.. _develop locally: ./developing-locally.html
|
.. _develop locally: ./developing-locally.html
|
||||||
.. _develop locally with docker: ./developing-locally-docker.html
|
.. _develop locally with docker: ./developing-locally-docker.html
|
||||||
|
|
|
@ -13,7 +13,7 @@ pre-commit==2.17.0
|
||||||
# Testing
|
# Testing
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
tox==3.24.5
|
tox==3.24.5
|
||||||
pytest==7.0.0
|
pytest==7.0.1
|
||||||
pytest-cookies==0.6.1
|
pytest-cookies==0.6.1
|
||||||
pytest-instafail==0.4.2
|
pytest-instafail==0.4.2
|
||||||
pyyaml==6.0
|
pyyaml==6.0
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -5,7 +5,7 @@ except ImportError:
|
||||||
from distutils.core import setup
|
from distutils.core import setup
|
||||||
|
|
||||||
# We use calendar versioning
|
# We use calendar versioning
|
||||||
version = "2022.02.10"
|
version = "2022.02.13"
|
||||||
|
|
||||||
with open("README.rst") as readme_file:
|
with open("README.rst") as readme_file:
|
||||||
long_description = readme_file.read()
|
long_description = readme_file.read()
|
||||||
|
|
|
@ -352,7 +352,7 @@ SPECTACULAR_SETTINGS = {
|
||||||
"VERSION": "1.0.0",
|
"VERSION": "1.0.0",
|
||||||
"SERVE_PERMISSIONS": ["rest_framework.permissions.IsAdminUser"],
|
"SERVE_PERMISSIONS": ["rest_framework.permissions.IsAdminUser"],
|
||||||
"SERVERS": [
|
"SERVERS": [
|
||||||
{"url": "https://127.0.0.1:8000", "description": "Local Development server"},
|
{"url": "http://127.0.0.1:8000", "description": "Local Development server"},
|
||||||
{"url": "https://{{ cookiecutter.domain_name }}", "description": "Production server"},
|
{"url": "https://{{ cookiecutter.domain_name }}", "description": "Production server"},
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
# You can set these variables from the command line, and also
|
# You can set these variables from the command line, and also
|
||||||
# from the environment for the first two.
|
# from the environment for the first two.
|
||||||
SPHINXOPTS ?=
|
SPHINXOPTS ?=
|
||||||
SPHINXBUILD ?= sphinx-build
|
SPHINXBUILD ?= sphinx-build
|
||||||
SOURCEDIR = .
|
SOURCEDIR = .
|
||||||
BUILDDIR = ./_build
|
BUILDDIR = ./_build
|
||||||
|
@ -21,10 +21,10 @@ help:
|
||||||
|
|
||||||
# Build, watch and serve docs with live reload
|
# Build, watch and serve docs with live reload
|
||||||
livehtml:
|
livehtml:
|
||||||
sphinx-autobuild -b html
|
sphinx-autobuild -b html
|
||||||
{%- if cookiecutter.use_docker == 'y' %} --host 0.0.0.0
|
{%- if cookiecutter.use_docker == 'y' %} --host 0.0.0.0
|
||||||
{%- else %} --open-browser
|
{%- else %} --open-browser
|
||||||
{%- endif %} --port 7000 --watch $(APP) -c . $(SOURCEDIR) $(BUILDDIR)/html
|
{%- endif %} --port 9000 --watch $(APP) -c . $(SOURCEDIR) $(BUILDDIR)/html
|
||||||
|
|
||||||
# Outputs rst files from django application code
|
# Outputs rst files from django application code
|
||||||
apidocs:
|
apidocs:
|
||||||
|
|
|
@ -32,7 +32,7 @@ if errorlevel 9009 (
|
||||||
goto end
|
goto end
|
||||||
|
|
||||||
:livehtml
|
:livehtml
|
||||||
sphinx-autobuild -b html --open-browser -p 7000 --watch %APP% -c . %SOURCEDIR% %BUILDDIR%/html
|
sphinx-autobuild -b html --open-browser -p 9000 --watch %APP% -c . %SOURCEDIR% %BUILDDIR%/html
|
||||||
GOTO :EOF
|
GOTO :EOF
|
||||||
|
|
||||||
:apidocs
|
:apidocs
|
||||||
|
|
|
@ -86,7 +86,7 @@ services:
|
||||||
- ./config:/app/config:z
|
- ./config:/app/config:z
|
||||||
- ./{{ cookiecutter.project_slug }}:/app/{{ cookiecutter.project_slug }}:z
|
- ./{{ cookiecutter.project_slug }}:/app/{{ cookiecutter.project_slug }}:z
|
||||||
ports:
|
ports:
|
||||||
- "7000:7000"
|
- "9000:9000"
|
||||||
command: /start-docs
|
command: /start-docs
|
||||||
{%- if cookiecutter.use_mailhog == 'y' %}
|
{%- if cookiecutter.use_mailhog == 'y' %}
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ watchgod==0.7 # https://github.com/samuelcolvin/watchgod
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
mypy==0.931 # https://github.com/python/mypy
|
mypy==0.931 # https://github.com/python/mypy
|
||||||
django-stubs==1.9.0 # https://github.com/typeddjango/django-stubs
|
django-stubs==1.9.0 # https://github.com/typeddjango/django-stubs
|
||||||
pytest==7.0.0 # https://github.com/pytest-dev/pytest
|
pytest==7.0.1 # https://github.com/pytest-dev/pytest
|
||||||
pytest-sugar==0.9.4 # https://github.com/Frozenball/pytest-sugar
|
pytest-sugar==0.9.4 # https://github.com/Frozenball/pytest-sugar
|
||||||
{%- if cookiecutter.use_drf == "y" %}
|
{%- if cookiecutter.use_drf == "y" %}
|
||||||
djangorestframework-stubs==1.4.0 # https://github.com/typeddjango/djangorestframework-stubs
|
djangorestframework-stubs==1.4.0 # https://github.com/typeddjango/djangorestframework-stubs
|
||||||
|
|
Loading…
Reference in New Issue
Block a user