Skip to content
Snippets Groups Projects
Commit 1d5fcc2a authored by Sascha Herzinger's avatar Sascha Herzinger
Browse files

Added analytics and data app

parent 4323705c
No related branches found
No related tags found
No related merge requests found
Pipeline #
from django.contrib import admin
# Register your models here.
from django.apps import AppConfig
class AnalyticsConfig(AppConfig):
name = 'analytics'
from django.db import models
# Create your models here.
from django.test import TestCase
# Create your tests here.
from django.shortcuts import render
# Create your views here.
from django.contrib import admin
# Register your models here.
from django.apps import AppConfig
class DataConfig(AppConfig):
name = 'data'
from django.db import models
# Create your models here.
from django.test import TestCase
# Create your tests here.
from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index, name='index')
]
from django.shortcuts import render
from django.http import HttpResponse
def index(request):
return HttpResponse("Hello World!")
# Create your views here.
......@@ -13,9 +13,10 @@ 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.conf.urls import url, include
from django.contrib import admin
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^data/', include('data.urls')),
url(r'^admin/', admin.site.urls)
]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment