From bed9771e0f52fc7299a7bea0d848dfbddf647c0e Mon Sep 17 00:00:00 2001 From: Qwann Date: Thu, 20 Jul 2017 15:18:29 +0200 Subject: [PATCH 1/3] venv works fine --- evenementiel/settings/devlocal.py | 23 +++++++++++++++++++++++ manage.py | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 evenementiel/settings/devlocal.py diff --git a/evenementiel/settings/devlocal.py b/evenementiel/settings/devlocal.py new file mode 100644 index 0000000..e420dda --- /dev/null +++ b/evenementiel/settings/devlocal.py @@ -0,0 +1,23 @@ +""" +Django development settings for GestionÉvénementiel +The settings that are not listed here are imported from .common +""" + +import os +from .dev import * # NOQA + + +# SQLite +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), + } +} + +CHANNEL_LAYERS = { + "default": { + "BACKEND": "asgiref.inmemory.ChannelLayer", + "ROUTING": "evenementiel.routing.channel_routing", + }, +} diff --git a/manage.py b/manage.py index 035cb32..22640b3 100755 --- a/manage.py +++ b/manage.py @@ -3,7 +3,7 @@ import os import sys if __name__ == "__main__": - os.environ.setdefault("DJANGO_SETTINGS_MODULE", "evenementiel.settings") + os.environ.setdefault("DJANGO_SETTINGS_MODULE", "evenementiel.settings.devlocal") from django.core.management import execute_from_command_line From c55996d7fc39c9448f2dea87f5098edf23f3d032 Mon Sep 17 00:00:00 2001 From: Qwann Date: Thu, 20 Jul 2017 15:21:07 +0200 Subject: [PATCH 2/3] gitignore improved --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index c067e72..3f57886 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,5 @@ __pycache__ venv evenementiel/settings.py .*.swp +*.pyc +*.sqlite From cd6348b26f30c8eac4102e25daff4a77695bb4cf Mon Sep 17 00:00:00 2001 From: Qwann Date: Thu, 20 Jul 2017 15:22:42 +0200 Subject: [PATCH 3/3] now Aufinal should be satistied --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 3f57886..02192f9 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,4 @@ venv evenementiel/settings.py .*.swp *.pyc -*.sqlite +*.sqlite3