skip to navigation
skip to content

Not Logged In

django-startcbv 0.2.1

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

Latest Version: 0.2.3

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

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.

 
File Type Py Version Uploaded on Size
django-startcbv-0.2.1.macosx-10.7-x86_64.exe (md5) MS Windows installer any 2011-10-22 71KB
django-startcbv-0.2.1.tar.gz (md5) Source 2011-10-22 12KB
  • Downloads (All Versions):
  • 38 downloads in the last day
  • 302 downloads in the last week
  • 926 downloads in the last month