Move Python code out of the "conservancy/static" directory
Having Python code in "conservancy/static" is a bit suprising to people familiar with Django. The name "static" is usually reserved for assets like CSS, JS and images. I'm moving `conservancy/static/views.py` to `conservancy/views.py` and removing `conservancy/static/__init__.py`.
This commit is contained in:
parent
d461c1bc86
commit
dd27742114
4 changed files with 3 additions and 3 deletions
|
@ -2,7 +2,7 @@ from django.conf.urls import url
|
|||
from django.views.generic import TemplateView
|
||||
|
||||
from . import views as supp_views
|
||||
from ..static import views as static_views
|
||||
from .. import views as static_views
|
||||
|
||||
INDEX_VIEW = supp_views.index
|
||||
urlpatterns = [
|
||||
|
|
|
@ -23,7 +23,7 @@ from django.contrib import admin
|
|||
|
||||
from . import feeds, frontpage, sponsors
|
||||
from .fundgoal import views as fundgoal_views
|
||||
from .static import views as static_views
|
||||
from . import views as static_views
|
||||
|
||||
admin.autodiscover()
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ import os.path
|
|||
from django.http import HttpResponse
|
||||
from django.template.response import TemplateResponse
|
||||
|
||||
from ..local_context_processors import fundgoal_lookup
|
||||
from .local_context_processors import fundgoal_lookup
|
||||
|
||||
STATIC_ROOT = os.path.abspath(os.path.dirname(__file__))
|
||||
FILESYSTEM_ENCODING = 'utf-8'
|
Loading…
Reference in a new issue