Compare commits
2 Commits
858cfe1d3c
...
d6b82f1556
Author | SHA1 | Date | |
---|---|---|---|
d6b82f1556 | |||
3f642daf89 |
@ -28,9 +28,9 @@ class HomeView(IsAuthenticatedMixin, View):
|
||||
def get(self, request, *args, **kwargs):
|
||||
place_list = Place.objects.all().order_by('-submitted_when')[:10]
|
||||
context = {
|
||||
'all_points': place_list,
|
||||
'place_list': place_list,
|
||||
'mapping_config': {
|
||||
'point_list': place_list,
|
||||
'all_points': place_list,
|
||||
'map_center': Place.average_latlon(place_list)
|
||||
}
|
||||
}
|
||||
|
@ -1,3 +1,6 @@
|
||||
# Config options for coverage
|
||||
# Docs: https://coverage.readthedocs.io/en/latest/config.html
|
||||
|
||||
[coverage:run]
|
||||
source = .
|
||||
|
||||
|
4684
django_lostplaces/testdata/testdata.json
vendored
Normal file
4684
django_lostplaces/testdata/testdata.json
vendored
Normal file
File diff suppressed because it is too large
Load Diff
21
django_lostplaces/testdata/testdata.md
vendored
Normal file
21
django_lostplaces/testdata/testdata.md
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
# 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