Corrections

This commit is contained in:
Evarin 2017-04-04 21:18:58 +02:00
parent 71eada8eed
commit a0df71fcc4
4 changed files with 11 additions and 8 deletions

3
.gitignore vendored
View file

@ -103,8 +103,9 @@ tpathtxt
test.py test.py
# Migrations # Migrations
monstage/migrations/ migrations/
*.venv/ *.venv/
*~ *~
\#* \#*
.#* .#*
*.sqlite3

View file

@ -149,7 +149,6 @@ class Stage(models.Model):
# Avis # Avis
lieux = models.ManyToManyField(Lieu, related_name="stages", lieux = models.ManyToManyField(Lieu, related_name="stages",
through="AvisLieu") through="AvisLieu")
avis_stage = models.OneToOneField("AvisStage", related_name="stage")
@property @property
def avis_lieux(self): def avis_lieux(self):

View file

@ -16,3 +16,7 @@ DATABASES = {
INSTALLED_APPS += ( INSTALLED_APPS += (
'debug_toolbar', 'debug_toolbar',
) )
MIDDLEWARE_CLASSES += (
'debug_toolbar.middleware.DebugToolbarMiddleware',
)

View file

@ -1,12 +1,11 @@
from django.conf.urls import patterns, include, url from django.conf.urls import include, url
from django.contrib import admin from django.contrib import admin
urlpatterns = patterns( urlpatterns = [
'',
# Examples: # Examples:
# url(r'^$', 'experiENS.views.home', name='home'), # url(r'^$', 'experiENS.views.home', name='home'),
# url(r'^blog/', include('blog.urls')), # 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)), url(r'^admin/', include(admin.site.urls)),
) ]