django-startcbv

Software Screenshot:
django-startcbv
Software Details:
Version: 0.2.3
Upload Date: 11 May 15
Developer: Audrey Roy
Distribution Type: Freeware
Downloads: 2

Rating: nan/5 (Total Votes: 0)

django-startcbv is a Django app that provides a 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

Requirements:

  • Python

Other Software of Developer Audrey Roy

BinaryOrNot
BinaryOrNot

13 Apr 15

jQuery MessageBar
jQuery MessageBar

13 May 15

Comments to django-startcbv

Comments not found
Add Comment
Turn on images!