Skip to content

Commit

Permalink
Version 0.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
TrangPham committed Apr 13, 2022
1 parent 340726b commit c76c78d
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
django-admin-confirm-3.8.0
django-admin-confirm-3.9.9
10 changes: 4 additions & 6 deletions docs/development_process.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,16 @@
**Local:**
_You can skip this and just use docker if you want_

_NOTE: as of 2022-04-12 I don't know if 3.8.0 works anymore if you're on newer versions of macOS. See: https://github.com/pyenv/pyenv/issues/2143#issuecomment-1072032647 You can try using another version of python locally or use docker_

Install pyenv
pyenv install 3.8.0
pyenv install 3.9.9

Create **virtualenv** via pyenv

```
pyenv virtualenv 3.8.0 django-admin-confirm-3.8.0
pyenv virtualenv 3.9.9 django-admin-confirm-3.9.9
```

Now your terminal should have `(django-admin-confirm-3.8.0)` prefix, because `.python-version` should have auto switch your virtual env
Now your terminal should have `(django-admin-confirm-3.9.9)` prefix, because `.python-version` should have auto switch your virtual env

Install requirements

Expand Down Expand Up @@ -70,7 +68,7 @@ Localstack is used for integration testing and also in the test project.

To check if localstack is running correctly, go to `http://localhost:4566`
To check if the bucket has been set up correctly, go to `http://localhost:4566/mybucket`
To check if the static files have been set up correctly, go to `http://localhost:4566/mybucket/`
To check if the static files have been set up correctly, go to `http://localhost:4566/mybucket/static/admin/css/base.css`

**Docker:**

Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ readme-renderer~=28.0
twine~=3.3.0
coveralls~=3.0.0
Pillow~=8.1.0 # For ImageField
wheel~=0.37.1

### SELENIUM ###
# Known issue: https://github.com/SeleniumHQ/selenium/issues/8762
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setup(
name="django-admin-confirm",
version="0.2.4",
version="0.2.5",
packages=["admin_confirm"],
description=("Adds confirmation to Django Admin changes, additions and actions"),
long_description_content_type="text/markdown",
Expand Down
2 changes: 2 additions & 0 deletions tests/test_project/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,3 +157,5 @@
MEDIA_ROOT = os.path.join(BASE_DIR, "mediafiles")

STATICFILES_DIRS = (os.path.join(BASE_DIR, "static"),)

DEFAULT_AUTO_FIELD = "django.db.models.AutoField"
4 changes: 3 additions & 1 deletion tests/test_project/settings/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@
WSGI_APPLICATION = "test_project.wsgi.application"
ROOT_URLCONF = "test_project.urls"

USE_S3 = "True"
if USE_S3:
STATICFILES_STORAGE = "storage_backends.StaticStorage"
DEFAULT_FILE_STORAGE = "storage_backends.PublicMediaStorage"
2 changes: 0 additions & 2 deletions tests/test_project/settings/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@
INSTALLED_APPS = INSTALLED_APPS + ["tests.market"]
WSGI_APPLICATION = "tests.test_project.wsgi.application"
ROOT_URLCONF = "tests.test_project.urls"

USE_S3 = "True"

0 comments on commit c76c78d

Please sign in to comment.