Minor corrections.

This commit is contained in:
Marcus Scholz 2020-08-20 21:38:35 +02:00
parent 0b0a401486
commit e8c4faff8e
1 changed files with 5 additions and 2 deletions

View File

@ -9,9 +9,11 @@ Right now it depends on the following non-core Python 3 libraries. These can be
* [django](https://www.djangoproject.com/) django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
* [easy-thumbnails](https://github.com/SmileyChris/easy-thumbnails) A powerful, yet easy to implement thumbnailing application for Django 1.11+
* [image](https://github.com/francescortiz/image) Image cropping for djanbgo
* [image](https://github.com/francescortiz/image) Image cropping for django
* [django-widget-tweaks](https://github.com/jazzband/django-widget-tweaks) Tweak the form field rendering in templates, not in python-level form definitions.
## Development
### Setting up a (pipenv) virtual environment for development
After having obtained the repository contents (either via .zip download or git clone), you can easily setup a pipenv virtual environment. The repo provides a Pipfile for easy dependency management that does not mess with your system.
@ -20,6 +22,7 @@ After having obtained the repository contents (either via .zip download or git c
$ cd lostplaces-backend
$ pipenv install
$ pipenv shell
(lostplaces-backend) $ lostplaces/manage.py makemigrations
(lostplaces-backend) $ lostplaces/manage.py migrate
(lostplaces-backend) $ lostplaces/manage.py createsuperuser
(lostplaces-backend) $ lostplaces/manage.py runserver
@ -40,7 +43,7 @@ Visit: [admin](http://localhost:8000/admin) for administrative backend or
### Install dependencies
Python3, Django3, easy-thumbnails, image, django-widget-tweaks
```
pip install django easy-thumbnails image django-widget-tweaks
pip install --user django easy-thumbnails image django-widget-tweaks
```
Or, if you use pipenv
```