forked from jazzband/django-tinymce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·88 lines (69 loc) · 2.42 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#!/usr/bin/env python
# from distutils.core import setup
from setuptools import setup, find_packages
import metadata
app_name = metadata.name
version = metadata.version
setup(
name = "django-%s" % app_name,
version = version,
packages = find_packages(),
include_package_data = True,
author = "Aljosa Mohorovic",
author_email = "[email protected]",
description = "A Django application that contains a widget to render a" \
" form field as a TinyMCE editor.",
long_description = \
"""
django-tinymce
===
**django-tinymce** is a Django application that contains a widget to render a form field as a TinyMCE editor.
Quickstart:
===
Install django-tinymce:
$ pip install django-tinymce
Add tinymce to INSTALLED_APPS in settings.py for your project:
INSTALLED_APPS = (
...
'tinymce',
)
Add tinymce.urls to urls.py for your project:
urlpatterns = patterns('',
...
(r'^tinymce/', include('tinymce.urls')),
)
In your code:
from django.db import models
from tinymce.models import HTMLField
class MyModel(models.Model):
...
content = HTMLField()
**django-tinymce** uses staticfiles so everything should work as expected, different use cases (like using widget instead of HTMLField) and other stuff is available in documentation.
Documentation:
===
http://django-tinymce.readthedocs.org/
Support and updates:
===
You can contact me directly at [email protected], track updates at https://twitter.com/maljosa or use github issues.
Be persistent and bug me, I often find myself lost in time so ping me if you're still waiting for me to answer.
License (and related information):
===
Originally written by Joost Cassee.
This program is licensed under the MIT License (see LICENSE.txt)
""",
license = "MIT License",
keywords = "django widget tinymce",
classifiers = [
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Application Frameworks',
'Topic :: Software Development :: Libraries :: Python Modules',
],
platforms = ['any'],
url = "https://github.com/aljosa/django-tinymce",
)