From a0df71fcc4298c8a878f73ffece2b547986d8be3 Mon Sep 17 00:00:00 2001 From: Evarin Date: Tue, 4 Apr 2017 21:18:58 +0200 Subject: [PATCH] Corrections --- .gitignore | 5 +++-- avisstage/models.py | 1 - experiENS/settings_dev.py | 4 ++++ experiENS/urls.py | 9 ++++----- 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index d73eec0..d82bbed 100644 --- a/.gitignore +++ b/.gitignore @@ -103,8 +103,9 @@ tpathtxt test.py # Migrations -monstage/migrations/ +migrations/ *.venv/ *~ \#* -.#* \ No newline at end of file +.#* +*.sqlite3 \ No newline at end of file diff --git a/avisstage/models.py b/avisstage/models.py index b930edb..436b9d5 100644 --- a/avisstage/models.py +++ b/avisstage/models.py @@ -149,7 +149,6 @@ class Stage(models.Model): # Avis lieux = models.ManyToManyField(Lieu, related_name="stages", through="AvisLieu") - avis_stage = models.OneToOneField("AvisStage", related_name="stage") @property def avis_lieux(self): diff --git a/experiENS/settings_dev.py b/experiENS/settings_dev.py index 47c19f9..3b47856 100644 --- a/experiENS/settings_dev.py +++ b/experiENS/settings_dev.py @@ -16,3 +16,7 @@ DATABASES = { INSTALLED_APPS += ( 'debug_toolbar', ) + +MIDDLEWARE_CLASSES += ( + 'debug_toolbar.middleware.DebugToolbarMiddleware', +) diff --git a/experiENS/urls.py b/experiENS/urls.py index 1e61a2a..26a87ff 100644 --- a/experiENS/urls.py +++ b/experiENS/urls.py @@ -1,12 +1,11 @@ -from django.conf.urls import patterns, include, url +from django.conf.urls import include, url from django.contrib import admin -urlpatterns = patterns( - '', +urlpatterns = [ # Examples: # url(r'^$', 'experiENS.views.home', name='home'), # url(r'^blog/', include('blog.urls')), - url(r'^djrichtextfield/', include('djrichtextfield.urls')) + url(r'^djrichtextfield/', include('djrichtextfield.urls')), url(r'^admin/', include(admin.site.urls)), -) +]