Skip to content

Instantly share code, notes, and snippets.

@AntelopeSalad
Created January 31, 2014 20:34
Show Gist options
  • Save AntelopeSalad/8742598 to your computer and use it in GitHub Desktop.
Save AntelopeSalad/8742598 to your computer and use it in GitHub Desktop.
Environment:
Request Method: GET
Request URL: http://192.168.1.7:8000/leads/
Django Version: 1.6.1
Python Version: 3.3.2
Installed Applications:
('django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.sites',
'south',
'pipeline',
'debug_toolbar',
'template_timings_panel',
'django_extensions',
'widget_tweaks',
'parsley',
'allauth',
'allauth.account',
'account_settings',
'leads')
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware')
Traceback:
File "/home/nick/.virtualenvs/django_myproject/local/lib/python3.3/dist-packages/django/core/handlers/base.py" in get_response
101. resolver_match = resolver.resolve(request.path_info)
File "/home/nick/.virtualenvs/django_myproject/local/lib/python3.3/dist-packages/django/core/urlresolvers.py" in resolve
318. for pattern in self.url_patterns:
File "/home/nick/.virtualenvs/django_myproject/local/lib/python3.3/dist-packages/django/core/urlresolvers.py" in url_patterns
346. patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "/home/nick/.virtualenvs/django_myproject/local/lib/python3.3/dist-packages/django/core/urlresolvers.py" in urlconf_module
341. self._urlconf_module = import_module(self.urlconf_name)
File "/usr/lib/python3.3/importlib/__init__.py" in import_module
85. raise TypeError("relative imports require the 'package' argument")
Exception Type: TypeError at /leads/
Exception Value: relative imports require the 'package' argument
$ ~/.virtualenvs/django_myproject/local/bin/uwsgi --http :8000 --ini myproject/uwsgi.ini
[uWSGI] getting INI configuration from myproject/uwsgi.ini
;uWSGI instance configuration
[uwsgi]
http = :8000
ini = myproject/uwsgi.ini
chdir = /home/nick/Development/Django/myproject
module = myproject.wsgi
socket = /tmp/myproject.sock
virtualenv = /home/nick/.virtualenvs/django_myproject
env = APP_PRODUCTION=1
show-config =
master =
;end of configuration
*** Starting uWSGI 2.0 (32bit) on [Fri Jan 31 15:29:00 2014] ***
compiled with version: 4.8.1 on 31 January 2014 14:51:03
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/.virtualenvs/django_myproject/local/bin/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: 1024
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, Oct 9 2013, 15:00:10) [GCC 4.8.1]
PEP 405 virtualenv detected: /home/nick/.virtualenvs/django_myproject
Set PythonHome to /home/nick/.virtualenvs/django_myproject
*** Python threads support is disabled. You can enable it with --enable-threads ***
Python main interpreter initialized at 0x89c65f8
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 127960 bytes (124 KB) for 1 cores
*** Operational MODE: single process ***
WSGI app 0 (mountpoint='') ready in 0 seconds on interpreter 0x89c65f8 pid: 11308 (default app)
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 11308)
spawned uWSGI worker 1 (pid: 11309, cores: 1)
spawned uWSGI http 1 (pid: 11310)
[pid: 11309|app: 0|req: 1/1] 192.168.1.2 () {38 vars in 712 bytes} [Fri Jan 31 20:29:07 2014] GET /leads/ => generated 58299 bytes in 681 msecs (HTTP/1.1 500) 2 headers in 92 bytes (2 switches on core 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment