InviteBox / django-live-profiler

A database access profiler for Django-based applications that can be ran in production
193 stars 44 forks source link

ImportError - No module named defaults #23

Open bhosleabhimanyu opened 10 years ago

bhosleabhimanyu commented 10 years ago

Django : 1.6.6 not able to get the profiler to work.

from django.conf.urls.defaults import * ... urlpatterns = patterns( 'profiler.views', url(r'^$', 'global_stats', name='profiler_global_stats'), url(r'^by_view/$', 'stats_by_view', name='profiler_stats_by_view'), url(r'^code/$', 'python_stats', name='profiler_python_stats'),

pirate commented 5 years ago

Fixed here: https://github.com/InviteBox/django-live-profiler/pull/28

Just needed to be updated to use the new Django urls.py system.