Skip to content
Snippets Groups Projects
Unverified Commit 3a0a3743 authored by Florimond Manca's avatar Florimond Manca Committed by GitHub
Browse files

Update dependencies (#9)

Pin DRF to 3.8 and Django to 2.2
parent 5d602df0
No related branches found
No related tags found
No related merge requests found
...@@ -19,6 +19,9 @@ __pycache__/ ...@@ -19,6 +19,9 @@ __pycache__/
*.sqlite3 *.sqlite3
*.rdb *.rdb
# Type checking
.mypy_cache
# private # private
.env .env
......
...@@ -20,7 +20,7 @@ Bienvenue ! Ce dépôt est le lieu de développement du backend du site internet ...@@ -20,7 +20,7 @@ Bienvenue ! Ce dépôt est le lieu de développement du backend du site internet
Si vous venez d'arriver, vous trouverez ci-dessous les ressources pour bien démarrer. :+1: Si vous venez d'arriver, vous trouverez ci-dessous les ressources pour bien démarrer. :+1:
*Happy coding* ! _Happy coding_ !
## Table des matières ## Table des matières
...@@ -65,13 +65,14 @@ $ source env/bin/activate ...@@ -65,13 +65,14 @@ $ source env/bin/activate
$ pip install -r requirements.txt $ pip install -r requirements.txt
``` ```
- Configurez la base de données en exécutant les migrations (rappelez-vous : *le serveur PostgreSQL doit être actif*) : - Configurez la base de données en exécutant les migrations (rappelez-vous : _le serveur PostgreSQL doit être actif_) :
```bash ```bash
$ python manage.py migrate $ python manage.py migrate
``` ```
Il ne vous reste plus qu'à lancer le serveur de développement : Il ne vous reste plus qu'à lancer le serveur de développement :
```bash ```bash
$ python manage.py runserver $ python manage.py runserver
``` ```
...@@ -157,6 +158,7 @@ Le backend utilise le plan gratuit de [SendGrid](https://sendgrid.com) (jusqu'à ...@@ -157,6 +158,7 @@ Le backend utilise le plan gratuit de [SendGrid](https://sendgrid.com) (jusqu'à
La documentation de cette application est consultable ici : [mails/README.md](mails/README.md). La documentation de cette application est consultable ici : [mails/README.md](mails/README.md).
> En développement, utilisez la configuration `dev_sendgrid` pour [activer le mode bac à sable](https://github.com/sklarsa/django-sendgrid-v5#other-settings). > En développement, utilisez la configuration `dev_sendgrid` pour [activer le mode bac à sable](https://github.com/sklarsa/django-sendgrid-v5#other-settings).
>
> ``` > ```
> $ python manage.py sendnotification mails.example.Today --settings=oser_backend.settings.dev_sendgrid > $ python manage.py sendnotification mails.example.Today --settings=oser_backend.settings.dev_sendgrid
> ``` > ```
......
...@@ -172,7 +172,7 @@ MARKDOWNX_MARKDOWN_EXTENSION_CONFIGS = { ...@@ -172,7 +172,7 @@ MARKDOWNX_MARKDOWN_EXTENSION_CONFIGS = {
DATABASES = { DATABASES = {
'default': dj_database_url.config( 'default': dj_database_url.config(
# Provide a default for dev environment # Provide a default for dev environment
default='postgres://postgres:postgres@localhost:5432/oser_backend_db'), default='postgres://postgres:postgres@127.0.0.1:5432/oser_backend_db'),
} }
......
Django>2.0 # Core packages
djangorestframework>=3.8 django==2.2
factory-boy djangorestframework==3.8
coreapi-cli
django-cors-headers # Admin enhancements
Pillow django-admin-sortable2 # Sorting items in the admin panel
django-markdownx
dry_rest_permissions
django-guardian
django-admin-sortable2
pymdown-extensions
psycopg2
dj-database-url
django-heroku
gunicorn
django-storages
boto3
whitenoise
django-countries django-countries
django-guardian # Permissions
# Email via SendGrid
django-sendgrid-v5 django-sendgrid-v5
django-filter
# Storage of files in AWS S3
django-storages
boto3
# PostgreSQL integration
dj-database-url
psycopg2
# Django REST Framework extensions
coreapi-cli # Required for automatic API docs
django-cors-headers # CORS (security headers sent by browsers)
django-filter # Filtering helpers for API endpoints
dry_rest_permissions
# Markdown rendering
django-markdownx
pymdown-extensions
Pillow
# Testing
factory-boy
# Deployment
django-heroku # Heroku integration
whitenoise # Static files serving
gunicorn # Web server
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment