Skip to content

Commit c028dd4

Browse files
committed
add code from flight yesterday new urls and view
1 parent cbdc317 commit c028dd4

File tree

5 files changed

+13
-2
lines changed

5 files changed

+13
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,4 @@ ENV/
9292

9393
monitor-flask-apps/.env
9494
monitor-python-bottle-apps/.env
95+
monitor-django-apps/djmonitor/db.sqlite3
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from django.conf.urls import url
2+
from . import views
3+
4+
urlpatterns = [
5+
url(r'', views.theyare, name="theyare"),
6+
]
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
from django.http import HttpResponse
12
from django.shortcuts import render
23

3-
# Create your views here.
4+
5+
def theyare(request):
6+
return HttpResponse("billions")

monitor-django-apps/djmonitor/djmonitor/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
'django.contrib.sessions',
3838
'django.contrib.messages',
3939
'django.contrib.staticfiles',
40+
'billions',
4041
]
4142

4243
MIDDLEWARE = [

monitor-django-apps/djmonitor/djmonitor/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818
from django.urls import path
1919

2020
urlpatterns = [
21-
path(r'^billions/', include('billions.urls', namespace='billions')),
21+
path('billions/', include('billions.urls')),
2222
path('admin/', admin.site.urls),
2323
]

0 commit comments

Comments
 (0)