Issues in urls when running Django in subdirectory or say suburl

That’s the old format for urls.py. The current is this: “””monero URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path(”, views.home, name=”home”) Class-based views 1. Add an import: from other_app.views import … Read more

ImportError: No module named django.core.handlers.wsgi in install django mod_wsgi config on apache

I solved the problem by adding location of site-packages, where I have kept django subdirectory (/Library/python/2.7/site-packages) to WSGIDaemonProcess: WSGIDaemonProcess www.example.com processes=2 threads=15 display-name=%{GROUP} python-path=/Library/python/2.7/site-packages If you are using embedded server mode use in httpd.conf: WSGIPythonPath /Library/python/2.7/site-packages

Django memory usage going up with every request

I’m afraid I haven’t got any definite answers. Graham Dumpleton’s tips were most helpfull, but unfortunately he didn’t make an answer (just comments), so there is no way to accept his response. Although I still haven’t fully resolved the issue, here are some basic tips for other people having similar problems: Read Webfaction’s documentation: Reducing … Read more

Certbot Apache error “Name duplicates previous WSGI daemon definition.”

It turns out that if my Apache conf file 000-default.conf only declares <VirtualHost *:80>…</VirtualHost>, then Certbot duplicates it and creates a second Apache conf file called 000-default-le-ssl.conf to define <VirtualHost *:443>…</VirtualHost>. The Name duplicates previous WSGI daemon definition error appears because both Apache conf files have the same line defining WSGIDaemonProcess myprocess…. This appears to … Read more