Monday, July 2, 2012

Re: Difficulties deploying Satchmo store

Forgive me; I had already used search engine. The top (albeit 1.1) entry for "django wsgi tutorial", which did not reference later versions, was https://docs.djangoproject.com/en/1.1/howto/deployment/modwsgi/

My httpd.conf served up nothing but server errors (for this or any other site) when I had, uncommented,

#<VirtualHost *:80>
    #ServerName steampunk.stornge.com
    #ServerAdmin cjshayward@pobox.com

#<Directory /home/jonathan/store>
#<Files wsgi.py>
#Order deny,allow
#allow from all
#</Files>
#</Directory>

#</VirtualHost>
#WSGIPythonPath /home/jonathan/store/
#WSGIScriptAlias / /home/jonathan/store/wsgi.py

My wsgi.py file, with the last two lines changed, is:

import os
import sys

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "store.settings")

# This application object is used by the development server
# as well as any WSGI server configured to use this file.
sys.path.append('/home/jonathan/store')
import django.core.handlers.wsgi
application = django.core.handlers.WSGIHandler()

And a few days of Googling later, I find deployment more difficult than any other part of building a Django site. Could you lmgtfy a query whose top results will work?

On Mon, Jul 2, 2012 at 11:39 AM, ionic drive <ionicdrive@gmail.com> wrote:
Dear Jonathan,

I answer on Django as there is nothing Satchmo specific in your message.
This link should help you on start up: http://lmgtfy.com/?q=mod_wsgi+django
A developer with your skills really should know to ask straight forward questions and to use search engines.

Please Jonathan, your Signature is double the size of your email...
This is really hard for us to read!

good luck
ionic


On Mon, 2012-07-02 at 07:53 -0500, Jonathan Hayward wrote:
I am trying to deploy a "Hello, world!" Satchmo store and have had difficulties under Apache with mod_wsgi, Gunicorn (fails immediately on attempted start), and mod_fcgi (I can start the daemon on 127.0.0.1 port 1234, but my attempt to get live web interaction didn't pan out.     Part of my problem is that I haven't found mod_fcgi examples. Could I have an example of a .fcgi file that says to connect to this port on this IP, with indicators of any additional information needed (like the project path or the deploy subdirectory.)     Jonathan Hayward, Author, Django JavaScript Integration: AJAX and jQuery   Toastmaster and Published Author (Excellent Written and Oral Communicator)   Ajax, CGI, CMS, CSS, Django, HTML, IA, JSON, JavaScript, LAMP, Linux, Perl, PHP, Python, SQL, UI, Unix, Usability, UX, XHTML, XML   With a good interest in the human side of computing and making software and websites a joy to use    

--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.



--
Christos Jonathan Hayward
Jonathan Hayward, an Orthodox Christian author.

Amazon  Author Bio  Email • Facebook • Google Plus Kindle • LinkedIn • Twitter • Web • What's New?

I invite you to visit my "theology, literature, and other creative works" site. See a random page!

--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment