Class-based views 1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') Including another URLconf 1. Import the include() function: from django.conf.urls import url, include 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) """ from django.conf import settings from django.conf.urls import url, include from usaspending_api import views as views from usaspending_api.common.views import MarkdownView from django.conf.urls.static import static urlpatterns = [ url(r"^$", MarkdownView.as_view(markdown="landing_page.md")), url(r"^api/v1/accounts/", include("usaspending_api.accounts.urls")), url(r"^api/v1/awards/", include("usaspending_api.awards.v1.urls_awards")), url(r"^api/v1/federal_accounts/", include("usaspending_api.accounts.urls_federal_account")), url(r"^api/v1/references/", include("usaspending_api.references.v1.urls")), url(r"^api/v1/subawards/", include("usaspending_api.awards.v1.urls_subawards")), url(r"^api/v1/submissions/", include("usaspending_api.submissions.urls")), url(r"^api/v1/tas/", include("usaspending_api.accounts.urls_tas")), url(r"^api/v1/transactions/", include("usaspending_api.awards.v1.urls_transactions")), url(r"^api/v2/autocomplete/", include("usaspending_api.references.v2.urls_autocomplete")), url(r"^api/v2/awards/", include("usaspending_api.awards.v2.urls_awards")), url(r"^api/v2/idvs/", include("usaspending_api.idvs.v2.urls_idvs")), url(r"^api/v2/award_spending/", include("usaspending_api.awards.v2.urls_award_spending")), url(r"^api/v2/subawards/", include("usaspending_api.awards.v2.urls_subawards")), url(r"^api/v2/budget_authority/", include("usaspending_api.accounts.urls_budget_authority")), url(r"^api/v2/download/", include("usaspending_api.download.v2.urls")),
from django.conf.urls import url from usaspending_api.common.views import MarkdownView from django_spaghetti.views import Plate urlpatterns = [ url(r'^$', MarkdownView.as_view(markdown='documentation_index.md')), url(r'^intro-tutorial', MarkdownView.as_view(markdown='api_tutorial.md')), url(r'^data-dictionary', MarkdownView.as_view(markdown='data_dictionary.md')), url(r'^recipes', MarkdownView.as_view(markdown='request_recipes.md')), url(r'^using-the-api', MarkdownView.as_view(markdown='using_the_api.md')), url(r'^entity-relationships', Plate.as_view(plate_template_name='plate.html'), name='plate'), url(r'^endpoints', MarkdownView.as_view(markdown='endpoints.md')), ]
Class-based views 1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') Including another URLconf 1. Import the include() function: from django.conf.urls import url, include 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) """ from django.conf import settings from django.conf.urls import url, include from usaspending_api import views as views from usaspending_api.common.views import MarkdownView from django.conf.urls.static import static urlpatterns = [ url(r'^$', MarkdownView.as_view(markdown='landing_page.md')), url(r'^api/v1/accounts/', include('usaspending_api.accounts.urls')), url(r'^api/v1/awards/', include('usaspending_api.awards.v1.urls_awards')), url(r'^api/v1/federal_accounts/', include('usaspending_api.accounts.urls_federal_account')), url(r'^api/v1/references/', include('usaspending_api.references.v1.urls')), url(r'^api/v1/subawards/', include('usaspending_api.awards.v1.urls_subawards')), url(r'^api/v1/submissions/', include('usaspending_api.submissions.urls')), url(r'^api/v1/tas/', include('usaspending_api.accounts.urls_tas')), url(r'^api/v1/transactions/', include('usaspending_api.awards.v1.urls_transactions')), url(r'^api/v2/autocomplete/', include('usaspending_api.references.v2.urls_autocomplete')), url(r'^api/v2/awards/', include('usaspending_api.awards.v2.urls_awards')), url(r'^api/v2/award_spending/', include('usaspending_api.awards.v2.urls_award_spending')), url(r'^api/v2/budget_authority/', include('usaspending_api.accounts.urls_budget_authority')), url(r'^api/v2/download/', include('usaspending_api.download.v2.urls')), url(r'^api/v2/bulk_download/', include('usaspending_api.bulk_download.v2.urls')), url(r'^api/v2/federal_accounts/', include('usaspending_api.accounts.urls_federal_accounts_v2')),
from django.conf.urls import url from usaspending_api.common.views import MarkdownView from django_spaghetti.views import Plate urlpatterns = [ url(r"^$", MarkdownView.as_view(markdown="documentation_index.md")), url(r"^intro-tutorial", MarkdownView.as_view(markdown="api_tutorial.md")), url(r"^data-dictionary", MarkdownView.as_view(markdown="data_dictionary.md")), url(r"^recipes", MarkdownView.as_view(markdown="request_recipes.md")), url(r"^using-the-api", MarkdownView.as_view(markdown="using_the_api.md")), url(r"^entity-relationships", Plate.as_view(plate_template_name="plate.html"), name="plate"), url(r"^endpoints", MarkdownView.as_view(markdown="endpoints.md")), ]
from django.conf import settings from django.conf.urls import url, include from usaspending_api import views as views from usaspending_api.common.views import MarkdownView from django_spaghetti.views import Plate urlpatterns = [ url(r'^$', MarkdownView.as_view(markdown='documentation_index.md')), url(r'^intro-tutorial', MarkdownView.as_view(markdown='api_tutorial.md')), url(r'^data-dictionary', MarkdownView.as_view(markdown='data_dictionary.md')), url(r'^recipes', MarkdownView.as_view(markdown='request_recipes.md')), url(r'^using-the-api', MarkdownView.as_view(markdown='using_the_api.md')), url(r'^entity-relationships', Plate.as_view(plate_template_name='plate.html'), name='plate'), url(r'^endpoints', MarkdownView.as_view(markdown='endpoints.md')), ]
Class-based views 1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') Including another URLconf 1. Import the include() function: from django.conf.urls import url, include 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) """ from django.conf import settings from django.conf.urls import url, include from usaspending_api import views as views from usaspending_api.common.views import MarkdownView from django.conf.urls.static import static urlpatterns = [ url(r'^$', MarkdownView.as_view(markdown='landing_page.md')), url(r'^api/v1/accounts/', include('usaspending_api.accounts.urls')), url(r'^api/v1/awards/', include('usaspending_api.awards.v1.urls_awards')), url(r'^api/v1/federal_accounts/', include('usaspending_api.accounts.urls_federal_account')), url(r'^api/v1/references/', include('usaspending_api.references.v1.urls')), url(r'^api/v1/subawards/', include('usaspending_api.awards.v1.urls_subawards')), url(r'^api/v1/submissions/', include('usaspending_api.submissions.urls')), url(r'^api/v1/tas/', include('usaspending_api.accounts.urls_tas')), url(r'^api/v1/transactions/', include('usaspending_api.awards.v1.urls_transactions')), url(r'^api/v2/autocomplete/', include('usaspending_api.references.v2.urls_autocomplete')), url(r'^api/v2/awards/', include('usaspending_api.awards.v2.urls_awards')), url(r'^api/v2/awards/idvs/', include('usaspending_api.awards.v2.urls_idv_awards')), url(r'^api/v2/award_spending/', include('usaspending_api.awards.v2.urls_award_spending')), url(r'^api/v2/subawards/', include('usaspending_api.awards.v2.urls_subawards')), url(r'^api/v2/budget_authority/', include('usaspending_api.accounts.urls_budget_authority')), url(r'^api/v2/download/', include('usaspending_api.download.v2.urls')),