Updating docs
parent
3f0e650fd1
commit
9b85bfd5b2
|
|
@ -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.
|
||||
|
|
|
|||
6
setup.py
6
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',
|
||||
|
|
|
|||
Loading…
Reference in New Issue