Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed django uwsgi_admin without spooler

  • Loading branch information...
commit 153142b8b027a3698fae3cba04d74784a33690bc 1 parent 5562c0c
roberto@dexter authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 django/uwsgi_admin/views.py
View
7 django/uwsgi_admin/views.py
@@ -14,10 +14,11 @@ def index(request):
w['load'] = (100 * (w['running_time']/1000))/total_load
w['last_spawn_str'] = time.ctime(w['last_spawn'])
- spooler_jobs = uwsgi.spooler_jobs()
jobs = []
- for j in spooler_jobs:
- jobs.append({'file': j, 'env': uwsgi.parsefile(j)})
+ if 'spooler' in uwsgi.opt:
+ spooler_jobs = uwsgi.spooler_jobs()
+ for j in spooler_jobs:
+ jobs.append({'file': j, 'env': uwsgi.parsefile(j)})
return render_to_response('uwsgi.html', {'masterpid': uwsgi.masterpid(),
'started_on': time.ctime(uwsgi.started_on),
Please sign in to comment.
Something went wrong with that request. Please try again.