Hi,
I read the mod_python documentation on the Django site but I'm getting
this error:
EnvironmentError: Could not import DJANGO_SETTINGS_MODULE
'accesshiphop.settings' (is it on sys.path?): No module named
accesshiphop.settings
Here's my httpd.conf:
<Location "/public_html/myproject/">
PythonPath "[r'c:/apache/public_html/myproject/']+sys.path"
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE myproject.settings
PythonDebug On
</Location>
Also, the Django site says "Also, if you've manually altered your
PYTHONPATH to put your Django project on it, you'll need to tell
mod_python:"
I don't recall adding my project to my PYTHONPATH. Should I have done
this? How do I do this?
Thanks. 5 3484 ba*****@gmail.com wrote: Hi,
I read the mod_python documentation on the Django site but I'm getting this error:
EnvironmentError: Could not import DJANGO_SETTINGS_MODULE 'accesshiphop.settings' (is it on sys.path?): No module named accesshiphop.settings
Here's my httpd.conf:
<Location "/public_html/myproject/"> PythonPath "[r'c:/apache/public_html/myproject/']+sys.path" SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE myproject.settings PythonDebug On </Location>
Also, the Django site says "Also, if you've manually altered your PYTHONPATH to put your Django project on it, you'll need to tell mod_python:"
......
in my setup the PythonPath statement puts the folder containing
myproject onto the PythonPath in your case that might be
PythonPath "[r'c:/apache/public_html']+sys.path"
also I place the SetEnv DJANGO_SETTINGS_MODULE .....
before specifying the PythonHandler, but I am unsure if that is required
(I guess it depends on exactly how apache sets up the location), but
it's what I would do in a batch file for example.
your suggestions worked. thanks. ba*****@gmail.com a écrit : Hi,
I read the mod_python documentation on the Django site but I'm getting this error:
EnvironmentError: Could not import DJANGO_SETTINGS_MODULE 'accesshiphop.settings' (is it on sys.path?): No module named accesshiphop.settings
Here's my httpd.conf:
(snip - already answered)
<OT>
BTW, there's a django mailing-list, and IIRC a mod_python mailing-list
too. When possible, post to the most specific(s) list(s).
</OT>
Bruno Desthuilliers wrote: ba*****@gmail.com a écrit : Hi,
I read the mod_python documentation on the Django site but I'm getting this error:
EnvironmentError: Could not import DJANGO_SETTINGS_MODULE 'accesshiphop.settings' (is it on sys.path?): No module named accesshiphop.settings
Here's my httpd.conf:
(snip - already answered)
<OT> BTW, there's a django mailing-list, and IIRC a mod_python mailing-list too. When possible, post to the most specific(s) list(s). </OT>
Hi,
There are also some wxpython, pyqt, ... mailing-list, iircc and you don't
seem to bother requesters with not being at the right place ;-)
Regards,
Laurent.
Laurent Rahuel wrote: Bruno Desthuilliers wrote:
ba*****@gmail.com a écrit :
Hi,
I read the mod_python documentation on the Django site but I'm getting this error:
EnvironmentError: Could not import DJANGO_SETTINGS_MODULE 'accesshiphop.settings' (is it on sys.path?): No module named accesshiphop.settings
Here's my httpd.conf:
(snip - already answered)
<OT> BTW, there's a django mailing-list, and IIRC a mod_python mailing-list too. When possible, post to the most specific(s) list(s). </OT>
Hi,
There are also some wxpython, pyqt, ... mailing-list, iircc and you don't seem to bother requesters with not being at the right place ;-)
Laurent,
I'm not here to bother anyone. The point here is that the OP's question
is more about django/mod_python conf than about Python itself, so I
*advise* him to post on one of these lists.
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'o****@xiludom.gro'.split('@')])" This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: wolf |
last post by:
i would like to briefly share my experiences with
installing mod_python on a w2000 box. i must say that i
believe the installation process to be unnecessarily
complicated by the simple fact that...
|
by: Robert J. Hansen |
last post by:
I'm not entirely certain comp.lang.python is the proper newsgroup for
mod_python questions, but "comp.lang.python.web" doesn't seem to exist,
so... my apologies in advance if this is considered...
|
by: Python_it |
last post by:
I'm going to work with mod_python.
I install mod_python 3.2.2b for python 2.4.
If i test my install with
mptest.py
see this link:...
|
by: Anthony L. |
last post by:
I am writing a web application that is comparable to a content
management system used in blogging. I really want to use Python after
having done some evaluation coding using Python 2.3.5 with...
|
by: eric.moritz |
last post by:
One of the most respected and award-winning newspaper Web teams in the
world has moved to Florida and is looking for an experienced
server-side Web developer.
NDN Productions -- the online and...
|
by: Ilias Lazaridis |
last post by:
I have implemented a simple schema evolution support for django, due to
a need for a personal project. Additionally, I've provided an Audit:
http://case.lazaridis.com/wiki/DjangoAudit
As a...
|
by: Ray |
last post by:
I just moved to another company that's mainly a Java/.NET shop. I was
happy to find out that there's a movement from the grassroot to try to
convince the boss to use a dynamic language for our...
|
by: Michael |
last post by:
Hey everyone,
Is it possible to automatically insert headers/footers using
mod_python?
I will be not be using PSP's, so I cannot use the PSP/include solution.
Furthermore, the header will be...
|
by: K |
last post by:
Hello everyone,
I understand that urllib and urllib2 serve as really simple page
request libraries. I was wondering if there is a library out there
that can get the HTTP requests for a given...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
| |