Django Site Stopped Working After SSL Certificate Renewal: "No Patterns in URLconf"
I have a Django site that was deployed and functioning properly. However, after the SSL certificate expired, I tried to set up a free certificate. Since then, my site no longer works on the server, but it continues to run fine in the local environment.
When running the server, I encounter the following error:
django.core.exceptions.ImproperlyConfigured: The included URLconf '<module 'homepage.urls' from '/home/omar/Dizeta/homepage/urls.py'>' does not appear to have any patterns in it. If you see the 'urlpatterns' variable with valid patterns in the file then the issue is probably caused by a circular import.
here's the code urlpatterns in urls.py for more informations :
from django.urls import path
from • import views
#if settings. DEBUG:
urlpatterns=[
path('' ,views.homepage, name-'homepage'),
path( ' about.php' ,views.about, name= 'about.php*),
#path( 'blog_single' ,views.blog_single, name='blog_single'),
path(' cataloghi' ,views cataloghi, name-'cataloghi'), path( 'servizi-php', views servizi, name-'servizi'), path( 'prodotti' ,views-prodotti, name='prodotti'),
path(' antincendio-php', views-antincendio, name-'antincendio'), path( 'pompieristica' ,views-pompieristica, name-'pompieristica'),
path( 'home-php', views tornahome, name-'tornahome*),
path ('pagecataloghi' ,views pagecataloghi, name= 'pagecataloghi'),
path(' segnaletica-php'
,views- segnaletica, name='segnaletica'),
path( 'antinfortunistica.php" ,views.Calzature_e_abbigliamento,name=Calzature_e_
path('Pronto _soccorso', views.Pronto_soccorso, name-'Pronto_soccorso*),
path( 'principalehomepage'
, views -principalehomepage, name='principalehomepage'),
path( 'Porte_tagliafuoco' ,views.Porte_tagliafuoco, name= 'Porte_ tagliafuoco"), path( 'Dispositivi di_protezione_individuale', views.Dispositivi_di protezione_inc path( 'board2/< int: board2_id>/',views.board2, name= 'board2'), ]
anyone know what's wrong ?