I’ve created an app just for my own use. I developed on my Windows machine and tested with the dblite database just fine. I have a Linux server I want to run this on with MySQL. I updated the db to MySql running on the server and pointed to that. All worked fine. I then set up my Django framework on the server. After fighting with getting the python working (I’m running OpenSuse), I was able to use runserver to validate the code works. All is good there. Now working to get the Apache server correct. Ugh. I get an error ModuleNotFoundError: No module named ‘budget.urls’. Budget is my app. I’ve tried all kinds of things. I had set up a different project on AWS just fine and replicated my configuration from there (other than that being Ubuntu so the http config was in a different file) I’m sure it is just something stupid I cannot see so but looking for insight. I hope the following snippets help:
settings.py:
INSTALLED_APPS = [
'budget',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
]
urls.py (from project folder):
from django.contrib import admin
from django.urls import path
from django.urls import re_path
from django.urls import include
urlpatterns = [
re_path('budget/', include('budget.urls')),
re_path('admin/', admin.site.urls),
]
httpd.conf:
WSGIDaemonProcess budget python-home=/home/mervine/budget-env python-path=/home/mervine/budget
WSGIProcessGroup budget
WSGIScriptAlias / /home/mervine/merfinance/MerFinance/wsgi.py
<Directory /home/mervine/merfinance/MerFinance>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
Thanks in advance.
(I originally used path in the urls file and changed to re_path based on some research; no difference)