Skip to content
This repository has been archived by the owner on Oct 6, 2024. It is now read-only.

Commit

Permalink
add crispy_bootstrap3
Browse files Browse the repository at this point in the history
  • Loading branch information
sebgrebe committed Apr 1, 2024
1 parent 7b1dedb commit 669fa22
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 8 deletions.
12 changes: 6 additions & 6 deletions SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ Instructions for developers on how to build and run the project, how to run test

### Running after changes to ```packages.json```
```npm install```
You have to run this if new node dependencies have been added since you've last built the project.

### Running after changes to ```requirements.txt```
```docker-compose build --no-cache web```
You have to run this if new python dependencies have been added since you've last built the project in order to rebuild
the django backend.
You have to run this if new node dependencies have been added since you've last built the project.

### Running after adding new python package
```docker-compose run --rm web bash -c "pip-compile requirements.in > requirements.txt"```
You have to run this if you want to a new python package.

### Running after changes to ```requirements.txt```
```docker-compose build --no-cache web```
You have to run this if new python dependencies have been added since you've last built the project in order to rebuild
the django backend.

### Running after new migration files have been added
```docker-compose run --rm web bash -c "python manage.py migrate"```
You have to run this if new migration files have been added since you've last built the project.
Expand Down
5 changes: 5 additions & 0 deletions eahub/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ class DjangoEnv(Enum):
"sekizai",
"django_recaptcha",
"crispy_forms",
"crispy_bootstrap3",
"django_object_actions",
"django_cleanup.apps.CleanupConfig",
"django_extensions",
Expand Down Expand Up @@ -387,4 +388,8 @@ class DjangoEnv(Enum):
},
]

CRISPY_ALLOWED_TEMPLATE_PACKS = "bootstrap3"

CRISPY_TEMPLATE_PACK = "bootstrap3"


1 change: 1 addition & 0 deletions requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ django-autoslug
django-enumfield>=3.0
django-enumfields # a better version of django-enumfield
django-crispy-forms
crispy-bootstrap3
django-widget-tweaks # a better version of django-crispy-forms
django-allauth
django-authtools>=2.0.0
Expand Down
9 changes: 7 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ click==8.1.7
# via
# black
# pip-tools
crispy-bootstrap3==2024.1
# via -r requirements.in
cryptography==42.0.5
# via pyjwt
defusedxml==0.7.1
Expand All @@ -66,6 +68,7 @@ dj-database-url==2.1.0
django==4.2.11
# via
# algoliasearch-django
# crispy-bootstrap3
# dj-database-url
# django-adminutils
# django-allauth
Expand Down Expand Up @@ -109,7 +112,9 @@ django-classy-tags==4.1.0
django-cleanup==8.1.0
# via -r requirements.in
django-crispy-forms==2.1
# via -r requirements.in
# via
# -r requirements.in
# crispy-bootstrap3
django-enumfield==3.1
# via -r requirements.in
django-enumfields==2.1.1
Expand Down Expand Up @@ -273,7 +278,7 @@ pathspec==0.12.1
# via black
pep8-naming==0.13.3
# via -r requirements.in
pillow==10.2.0
pillow==10.3.0
# via -r requirements.in
pip-tools==7.4.1
# via -r requirements.in
Expand Down

0 comments on commit 669fa22

Please sign in to comment.