Fix small bug in templates and tweak settings
This commit is contained in:
		| @ -5,7 +5,7 @@ from leaflet.admin import LeafletGeoAdmin | ||||
| from .models import CaseStudy | ||||
|  | ||||
|  | ||||
| class CaseStudyAdmin(ModerationAdmin, LeafletGeoAdmin): | ||||
| class CaseStudyAdmin(LeafletGeoAdmin): | ||||
|     pass | ||||
|  | ||||
|  | ||||
|  | ||||
| @ -32,8 +32,8 @@ | ||||
| 							{% endif %} | ||||
| 							<span class="badge badge-pill bg-info">{{case_study.country.name}}</span> | ||||
|   						</br> | ||||
|      					<small class="text-muted">Created {{case_study.date_created|naturaltime}} by <i>{{case_study.author.}}</i></small> | ||||
| 					    </div> | ||||
|      					<small class="text-muted">Created {{case_study.date_created|naturaltime}} by <i>{{case_study.author}}</i></small> | ||||
| 					  </div> | ||||
| 						<a class="btn btn-primary btn-lg float-right" href="#" role="button">Get Involved</a> | ||||
| 					</div> | ||||
| 				</div> | ||||
| @ -114,4 +114,4 @@ | ||||
| 			</div> | ||||
| 		</footer> | ||||
| {% endblock %} | ||||
| </html> | ||||
| </html> | ||||
|  | ||||
| @ -20,8 +20,8 @@ services: | ||||
|       - /containers/map/static:/app/static | ||||
|       - /containers/map/gunicorn.sock:/app/gunicorn.sock | ||||
|     env_file: | ||||
|       - ./local.env | ||||
|     command: /bin/sh -c "python3 manage.py migrate && DEBUG=1 python3 manage.py collectstatic --noinput && gunicorn --bind 0.0.0.0:8000 ojusomap.wsgi" | ||||
|       - ./environment | ||||
|     command: /bin/sh -c "DEBUG=1 python3 manage.py collectstatic --noinput && python3 manage.py compilemessages && python3 manage.py migrate && gunicorn --bind 0.0.0.0:8000 ojusomap.wsgi" | ||||
|    | ||||
|   db: | ||||
|     restart: always | ||||
| @ -78,18 +78,7 @@ services: | ||||
|       - /containers/jenkins:/var/jenkins_home | ||||
|       - /var/run/docker.sock:/var/run/docker.sock | ||||
|  | ||||
|   static: | ||||
|     image: nginx:alpine | ||||
|     restart: always | ||||
|     labels: | ||||
|       - "traefik.backend=static" | ||||
|       - "traefik.frontend.rule=Host:map.ojuso.org;PathPrefixStrip:/static/" | ||||
|       - "traefik.frontend.priority=10" | ||||
|     networks: | ||||
|       - web | ||||
|     volumes: | ||||
|       - /containers/map/static:/usr/share/nginx/html:ro | ||||
|  | ||||
|    | ||||
|   weblate_static: | ||||
|     image: nginx:alpine | ||||
|     restart: always | ||||
|  | ||||
| @ -4,6 +4,7 @@ ALLOWED_HOSTS=map.ojuso.org | ||||
| DATABASE_HOST=db | ||||
| DATABASE_NAME=postgres | ||||
| DATABASE_PASSWORD=${DATABASE_PASSWORD} | ||||
| DEFAULT_FROM_EMAIL=admin@ojuso.org | ||||
| EMAIL_HOST=mail.gandi.net | ||||
| EMAIL_HOST_USER=admin@ojuso.org | ||||
| EMAIL_HOST_PASSWORD=${SMTP_PASSWORD} | ||||
|  | ||||
| @ -8,9 +8,9 @@ https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/ | ||||
| """ | ||||
|  | ||||
| import os | ||||
|  | ||||
| from raven.contrib.django.raven_compat.middleware.wsgi import Sentry | ||||
| from django.core.wsgi import get_wsgi_application | ||||
|  | ||||
| os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ojusomap.settings") | ||||
|  | ||||
| application = get_wsgi_application() | ||||
| application = Sentry(get_wsgi_application()) | ||||
|  | ||||
		Reference in New Issue
	
	Block a user