Skip to content

Instantly share code, notes, and snippets.

@AntelopeSalad
Last active August 29, 2015 13:55
Show Gist options
  • Save AntelopeSalad/8737279 to your computer and use it in GitHub Desktop.
Save AntelopeSalad/8737279 to your computer and use it in GitHub Desktop.
(myproject) nick@devbox:~/Development/Django/myproject$ /home/nick/Downloads/uwsgi-2.0/uwsgi --http :8000 --ini myproject/uwgsi.ini
[uWSGI] getting INI configuration from myproject/uwgsi.ini
;uWSGI instance configuration
[uwsgi]
http = :8000
ini = myproject/uwgsi.ini
chdir = /home/nick/Development/Django/myproject/
module = myproject.wsgi
socket = /tmp/myproject.sock
virtualenv = /home/nick/.virtualenvs/myproject
env = APP_PRODUCTION=1
show-config =
master =
;end of configuration
*** Starting uWSGI 2.0 (32bit) on [Fri Jan 31 12:15:50 2014] ***
compiled with version: 4.8.1 on 31 January 2014 11:47:01
os: Linux-3.11.0-12-generic #19-Ubuntu SMP Wed Oct 9 16:12:00 UTC 2013
nodename: devbox
machine: i686
clock source: unix
detected number of CPU cores: 1
current working directory: /home/nick/Development/Django/myproject
detected binary path: /home/nick/Downloads/uwsgi-2.0/uwsgi
!!! no internal routing support, rebuild with pcre support !!!
your processes number limit is 7786
your memory page size is 4096 bytes
detected max file descriptor number: 4096
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
uWSGI http bound on :8000 fd 3
uwsgi socket 0 bound to UNIX address /tmp/myproject.sock fd 6
Python version: 3.3.2 (default, Jan 17 2014, 17:16:52) [GCC 4.8.1]
PEP 405 virtualenv detected: /home/nick/.virtualenvs/myproject
Set PythonHome to /home/nick/.virtualenvs/myproject
Traceback (most recent call last):
File "/usr/lib/python3.3/site.py", line 629, in <module>
main()
File "/usr/lib/python3.3/site.py", line 614, in main
known_paths = addusersitepackages(known_paths)
File "/usr/lib/python3.3/site.py", line 284, in addusersitepackages
user_site = getusersitepackages()
File "/usr/lib/python3.3/site.py", line 260, in getusersitepackages
user_base = getuserbase() # this will also set USER_BASE
File "/usr/lib/python3.3/site.py", line 250, in getuserbase
USER_BASE = get_config_var('userbase')
File "/usr/lib/python3.3/sysconfig.py", line 610, in get_config_var
return get_config_vars().get(name)
File "/usr/lib/python3.3/sysconfig.py", line 560, in get_config_vars
_init_posix(_CONFIG_VARS)
File "/usr/lib/python3.3/sysconfig.py", line 432, in _init_posix
from _sysconfigdata import build_time_vars
File "/usr/lib/python3.3/_sysconfigdata.py", line 6, in <module>
from _sysconfigdata_m import *
ImportError: No module named '_sysconfigdata_m'
[uwsgi]
chdir = /home/nick/Development/Django/myproject
module = myproject:wsgi
socket = /tmp/myproject.sock
virtualenv = /home/nick/.virtualenvs/myproject
env = APP_PRODUCTION=1
#processes = 4
#threads = 2
#harakiri = 60
#cpu-affinity = 1
#buffer-size = 8192
show-config
master
"""
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "myproject.settings")
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment