Martin Mahner
d0f7e2eda6
Use Black's default line length of 88
2020-01-08 13:19:52 +01:00
Martin Mahner
0c9b346c4d
Add cache control headers with respect to Snippet expire time.
2019-12-08 09:07:23 +01:00
Martin Mahner
e54790c8f9
Quote cleanup, fStrings and Deprecation fixes.
2019-12-07 07:20:52 +01:00
Martin Mahner
68d21874b5
Allow slim view to be iframed. Refs #126
2019-12-05 15:30:20 +01:00
Martin Mahner
d4c678eb73
Slim snippet view. Refs #126 .
2019-12-05 12:54:51 +01:00
Martin Mahner
34b970cf5d
New AppConfig settings APPLICATION_NAME and EXTRA_HEAD_HTML
2019-12-05 11:36:24 +01:00
Martin Mahner
42812855b2
Code cleanup and setup.cfg
2019-01-25 13:47:00 +01:00
Martin Mahner
00c6f058b9
Black'ed the entire codebase
...
black dpaste/ --skip-string-normalization --exclude="migrations"
2018-07-04 12:06:48 +02:00
Martin Mahner
048c6281a7
View Cleanup
2018-06-22 12:55:56 +02:00
Martin Mahner
3e88b66cfa
Removed unicode literals
2018-04-29 12:00:00 +02:00
Martin Mahner
8d10c0bd1e
POST based snippet delete
2018-03-27 18:42:54 +02:00
Martin Mahner
6ecde113b6
Fixed CSRF check in API. Closes #94 .
2017-09-13 09:35:47 +02:00
Martin Mahner
54de452f19
further cleanup
2017-03-18 14:08:36 +01:00
Martin Mahner
e1c3d21f38
Merge branch 'master' into cleanup
2017-01-21 14:45:51 +01:00
Martin Mahner
a6a5bc726b
Backwards incompatible: Removed Gist button feature.
2017-01-19 12:16:07 +01:00
Martin Mahner
b51c16bcbc
Code cleanup and update for Django 1.10. Fixed all warnings.
2016-09-04 20:06:07 +02:00
Martin Mahner
f5cc7fc171
Drop Github Gist Export
2016-03-24 20:16:34 +01:00
Martin Mahner
1c2e26c930
Make all views class-based.
2016-03-24 20:14:13 +01:00
Martin Mahner
d2a704c075
Code Updates for Django 1.8+
2016-03-23 14:02:19 +01:00
Martin Mahner
b25b9b888e
Cleaned up all imports using isort.
2014-12-14 18:03:35 +01:00
Martin Mahner
ea27bf9e0f
Language support!
2014-10-28 11:22:43 +01:00
Martin Mahner
0a3e2b5082
Fixed duplicate slugs.
...
Before a slug could get generated again, which threw an error since it was not unique, but treated as a kind of primary key.
Now if the same slug gets generated again, we generate one other slug with one more character.
2014-04-12 10:10:46 -04:00
Martin Mahner
fac97b61fa
Slug length and choices are now settings.
2013-11-29 18:46:28 +01:00
Martin Mahner
fb5bef707f
Moved about page to 'paste' to fix 3rd party integration.
2013-11-29 18:46:11 +01:00
Martin Mahner
14d014bcba
Fixed urlpattern warning.
2013-11-24 19:46:47 +01:00
Marius Gedminas
508d86ba31
Allow raw snippets without trailing slash
...
Fixes an asymmetry where both of
curl https://dpaste.de/xXxx
curl https://dpaste.de/xXxx/
work, but
curl https://dpaste.de/xXxx/raw/
fails without a trailing slash (because curl doesn't follow redirects by
default).
2013-10-22 11:01:15 +03:00
Martin Mahner
6e641290e2
Fixed couple of merge issues
2013-09-27 17:50:58 +02:00
Martin Mahner
0e251a0392
Merge branch 'develop'
...
Conflicts:
dpaste/urls/dpaste.py
dpaste/views.py
2013-09-27 17:47:09 +02:00
Martin Mahner
4ba94ce64e
Shorter random URLs and no longer a trailing slash.
2013-09-27 17:39:12 +02:00
Martin Mahner
2c072e2789
Huge cleanup. Simplified lexer massively. Cleaned up view code. Cleaned up syntax highlighting.
2013-08-15 20:42:02 +02:00
Martin Mahner
e3de35fa15
No need for a sendmail compatible smtp anymore.
2013-08-15 19:09:10 +02:00
Martin Mahner
2b402680f8
Allow anybody to delete a snippet.
...
I got too many requests in the past, most of because people created snippets via the API and can't delete them, or because of legal issues.
2013-07-19 09:54:18 +02:00
Martin Mahner
8db8977910
Create a Github gist from a snippet.
...
I'm not yet sure how useful it is, since its creates Gists in a anomymous space and not under your account, but if you want to save Snippets permanently, thats the way to go.
2013-06-05 19:40:41 +02:00
Martin Mahner
4978538a97
Removed Django-Piston, added a very simple view to handle API calls. Fully backwards compatible. Fixes all tests.
2013-03-29 19:09:22 +01:00
Martin Mahner
6302145007
Unittests for the API
2013-03-22 21:03:10 +01:00
Martin Mahner
368c8101ce
Now that there is no admin anymore I need a quick way to check the total snippet count, to see if something goes wrong or I'm DOSed.
2013-03-22 19:33:11 +01:00
Martin Mahner
1e0b32b7d1
Removed Django admin. It was never useful anyway.
2013-03-21 19:40:48 +01:00
Martin Mahner
f7916a6960
Huge design overhaul.
2013-03-19 19:17:07 +01:00
Martin Mahner
4183c58cdd
Upgraded to Django 1.5. Fixed urls and paths
2013-03-19 14:46:06 +01:00
Martin Mahner
11b582cc6c
Custom error views to load dpaste error templates.
2013-03-19 14:18:43 +01:00
Martin Mahner
9593853696
Splittet urlpatterns into several files. Will make it much easier to implement this as an app into an existing project.
2013-03-19 14:06:26 +01:00