mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-15 08:02:54 +11:00
The Django project driving dpaste.org
219101d8ef
See ticket #85 for an example test case. This works around mptt slowness via providing the proper defaults settings, and using the mptt manager to track down the next tree_id to use. Note that it's inherintly racey in finding the next tree_id- this isn't a flaw of this code, it's a flaw of mptt. If you trace the _get_next_tree_id() functionality, you'll find that it assumes that between when that value is computed, and when the insertion happens, nothing else slipped in- this isn't a safe assumption, although the timing required to trigger the issue would be fairly tight. |
||
---|---|---|
.tx | ||
docs | ||
dpaste | ||
server | ||
.coveragerc | ||
.gitignore | ||
.travis.yml | ||
CHANGELOG | ||
LICENSE | ||
manage.py | ||
MANIFEST.in | ||
README.rst | ||
requirements.txt | ||
runtests.py | ||
setup.py | ||
tox.ini |
.. image:: https://travis-ci.org/bartTC/dpaste.png?branch=master :target: https://travis-ci.org/bartTC/dpaste .. image:: https://codecov.io/github/bartTC/dpaste/coverage.svg?branch=master :target: https://codecov.io/github/bartTC/dpaste?branch=master ====== dpaste ====== dpaste is a Django based pastebin. It's intended to run separately but its also possible to be installed into an existing Django project like a regular app. You can find a live example on http://dpaste.de/ Further documentation can be found here: http://dpaste.readthedocs.org/en/latest/