Skip to main content

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

Project description

Installation

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

pip install -r requirements.txt

Usage

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-startcbv-0.2.tar.gz (12.3 kB view hashes)

Uploaded Source

Built Distribution

django-startcbv-0.2.macosx-10.7-x86_64.exe (72.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page