From 9b85bfd5b2875fc44e7deb32f2fa6870c00bcbb7 Mon Sep 17 00:00:00 2001 From: Manuel Francisco Naranjo Date: Mon, 27 Jul 2015 16:32:19 -0300 Subject: [PATCH] Updating docs --- README.md | 5 +---- setup.py | 6 ++---- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 31ba092..54b8b68 100644 --- a/README.md +++ b/README.md @@ -46,11 +46,8 @@ class MyView(DbView): return str(qs.query) ``` - - 3. Then create a migration point for your view generation, edit that migration and modify it, add: `from dbview.helpers import CreateView` and replace the line -the call to migrations.CreateModel with CreateView. - +the call to `migrations.CreateModel` with `CreateView`. 4. Migrate your database and start using your database views. diff --git a/setup.py b/setup.py index e517b0b..fa98213 100644 --- a/setup.py +++ b/setup.py @@ -1,9 +1,6 @@ import os from setuptools import setup -with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: - README = readme.read() - # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) @@ -11,10 +8,11 @@ setup( name='django-database-view', version='0.1', packages=['dbview'], + setup_requires=['setuptools-markdown'], + long_description_markdown_filename='README.md', include_package_data=True, license='MIT', description='A simple Django app to handle database views.', - long_description=README, url='https://github.com/manuelnaranjo/django-database-view', author='Manuel F. Naranjo', author_email='naranjo.manuel@gmail.com',