Skip to main content

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.

Metadata

Release files for django-startcbv 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-startcbv 0.2.3
File Size Uploaded
django-startcbv-0.2.3.tar.gz 13.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-startcbv 0.2.3
File Interpreter ABI Platform
django-startcbv-0.2.3.macosx-10.7-x86_64.exe Details

Total release size: 86.2 kB

Release files / django-startcbv-0.2.3.tar.gz

Download URL django-startcbv-0.2.3.tar.gz
Size 13.1 kB
Tags Source
SHA-256 checksum
How to use checksums
0d8acfce67b774ea6078ac68d47b034aaf3e12b2d2c40b53ac118c444043f1d6
BLAKE2b-256 checksum
How to use checksums
f5507197962072df76e2b2d6b7d5a766f8afd4650ca8c3b85cd67d2980ff44cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / django-startcbv-0.2.3.macosx-10.7-x86_64.exe

Download URL django-startcbv-0.2.3.macosx-10.7-x86_64.exe
Size 73.1 kB
Tags Source
SHA-256 checksum
How to use checksums
69de38539057376287e9b8a2bc5b116679dcb5482b5214aaf844fd6aa09b2969
BLAKE2b-256 checksum
How to use checksums
b22a2562e9ded29cf7e7481738fff07fd34adf45a574de370f5f8562a477a598
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.3 This release

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page