Open Pitoontakoonpol opened 5 months ago
Hello, How can I solve it?
setting.py `INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles',
'app_dashboard.apps.AppDashboardConfig', 'django_prometheus',
]`
`MIDDLEWARE = [ 'django_prometheus.middleware.PrometheusBeforeMiddleware',
'django_prometheus.middleware.PrometheusAfterMiddleware',
urls.py urlpatterns = [ path("admin/", admin.site.urls), path('', include('app_dashboard.urls')), path('gafana/', include('django_prometheus.urls')), ]
urlpatterns = [ path("admin/", admin.site.urls), path('', include('app_dashboard.urls')), path('gafana/', include('django_prometheus.urls')), ]
display: ModuleNotFoundError: No module named 'django_prometheus'
ModuleNotFoundError: No module named 'django_prometheus'
Are you using a virtual environment? Did you install django-prometheus from within the environment?
django-prometheus
Hello, How can I solve it?
setting.py `INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles',
]`
`MIDDLEWARE = [ 'django_prometheus.middleware.PrometheusBeforeMiddleware',
]`
urls.py
urlpatterns = [ path("admin/", admin.site.urls), path('', include('app_dashboard.urls')), path('gafana/', include('django_prometheus.urls')), ]
display:
ModuleNotFoundError: No module named 'django_prometheus'