Thanks I will give that a shot. Solid advice on the build version, my
machine is 3.2 and django is up to 2.7. I was wondering how to force a
script to run at 2.7 because I was worried about the version clash.

thanks a lot.

--jerry

On Sun, Apr 22, 2012 at 2:01 PM, Roberto De Ioris <robe...@unbit.it> wrote:

>
> > Hi, I am attempting to get nginx and uwsgi running on my local box, I
> > followed any number of tutorials and this one had the most complete
> > information.
> > http://gekicstart.ca/tech-posts/nginxuwsgidjango-stack/
> >
> > It is written for Debian\Ubuntu so I had to transpose a bit. I got
> through
> > most of it and I got to the section on creating the daemon for uwsgi that
> > loads a specific project. It creates a /etc/init/projectX.conf file that
> > it
> > loads the uwsgi specific information from. I didn't know enough to create
> > a
> > daemon in arch so I opted for running the command by cli.
> >
> > /usr/bin/uwsgi socket /root/Workspace/Eclipse/sockets/projectX.sock
> > --chmod-socket --module wsgi_app --pythonpath
> > /root/Workspace/Eclipse/projectX/uwsgi -p 1
> >
> > I also extended the relative paths to absolute from the example code, so
> > far so good. but when it loads the below file.
> >
> > when I run this it craps on the django import
> >
> > #!/usr/bin/python2.7
> > import sys
> > import os
> > import django.core.handlers.wsgi
> > sys.path.append("/Eclipse/")
> > os.environ['DJANGO_SETTINGS_MODULE'] = 'projectX.settings'
> > application = django.core.handlers.wsgi.WSGIHandler()
> >
> >
>
> I suggest you to follow official docs/quickstart
>
> http://projects.unbit.it/uwsgi/wiki/Quickstart
>
> Most of the blog-posts out-there refer to very particular configs that
> could
> make mess in your mind.
>
> By the way, it looks like you have built uWSGI for a different python
> version.
>
> From its source directory do
>
> make clean
> python2.7 uwsgiconfig.py --build
>
> to be sure the correct python version is used (the first command is used
> for cleaning files from the previous build)
>
> When uWSGi starts it print a good amount of log-lines, try to always read
> (or report) them to fastly get help.
>
>
> --
> Roberto De Ioris
> http://unbit.it
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 

Gerald Klein DBA****

contac...@geraldklein.com

www.geraldklein.com <http://geraldklein.com/>****

j...@zognet.com****

708-599-0352****


Linux registered user #548580

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

Reply via email to