Are you following http://www.djangoproject.com/documentation/modpython/?

On 04/04/06, Luis P. Mendes <[EMAIL PROTECTED]> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> I'm building my first dynamic web site using Django.  mod_python is
> installed and runs well.  I tried the example supplied at its docs.
>
> I thought of having a development site under my /home account and it is
> running fine with the django pre-built runserver command.
>
> But, I'd like to copy the project, from time to time to under apache's
> htdocs/ for production.  I'm having some problems with it:
> """
> EnvironmentError: Could not import DJANGO_SETTINGS_MODULE
> 'djangoSite.settings.main' (is it on sys.path?):
> """
>
> Even when I edit httpd.conf <Location> to point to the devel directories
> it doesn't work as should: I get a list of the files of that directory
> and not the view I created.
>
> So, my questions are:
> 1- Do you usually use different production and development directories?
> 2- If so, is it possible to post the httpd.conf configuration of the
> django and perhaps mod_python definitions?
> 3- Do I need to change any values in the 'myproject' settings, or to run
> any initialization command to put it to work under apache?
>
> Luis
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.1 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
>
> iD8DBQFEMmPzHn4UHCY8rB8RAldgAJ9miU9DFZ+/VNHAy/h7RpK0SzemfgCfcppQ
> 1SX6zecmWVR1PFcYPI8/Idg=
> =HVAu
> -----END PGP SIGNATURE-----
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to