adding url module for test

This commit is contained in:
Ilan Steemers
2015-06-24 17:04:30 +02:00
parent 21a4950f36
commit 0798c42354
2 changed files with 7 additions and 16 deletions
+1 -16
View File
@@ -1,16 +1,3 @@
"""
Django settings for testq project.
Generated by 'django-admin startproject' using Django 1.8.2.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
@@ -51,7 +38,7 @@ MIDDLEWARE_CLASSES = (
'django.middleware.security.SecurityMiddleware',
)
ROOT_URLCONF = 'testq.urls'
ROOT_URLCONF = 'tests.urls'
TEMPLATES = [
{
@@ -69,8 +56,6 @@ TEMPLATES = [
},
]
WSGI_APPLICATION = 'testq.wsgi.application'
# Database
# https://docs.djangoproject.com/en/1.8/ref/settings/#databases
+6
View File
@@ -0,0 +1,6 @@
from django.conf.urls import include, url
from django.contrib import admin
urlpatterns = [
url(r'^admin/', include(admin.site.urls)),
]