Skip to content

Commit 221d730

Browse files
committed
Updated setup.py and documentation
1 parent cd5dc01 commit 221d730

File tree

5 files changed

+26
-112
lines changed

5 files changed

+26
-112
lines changed

DESCRIPTION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Adds generic SEO fields for objects in your site or specific urls

README

Lines changed: 0 additions & 105 deletions
This file was deleted.

README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
README.rst

README.rst

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ Usage:
1919
In settings.py:
2020
---------------
2121

22-
Add names of ModelAdmins to be override::
22+
Add names of ModelAdmins to be override::
23+
2324
SEO_FOR_MODELS = [
2425
'<app>.models.<Model>',
2526
]
@@ -42,6 +43,7 @@ Example:
4243
========
4344

4445
``settings.py``::
46+
4547
INSTALLED_APPS = (
4648
...
4749
'app',
@@ -56,6 +58,7 @@ Example:
5658

5759

5860
``templates/object.html``::
61+
5962
{% load seo_tags %}
6063
<html>
6164
<head>
@@ -73,6 +76,7 @@ If you are using extend
7376
-----------------------
7477

7578
``templates/base.html``::
79+
7680
<html>
7781
<head>
7882
<meta name="description" content="{% block description %}{% seo description %}{% endblock %}" />
@@ -85,6 +89,7 @@ If you are using extend
8589
</html>
8690

8791
``templates/object.html``::
92+
8893
{% load seo_tags %}
8994
{% block description %}{% seo description for object %}{% endblock %}
9095
{% block keywords %}{% seo keywords for object %}{% endblock %}
@@ -95,6 +100,7 @@ If you are using extend
95100
{% endblock %}
96101

97102
``templates/another.html``::
103+
98104
{% load seo_tags %}
99105
{% block description %}{% seo description for another %}{% endblock %}
100106
{% block keywords %}{% seo keywords for another %}{% endblock %}
@@ -103,3 +109,11 @@ If you are using extend
103109
{% block content %}
104110
{{ another.content }}
105111
{% endblock %}
112+
113+
Redsolution CMS classifiers:
114+
----------------------------
115+
116+
`Content plugins`_
117+
118+
.. _`Content plugins`: http://www.redsolutioncms.org/classifiers/content
119+

seo/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = '0.2.0'

setup.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@
77
# README file and 2) it's easier to type in the README file than to put a raw
88
# string in below ...
99
def read(fname):
10-
return open(os.path.join(os.path.dirname(__file__), fname)).read()
10+
try:
11+
return open(os.path.join(os.path.dirname(__file__), fname)).read()
12+
except IOError:
13+
return ''
1114

1215
setup(
1316
name="redsolutioncms.django-seo",
14-
version="0.2.0",
15-
description=("Django seo field for models or urls" +
16-
" with RedsolutionCMS integration"),
17+
version=__import__('seo').__version__,
18+
description=read('DESCRIPTION'),
1719
license="LGPL",
1820
keywords="django seo",
1921

@@ -23,7 +25,7 @@ def read(fname):
2325
maintainer='Alexander Ivanov',
2426
maintainer_email='alexander.ivanov@redsolution.ru',
2527

26-
url="http://packages.python.org/django-seo",
28+
# url="http://packages.python.org/django-seo",
2729
classifiers=[
2830
'Development Status :: 3 - Alpha',
2931
'Intended Audience :: Developers',
@@ -40,7 +42,7 @@ def read(fname):
4042
install_requires=[],
4143
include_package_data=True,
4244
zip_safe=False,
43-
long_description=open('README').read(),
45+
long_description=read('README'),
4446
entry_points={
4547
'redsolutioncms': ['seo = seo.redsolution_setup', ],
4648
}

0 commit comments

Comments
 (0)