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:
Ben Sturmfels 2024-03-06 18:46:40 +11:00
parent d461c1bc86
commit dd27742114
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0
4 changed files with 3 additions and 3 deletions

View file

@ -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 = [

View file

@ -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()

View file

@ -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'