Skip to main content

Simple reusable package for quick scaffolding and basic views based on a given model.

Project description

QuickView is sort of a class based view on steriods, which handles basic scaffolding and basic views in very few lines of code. Take a look at quickview/__init__.py to look at what to override. The main job is creating necessary templates.

NB! This is a proof-of-concept-release and has ONLY been tested under Python 3.3 and Django 1.5b2.

Quick start

  1. pip install django-quickview.

  2. Add “quickview” to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = (
        ...
        'quickview',
    )
  3. In your views.py do:

    import quickview

    class YourView(quickview.QuickView);

    model = YourModel # points to a model in models.py

  4. In your project urls.py do something like this:

    from views import YourView
    urlpattern += YourView.get_urls()
  1. Run python manage.py syncdb to create any models.

  2. You’ll have to create some templates and put these under yourapp/templates/yourapp/yourmodel or directly in your default templatefolder. The templates are:

    • index.html : lists all your models.

    • detail.html : detail view of one specific instance.

    • add.html : template to add instances.

    • update.html : template to update instances.

    • delete.html : template to delete an instance.

  3. Start the development server and visit http://127.0.0.1:8000/yourapp/yourmodel/list/.

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-quickview-0.1.zip (7.4 kB view details)

Uploaded Source

File details

Details for the file django-quickview-0.1.zip.

File metadata

  • Download URL: django-quickview-0.1.zip
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-quickview-0.1.zip
Algorithm Hash digest
SHA256 80bd220470a8d4741d7d981d09a118c9bb12ed825caf81e09e60e9487433b720
MD5 d7d69a192412389c2f7ae74d98ebdd5f
BLAKE2b-256 a52ba806b6709006033299933de5da4797894165804d3ca1751bbaf6b67dad66

See more details on using hashes here.

Supported by

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