Beispiel #1
0
from django.views.generic import RedirectView

from django_spaghetti.views import Plate

from core.utils import is_active

urlpatterns = [
    path('', RedirectView.as_view(pattern_name=settings.START_VIEW)),
    path('admin/', admin.site.urls),
    path('core/', include('core.urls', namespace='core')),
    path('accounts/login/', views.LoginView.as_view(),
         {'template_name': 'core/login.html'}),
    path(
        'model_graph/',
        Plate.as_view(
            plate_template_name='3rd_party/django_spaghetti/plate.html',
            meatball_template_name='3rd_party/django_spaghetti/meatball.html')
    ),
    path('rpc/', include('cmrpc.urls')),
]

if settings.DEBUG:
    urlpatterns += static(settings.MEDIA_URL,
                          document_root=settings.MEDIA_ROOT)

if is_active('floor_map'):
    urlpatterns += [
        path('floor-map/', include('floor_map.urls', namespace='fm')),
    ]

if is_active('msds_collector'):
Beispiel #2
0
from django.conf.urls import url, include
from django_spaghetti.views import plate, Plate

urlpatterns = [
    url(r'^test/plate_settings$',
        Plate.as_view(settings={
            'apps': ['auth'],
            'exclude': {},
        }),
        name='test_plate_settings'),
    url(r'^test/plate_show_m2m_field_detail$',
        Plate.as_view(override_settings={'show_m2m_field_detail': True}),
        name='test_plate_show_m2m_field_detail'),
    url(r'^test/plate_override$',
        Plate.as_view(override_settings={
            'exclude': {
                'tests': ['policestation']
            },
        },
                      meatball_template_name="tests/meatball.html"),
        name='test_plate_override$'),
    url(r'plate', include('django_spaghetti.urls', namespace="spaghetti")),
]
from django.conf.urls import url, include
from django.contrib import admin
from django_spaghetti.views import plate, Plate

urlpatterns = [
    url(r'^test/plate_settings$', Plate.as_view(
        settings={
            'apps': ['auth'],
            'exclude': {},
        }
    ), name='test_plate_settings'),
    url(r'^test/plate_show_m2m_field_detail$', Plate.as_view(
        override_settings={
            'show_m2m_field_detail': True
        }
    ), name='test_plate_show_m2m_field_detail'),
    url(r'^test/plate_override$', Plate.as_view(
        override_settings={
            'exclude': {
                'tests': ['policestation']
            },
        },
        meatball_template_name="tests/meatball.html"
    ), name='test_plate_override$'),
    url(r'^$', include('django_spaghetti.urls', namespace="spaghetti")),
]
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')),
]
Beispiel #5
0
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")),
]
Beispiel #6
0
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')),
]
Beispiel #7
0
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')),
]