How to use the django.conf.urls.url function in Django

To help you get started, we’ve selected a few Django examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github OmniDB / OmniDB / OmniDB / OmniDB_app / urls.py View on Github external
url(r'^get_sequences_mariadb/', views.tree_mariadb.get_sequences, name='get_sequences'),
    url(r'^get_views_mariadb/', views.tree_mariadb.get_views, name='get_views'),
    url(r'^get_views_columns_mariadb/', views.tree_mariadb.get_views_columns, name='get_views_columns'),
    url(r'^get_view_definition_mariadb/', views.tree_mariadb.get_view_definition, name='get_view_definition'),
    url(r'^get_databases_mariadb/', views.tree_mariadb.get_databases, name='get_databases'),
    url(r'^get_roles_mariadb/', views.tree_mariadb.get_roles, name='get_roles'),
    url(r'^kill_backend_mariadb/', views.tree_mariadb.kill_backend, name='kill_backend'),
    url(r'^get_properties_mariadb/', views.tree_mariadb.get_properties, name='get_properties'),
    url(r'^template_select_mariadb/', views.tree_mariadb.template_select, name='template_select'),
    url(r'^template_insert_mariadb/', views.tree_mariadb.template_insert, name='template_insert'),
    url(r'^template_update_mariadb/', views.tree_mariadb.template_update, name='template_update'),

    #MONITORING SYSTEM
    url(r'^get_monitor_nodes/', views.monitor_dashboard.get_monitor_nodes, name='get_monitor_nodes'),
    url(r'^test_monitor_script/', views.monitor_dashboard.test_monitor_script, name='test_monitor_script'),
    url(r'^get_monitor_unit_list/', views.monitor_dashboard.get_monitor_unit_list, name='get_monitor_unit_list'),
    url(r'^get_monitor_unit_details/', views.monitor_dashboard.get_monitor_unit_details, name='get_monitor_unit_details'),
    url(r'^get_monitor_units/', views.monitor_dashboard.get_monitor_units, name='get_monitor_units'),
    url(r'^refresh_monitor_units/', views.monitor_dashboard.refresh_monitor_units, name='refresh_monitor_units'),
    url(r'^get_monitor_unit_template/', views.monitor_dashboard.get_monitor_unit_template, name='get_monitor_unit_template'),
    url(r'^save_monitor_unit/', views.monitor_dashboard.save_monitor_unit, name='save_monitor_unit'),
    url(r'^delete_monitor_unit/', views.monitor_dashboard.delete_monitor_unit, name='delete_monitor_unit'),
    url(r'^remove_saved_monitor_unit/', views.monitor_dashboard.remove_saved_monitor_unit, name='remove_saved_monitor_unit'),
    url(r'^update_saved_monitor_unit_interval/', views.monitor_dashboard.update_saved_monitor_unit_interval, name='update_saved_monitor_unit_interval'),

] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)

if settings.PATH == '':
    v_url = ''
else:
    v_url = settings.PATH[1:] + '/'
github idrdex / star-django / stargeo / urls.py View on Github external
'email_template_name': 'registration/password_reset_email.txt',
         'password_reset_form': PasswordResetForm},
        name='password_reset'),
    url(r'^accounts/', include('registration.backends.hmac.urls')),

    url(r'^$', core.views.dashboard, name='dashboard'),

    url(r'^search/$', tags.views.search, name='search'),
    url(r'^tags/$', tags.views.tag_control, name='tag_control'),
    url(r'^tags/create/$', tags.views.create_tag, name='tag_create'),
    url(r'^tags/(\d+)/$', tags.views.tag, name='tag'),
    url(r'^tags/(\d+)/delete/$', tags.views.delete_tag, name='tag_delete'),

    url(r'^annotate/$', tags.annotate_views.annotate, name='annotate'),
    url(r'^validate/$', tags.annotate_views.validate, name='validate'),
    url(r'^on_demand_validate/$', tags.annotate_views.on_demand_validate,
        name='on_demand_validate'),
    url(r'^on_demand_result/(\d+)/$', tags.annotate_views.on_demand_result,
        name='on_demand_result'),
    url(r'^competence/$', tags.annotate_views.competence, name='competence'),

    # Annotations reviews and snapshots
    url(r'^annotations/$', tags.review_views.series_annotations,
        name='series_annotations'),
    url(r'^annotations/(\d+)/samples/$', tags.review_views.sample_annotations,
        name='sample_annotations'),
    url(r'^annotations/ignore/(\d+)/$', tags.review_views.ignore, name='ignore_validation'),
    url(r'^snapshot/$', tags.review_views.snapshot, name='snapshot'),
    url(r'^snapshots/review/$', tags.review_views.review_snapshot, name='review_snapshot'),
    url(r'^snapshots/(\d+)/$', tags.review_views.snapshot_detail, name='snapshot_detail'),
    url(r'^snapshots/(\d+)\.(\w+)', tags.review_views.snapshot_file, name='snapshot_file'),
    url(r'^snapshots/(\d+)/to_zenodo/$', tags.review_views.upload_to_zenodo, name='to_zenodo'),
github twitterdev / tweet-search / app / urls.py View on Github external
from django.conf.urls import patterns, include, url

from django.contrib import admin
admin.autodiscover()

from app import settings
from home import views

urlpatterns = patterns('',
    url(r'^$', views.login, name='login'),
    url(r'^home$', views.home, name='home'),
    url(r'^logout$', views.logout, name='logout'),
    url(r'^query/chart', views.query_chart, name='query_chart'),
    url(r'^query/tweets', views.query_tweets, name='query_tweets'),
    url(r'^query/frequency', views.query_frequency, name='query_frequency'),

    url('', include('social.apps.django_app.urls', namespace='social')),
    url(r'^admin/', admin.site.urls),
)

urlpatterns += patterns('',
 (r'^static/(.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_ROOT}),
 )
github BigBrotherTrade / dashboard / panel / urls.py View on Github external
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from django.conf.urls import url

from .views import *

urlpatterns = [
    url(r'^status$', StatusView.as_view(
        template_name='panel/status.html'), name="status_view"),
    url(r'^status_data', status_data, name='get_status_data'),

    url(r'^performance$', PerformanceView.as_view(
        template_name='panel/performance.html'), name="performance_view"),
    url(r'^nav_data', nav_data, name='get_nav_data'),

    url(r'^instrument$', InstrumentView.as_view(
        template_name='panel/instrument.html'), name='instrument_view'),
    url(r'^bar_data', bar_data, name='get_bar_data'),

    url(r'^correlation$', CorrelationView.as_view(
        template_name='panel/correlation.html'), name="correlation_view"),
    url(r'^corr_data', corr_data, name='get_corr_data'),
]
github ecds / voyages / voyages / apps / resources / urls.py View on Github external
urlpatterns = [
    url(r'^$', voyages.apps.static_content.views.get_static_content, {'group': 'Resources'},
        name='index'),
    url(r'^about', TemplateView.as_view(template_name='resources/about.html'), name='about'),
    url(r'^downloads', TemplateView.as_view(template_name='resources/downloads.html'), name='downloads'),
    url(r'^lessons', TemplateView.as_view(template_name='resources/lessons.html'), name='lessons'),
    url(r'^links', TemplateView.as_view(template_name='resources/links.html'), name='links'),

    #handle all cases for now
    url(r'^images/category/(?P\w+)/(?P\d{1,3})/detail',
        voyages.apps.resources.views.get_image_detail,
        name='image-detail'),
    url(r'^images/category/(?P\w+)/(?P\d{1,3})',
        voyages.apps.resources.views.get_images_category_detail,
        name='images-category-detail'),
    url(r'^images/category/(?P\w+)',
        voyages.apps.resources.views.get_images_category,
        name='images-category'),
    url(r'^images/search/(?P\d{1,3})/detail',
        voyages.apps.resources.views.get_image_search_detail,
        name='image-search-detail-window'),
    url(r'^images/search/(?P\d{1,3})',
        voyages.apps.resources.views.images_search_detail,
        name='images-search-detail'),
    url(r'^images/search',
        voyages.apps.resources.views.images_search,
        name='images-search'),
    url(r'^images/', voyages.apps.resources.views.get_all_images,
        name='images'),
    url(r'^names-database',
        voyages.apps.resources.views.get_all_slaves,
        name='origins')]
github RudolfCardinal / crate / crate_anon / crateweb / config / urls.py View on Github external
# -------------------------------------------------------------------------
    # Restricted C4C views (token-based); clinicians
    # -------------------------------------------------------------------------
    url(r'^clinician_response/(?P-?[0-9]+)/$',
        consent_views.clinician_response_view,
        name=UrlNames.CLINICIAN_RESPONSE),
        # note the -? : allows viewing (and URL-reversing within) an e-mail
        # having a dummy ID of -1.
    url(r'^clinician_pack/(?P-?[0-9]+)/(?P[a-zA-Z0-9]+)/$',  # noqa
        consent_views.clinician_pack, name=UrlNames.CLINICIAN_PACK),

    # -------------------------------------------------------------------------
    # Restricted views; superuser + researchers
    # -------------------------------------------------------------------------
    url(r'^view_email_html/(?P[0-9]+)/$',
        consent_views.view_email_html, name=UrlNames.VIEW_EMAIL_HTML),
    url(r'^view_email_attachment/(?P[0-9]+)/$',
        consent_views.view_email_attachment,
        name=UrlNames.VIEW_EMAIL_ATTACHMENT),
    url(r'^letter/(?P[0-9]+)/$',
        consent_views.view_letter, name=UrlNames.LETTER),

    # -------------------------------------------------------------------------
    # Developer functions and test views
    # -------------------------------------------------------------------------
    url(r'^generate_random_nhs/$',
        consent_views.generate_random_nhs, name=UrlNames.GENERATE_RANDOM_NHS),
    url(r'^test_patient_lookup/$',
        consent_views.test_patient_lookup, name=UrlNames.TEST_PATIENT_LOOKUP),
    url(r'^test_consent_lookup/$',
        consent_views.test_consent_lookup, name=UrlNames.TEST_CONSENT_LOOKUP),
github JBEI / edd / server / edd / load / notify / routing.py View on Github external
from channels.routing import ProtocolTypeRouter, URLRouter
from django.conf.urls import url

from . import consumers

urls = [url(r"", consumers.LoadNoticeConsumer)]

application = ProtocolTypeRouter({"websocket": URLRouter(urls)})
github OpenMOOC / moocng / moocng / courses / urls.py View on Github external
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from django.conf.urls import include, patterns, url
from django.views.generic import RedirectView

from moocng.courses.feeds import AnnouncementCourseFeed


urlpatterns = patterns(
    'moocng.courses.views',
    url(r'^$', 'home', name='home'),
    url(r'^course/$', RedirectView.as_view(url='/'), name='course-index'),

    # Flatpages
    url(r'^faq/$', 'flatpage', {'page': 'faq'}, name='faq'),
    url(r'^methodology/$', 'flatpage', {'page': 'methodology'},
        name='methodology'),
    url(r'^legal/$', 'flatpage', {'page': 'legal'}, name='legal'),
    url(r'^tos/$', 'flatpage', {'page': 'tos'}, name='tos'),
    url(r'^copyright/$', 'flatpage', {'page': 'copyright'}, name='copyright'),
    url(r'^cert/$', 'flatpage', {'page': 'cert'}, name='cert'),
    url(r'^oldscore-help/$', 'flatpage', {'page': 'oldscore'}, name='oldscore'),
    url(r'^score-help/$', 'flatpage', {'page': 'score'}, name='score'),

    url(r'^transcript/$', 'transcript', name='transcript'),
    url(r'^transcript/(?P[-\w]+)/$', 'transcript', name='transcript'),
github tor-councilmatic / tor-councilmatic / councilmatic / urls.py View on Github external
.facet('inferred_status')\
                      .facet('topics')\
                      .facet('legislative_session')\
                      .facet('wards')\
                      .highlight()

urlpatterns = [
    url(r'^admin/', include(admin.site.urls)),
    url(r'^search/rss/', TorontoCouncilmaticFacetedSearchFeed(), name='councilmatic_search_feed'),
    url(r'^search/', CouncilmaticFacetedSearchView(searchqueryset=sqs,
                                       form_class=CouncilmaticSearchForm), name='councilmatic_search'),
    url(r'^$', TorontoIndexView.as_view(), name='index'),
    url(r'^about/$', TorontoAboutView.as_view(), name='about'),
    url(r'^legislation/(?P[^/]+)/$', TorontoBillDetailView.as_view(), name='bill_detail'),
    url(r'^legislation/(?P[^/]+)/rss/$', BillDetailActionFeed(), name='bill_detail_action_feed'),
    url(r'^person/(?P[^/]+)/$', TorontoPersonDetailView.as_view(), name='person'),
    url(r'^council-members/$', TorontoCouncilMembersView.as_view(), name='council_members'),
    url(r'^events/', TorontoEventsView.as_view(), name='events'),
    url(r'^event/(?P.*)/$',
        TorontoEventDetailView.as_view(), name='event_detail'),
    url(r'', include('councilmatic_core.urls')),
    url(r'^members/$', RedirectView.as_view(url='/council-members/', permanent=True), name='council_members'),
]
github Splawik / pytigon / pytigon / prj / schsetup / schadmin / urls.py View on Github external
url(r'^sqlexplore', TemplateView.as_view(template_name='schadmin/sqlexplore.html'), {}), 
     url(r'^graphql', TemplateView.as_view(template_name='schadmin/graphql.html'), {}), 
    
    
]

gen = generic_table_start(urlpatterns, 'schadmin', views)
from django.conf.urls import include
from django.contrib import admin
from pytigon_lib.schtools.platform_info import platform_name

urlpatterns.append(url(r'^admin/', admin.site.urls))
urlpatterns.append(url(r'^explorer/', include('explorer.urls')))

if platform_name()!='Android':
    urlpatterns.append(url(r'^filer/', include('filer.urls')))