Compare commits
No commits in common. "d6b82f1556137faa3f010b72db9aff9c66296700" and "858cfe1d3c27fb0eb9d08feeb335deaadc2cd824" have entirely different histories.
d6b82f1556
...
858cfe1d3c
@ -28,9 +28,9 @@ class HomeView(IsAuthenticatedMixin, View):
|
|||||||
def get(self, request, *args, **kwargs):
|
def get(self, request, *args, **kwargs):
|
||||||
place_list = Place.objects.all().order_by('-submitted_when')[:10]
|
place_list = Place.objects.all().order_by('-submitted_when')[:10]
|
||||||
context = {
|
context = {
|
||||||
'place_list': place_list,
|
|
||||||
'mapping_config': {
|
|
||||||
'all_points': place_list,
|
'all_points': place_list,
|
||||||
|
'mapping_config': {
|
||||||
|
'point_list': place_list,
|
||||||
'map_center': Place.average_latlon(place_list)
|
'map_center': Place.average_latlon(place_list)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
# Config options for coverage
|
|
||||||
# Docs: https://coverage.readthedocs.io/en/latest/config.html
|
|
||||||
|
|
||||||
[coverage:run]
|
[coverage:run]
|
||||||
source = .
|
source = .
|
||||||
|
|
||||||
|
4684
django_lostplaces/testdata/testdata.json
vendored
4684
django_lostplaces/testdata/testdata.json
vendored
File diff suppressed because it is too large
Load Diff
21
django_lostplaces/testdata/testdata.md
vendored
21
django_lostplaces/testdata/testdata.md
vendored
@ -1,21 +0,0 @@
|
|||||||
# testdata
|
|
||||||
|
|
||||||
## Database content
|
|
||||||
testdata is provided in this repository / directory in testdata.json. It has been
|
|
||||||
dumped using:
|
|
||||||
|
|
||||||
```
|
|
||||||
manage.py dumpdata --all --exclude=auth --indent 4 --o testdata/testdata.json
|
|
||||||
```
|
|
||||||
|
|
||||||
You can import it using
|
|
||||||
|
|
||||||
```
|
|
||||||
manage.py loaddata testdata.json
|
|
||||||
```
|
|
||||||
|
|
||||||
## Images
|
|
||||||
Although I created pretty small testimages, I think they are still too clunky to
|
|
||||||
mindlessly dump it into the code repository, so I provide an
|
|
||||||
[archive](https://www.commander1024.de/lostplaces-testdata.zip) containing
|
|
||||||
a folder structure of images to be extracted into the uploads/ folder.
|
|
Loading…
Reference in New Issue
Block a user