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

5
.gitignore vendored
View file

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

View file

@ -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):

View file

@ -16,3 +16,7 @@ DATABASES = {
INSTALLED_APPS += (
'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
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)),
)
]