From af3d885f8ebd246c4754513d2f755d087fc6dfc4 Mon Sep 17 00:00:00 2001 From: Tyler Stephens Date: Mon, 16 Jun 2014 15:26:30 -0400 Subject: [PATCH] Use explicit relative import instead of implicit. Implicit relative imports are discouraged (http://legacy.python.org/dev/peps/pep-0008/#imports) and no longer supported in python 3. --- .../{{cookiecutter.app_name}}/public/__init__.py | 2 +- .../{{cookiecutter.app_name}}/user/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/public/__init__.py b/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/public/__init__.py index 910bba4..c6fdbc8 100644 --- a/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/public/__init__.py +++ b/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/public/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- '''The public module, including the homepage and user auth.''' -import views +from . import views diff --git a/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/user/__init__.py b/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/user/__init__.py index 99e6b02..fe9e0ac 100644 --- a/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/user/__init__.py +++ b/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/user/__init__.py @@ -1,3 +1,3 @@ '''The user module.''' -import views +from . import views