Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wolph committed Apr 6, 2018
1 parent 9eef136 commit a951c29
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 9 deletions.
3 changes: 2 additions & 1 deletion example/demo/urls.py
@@ -1,6 +1,7 @@
from django.conf import urls
from . import views
from example.demo import views

app_label = 'example.demo'
urlpatterns = [
urls.url(r'^$', views.index, name='index'),
]
Expand Down
3 changes: 1 addition & 2 deletions example/demo/views.py
@@ -1,12 +1,11 @@
import collections

from django_utils import view_decorators

from . import forms


@view_decorators.env
def index(request):
request.template = 'index.html'
data = request.POST or None

request.context['form'] = forms.TagsInputForm(data)
6 changes: 3 additions & 3 deletions example/settings.py
Expand Up @@ -38,8 +38,8 @@
'django.contrib.messages',
'django.contrib.staticfiles',

'autocompletionexample',
'demo',
'example.autocompletionexample',
'example.demo',
'tags_input',
]

Expand All @@ -53,7 +53,7 @@
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]

ROOT_URLCONF = 'urls'
ROOT_URLCONF = 'example.urls'

TEMPLATES = [
{
Expand Down
1 change: 0 additions & 1 deletion example/templates/demo/base.html

This file was deleted.

@@ -1,4 +1,4 @@
{% extends 'demo/base.html' %}
{% extends 'base.html' %}
{% load staticfiles %}

{% block content %}
Expand Down
2 changes: 1 addition & 1 deletion example/urls.py
Expand Up @@ -4,7 +4,7 @@


urlpatterns = [
urls.url(r'^', urls.include('demo.urls')),
urls.url(r'^', urls.include('example.demo.urls')),
urls.url(r'^tags_input/',
urls.include('tags_input.urls', namespace='tags_input')),
urls.url(r'^admin/doc/', urls.include('django.contrib.admindocs.urls')),
Expand Down

0 comments on commit a951c29

Please sign in to comment.