Commits

Brodie Rao committed e8c97e4

Remove GEORDI_OUTPUT_DIR setting

  • Participants
  • Parent commits 50f59ab

Comments (0)

Files changed (2)

 a page–even anonymous users. With ``DEBUG = False``, only super users can
 profile pages.
 
-If you're running multiple front-end servers and need PDFs to be saved
-to a shared directory, set ``GEORDI_OUTPUT_DIR``. If it's not set, the
-temporary directory provided by the system is used.
-
 .. _Django: https://www.djangoproject.com/
 .. _middleware: https://docs.djangoproject.com/en/dev/topics/http/middleware/
 .. _Django settings: https://docs.djangoproject.com/en/dev/topics/settings/

File geordi/__init__.py

                          **self._headers)
         profiler.create_stats()
 
-        outputdir = getattr(settings, 'GEORDI_OUTPUT_DIR', None)
         with tempfile.NamedTemporaryFile(prefix='geordi-', suffix='.pstats',
-                                         dir=outputdir, delete=False) as stats:
+                                         delete=False) as stats:
             stats.write(marshal.dumps(profiler.stats))
             statsfn = stats.name