Skip to content

Commit

Permalink
Fix styles for app list, add whitenoise
Browse files Browse the repository at this point in the history
  • Loading branch information
MaistrenkoAnton committed Oct 31, 2020
1 parent d453c1e commit a8ea147
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 7 deletions.
13 changes: 8 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,19 @@ down:
docker-compose -f docker-compose.yml down

migrations:
docker exec -it nect_world_app bash -c './manage.py makemigrations'
docker exec -it material_app sh -c './manage.py makemigrations'

static:
docker exec -it material_app sh -c './manage.py collectstatic'

migrate:
docker exec -it nect_world_app bash -c './manage.py migrate'
docker exec -it material_app sh -c './manage.py migrate'

test:
docker exec -it nect_world_app bash -c './manage.py test'
docker exec -it material_app sh -c './manage.py test'

coverage:
docker exec -it nect_world_app bash -c 'coverage run --source='.' manage.py test'
docker exec -it material_app sh -c 'coverage run --source='.' manage.py test'

report:
docker exec -it nect_world_app bash -c 'coverage report'
docker exec -it material_app sh -c 'coverage report'
1 change: 1 addition & 0 deletions app/demo/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@

MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'whitenoise.middleware.WhiteNoiseMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.common.CommonMiddleware',
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ version: "3"

services:
app:
container_name: material_app
build:
context: .
ports:
Expand Down
2 changes: 1 addition & 1 deletion libs/sass/base_site-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ i {

.collapsible-body span.badge,
.app-list .app .card .app-item i,
.card .card-content .card-title {
.card .card-content {
color: var(--main-bg-color);
border-color: var(--main-bg-color);
.card-app-name {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ mock==3.0.5
filefield-cache==0.0.5
django-modeltranslation==0.15.1
twine==3.2.0
whitenoise==5.2.0

0 comments on commit a8ea147

Please sign in to comment.