There appears to be a number of potential solutions to this problem but nothing seems to work for me.
Running python manage.py runserver
is fine but I get t
Try:
export PYTHONPATH=/path/to/folder/with/manage.py:$PYTHONPATH
It seems like it is a path problem. the path from where you call manage.py
is usually added to PYTHONPATH, if you call django-admin.py it is not.
Your application therefore does not find the ram
module. You need to add the folder where your manage.py
resides to PYTHONPATH
EDIT
django.core.exceptions.ImproperlyConfigured: Requested setting DEBUG, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
Means you have to tell django, which settings. So enter the following line
export DJANGO_SETTINGS_MODULE='ram.settings'
or start django-admin the following way
django-admin.py runserver --settings='ram.settings'
(With the changed pythonpath, of course)