Sunday, April 29, 2012

Re: [help] Server Config: django + uwsgi + nginx

> i followed the django-http+uwsgi quick start and ended up with an error.
> ImportError: no module named django.core.handlers.wsgi \n unable to load
> app ...
> here's the error log: dpaste.org/BM5BW

Are you sure you are not using a >=1.4 django version or a virtualenv ?

If you are uging a virtualenv, add

virtualenv = <path>

to the uWSGI config file

>
> On Sunday, April 29, 2012 11:31:43 AM UTC-7, Roberto De Ioris wrote:
>>
>>
>> > I have this file that was created for me by one of the users in
>> django's
>> > irc channel. I edited to have the right information inserted but I"m
>> not
>> > sure what I'm doing wrong to not make it work. I've spent some time
>> trying
>> > to understand each line by searching the web. There's still a thing or
>> two
>> > that's missing from the puzzle. Maybe it's the server config that has
>> a
>> > flaw or the way I went about it. I haven't done a fresh install of
>> uwsgi
>> > and nginx yet. However, please take a look to see if there's an error
>> or
>> > solution that could work. Thanks.
>> >
>> > Link to code: http://www.dpaste.org/wWVd3/
>> >
>>
>> I suggest you to not start with such a complex scenario.
>>
>> I would go step-by-step with a very simple setup involving only uWSGI:
>>
>> http://projects.unbit.it/uwsgi/wiki/Quickstart
>>
>> Then, change the http protocol to the uwsgi one (simply replace http =
>> with socket = ) and put it behind a simple nginx config (like the one
>> you
>> will find following the uWSGI quickstart).
>>
>> Then move to the 'upstart' part, adding the script to the /etc/init
>> directory.
>>
>> Finally start playing with caching (it can be the most challenging part)
>>
>> --
>> Roberto De Ioris
>> http://unbit.it
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/73nF9MjDBvYJ.
> 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.
>
>


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

No comments:

Post a Comment