django-startcbv 0.2.3

Management command to start an app with class-based views.

Installation

Add django-startcbv==0.1 to requirements.txt, then just:

pip install -r requirements.txt

Usage

Create a base.html template in templates/base.html. It should contain a title and a content block, like this:

<html>
<head>
<title>
{% block title %}{% endblock %}
</title>

<body>
{% block content %}{% endblock %}
</body>
</html>

Add the "startcbv" app to INSTALLED_APPS in settings.py:

INSTALLED_APPS = (
    ...
    'startcbv',
)

For all of the following steps, replace "things" with the name of the app that you wish to create:

python manage.py startcbv things

If you're done using startcbv, you can remove it from INSTALLED_APPS now; otherwise, leave it in to create more class-based view apps. Add your "things" app to INSTALLED_APPS in settings.py.:

INSTALLED_APPS = (
    ...
    'things',
)

Add your "things" app URL pattern to urls.py:

url(r'^things/', include('things.urls')),

Then:

python manage.py syncdb
python manage.py runserver

License

This code is licensed under the MIT License.

MIT

Author

Audrey Roy

Pip

django-startcbv==0.2.3

Classifiers

  • Environment :: Web Environment
  • Framework :: Django
  • Operating System :: OS Independent
  • Programming Language :: Python :: 2.6
  • Programming Language :: Python :: 2.7
  • License :: OSI Approved :: BSD License
  • Topic :: Software Development :: Libraries :: Python Modules
  • Development Status :: 2 - Pre-Alpha
  • Topic :: Internet :: WWW/HTTP
  • Topic :: Internet :: WWW/HTTP :: Dynamic Content
  • Programming Language :: JavaScript
File Type Python Version Uploaded On Downloads
django-startcbv-0.2.3.tar.gz Source Oct. 22, 2011 2,705
django-startcbv-0.2.3.macosx-10.7-x86_64.exe Windows Installer Binary Distribution any Oct. 22, 2011 2,043
Version Release Date
0.2.3 Oct. 22, 2011
0.2.2 Oct. 22, 2011
0.2.1 Oct. 22, 2011
0.2 Oct. 22, 2011
0.1.0 Oct. 22, 2011
Date Package Version Action
Aug. 26, 2015, 12:27 a.m. django-startcbv 0.2.1 Release Created
Aug. 26, 2015, 12:27 a.m. django-startcbv 0.2.2 Release Created
Aug. 26, 2015, 12:27 a.m. django-startcbv 0.2.3 Release Created
Aug. 26, 2015, 12:27 a.m. django-startcbv 0.2 Release Created
Aug. 26, 2015, 12:27 a.m. django-startcbv 0.1.0 Release Created
Aug. 26, 2015, 12:27 a.m. django-startcbv Package Created