Skip to content

Commit

Permalink
Another try
Browse files Browse the repository at this point in the history
  • Loading branch information
dirtycoder committed Jul 22, 2017
1 parent 7816ccf commit c791ce4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dev-requirements.txt
@@ -1,5 +1,6 @@
-r requirements.txt

selenium==3.0.2
selenium==3.4.3
django-debug-toolbar==1.8
django-test-without-migrations==0.6
model_mommy==1.3.0
4 changes: 3 additions & 1 deletion pets/pets/settings/dev.py
Expand Up @@ -2,7 +2,9 @@

from .prod import *

INSTALLED_APPS += ('test_without_migrations',)
INSTALLED_APPS += ('debug_toolbar', 'test_without_migrations')

MIDDLEWARE_CLASSES = ('debug_toolbar.middleware.DebugToolbarMiddleware',) + MIDDLEWARE_CLASSES

TEMPLATES[0]['OPTIONS']['loaders'] = PROJECT_TEMPLATE_LOADERS

Expand Down
2 changes: 2 additions & 0 deletions pets/pets/urls.py
Expand Up @@ -13,4 +13,6 @@
]

if settings.DEBUG:
import debug_toolbar
urlpatterns += [url(r'^__debug__/', include(debug_toolbar.urls))]
urlpatterns += static.static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

0 comments on commit c791ce4

Please sign in to comment.