Skip to content
This repository was archived by the owner on Feb 21, 2020. It is now read-only.
This repository was archived by the owner on Feb 21, 2020. It is now read-only.

Commands to create functional placeholder app views/resources #2

@bruth

Description

@bruth

Running a command like this:

python manage.py startresource name [<app>] [--<method>] [--template=<template_name>]

would create a set of files for a resource/view. For a standard view-like resource, the files would look something like this:

# views.py

class MyView(Resource):
    def get(self, request, *args, **kwargs):
        pass


# urls.py

from django.conf.urls import patterns, url
from .views import MyView

urlpatterns = patterns('',
    url(r'^$', MyView(), name='my-view')
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions