Skip to content
Advertisement

Tag: django-settings

NoReverseMatch at /login/ Reverse for ” not found. ” is not a valid view function or pattern nam

I don’t know why this problem is occuring. The login page is being rendered fine. But when I am clicking the Log In button after filling out the forms, I am getting this error. Can anyone help me solve this? My settings.py: My urls.py: My login.html file: Answer You’ve specified LOGIN_REDIRECT_URL = “”. The documentation for this setting says: The

Django: issue with template path for tenant

I have an app where depending on its category, a tenant is either directed to the app (and templates) at /dashboard/templates/dashboard or /dashboard2/templates/dashboard2. somehow, for dashboard2, the app is not found by Django and it tries to find those templates under dashboard. here is a dashboard2/views.py and the error: and the traceback: when try specifying /dashboard2/Supplier2.html I still get the

“django.core.exceptions.AppRegistryNotReady: Apps aren’t loaded yet” when trying to load data into my model

I am developing an app in Django. I want to load data inside my model, that is glossary_entry, but the data is stored inside an xlsx file, that is dati_prova.xlsx. In order to achieve this, I have developed the following script: But when I run it from Anaconda prompt, I get File “load_glossary.py”, line 7, in module … raise AppRegistryNotReady(“Apps

Advertisement