File: urls.py

package info (click to toggle)
python-django-crum 0.7.9-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 236 kB
  • sloc: python: 449; makefile: 221
file content (16 lines) | stat: -rw-r--r-- 324 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Django
try:
    from django.urls import re_path
except ImportError:
    from django.conf.urls import url as re_path

# Test App
from test_project.test_app.views import index, api_index


app_name = 'test_app'

urlpatterns = [
    re_path(r'^$', index, name='index'),
    re_path(r'^api/$', api_index, name='api_index'),
]