diff options
author | akhilbatra898 <akhil.batra@research.iiit.ac.in> | 2017-07-09 22:38:56 +0530 |
---|---|---|
committer | akhilbatra898 <akhil.batra@research.iiit.ac.in> | 2017-07-11 13:58:44 +0530 |
commit | 80c314359380e4bf568486080e60ae0aaa25d507 (patch) | |
tree | 367dc0b16e38be00685f401b9bf39868b4ee6135 /qtip/web/web/urls.py | |
parent | 5ad321a08cf289ca67a4a06580bb9803ca8e62e5 (diff) |
Setup Django framework for qtip web servies
- Add Django to dependancies
- Setup Django framework under name - web
- Add a new Django app with name - bench
Change-Id: Ib76d9402c9a43c1811cb6ef283232047d0cfb995
Signed-off-by: akhilbatra898 <akhil.batra@research.iiit.ac.in>
Diffstat (limited to 'qtip/web/web/urls.py')
-rw-r--r-- | qtip/web/web/urls.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/qtip/web/web/urls.py b/qtip/web/web/urls.py new file mode 100644 index 00000000..b0de5fe2 --- /dev/null +++ b/qtip/web/web/urls.py @@ -0,0 +1,21 @@ +"""web URL Configuration + +The `urlpatterns` list routes URLs to views. For more information please see: + https://docs.djangoproject.com/en/1.11/topics/http/urls/ +Examples: +Function views + 1. Add an import: from my_app import views + 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') +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.urls import url +from django.contrib import admin + +urlpatterns = [ + url(r'^admin/', admin.site.urls), +] |