Changeset - 79e6860776bf
[Not reviewed]
0 2 0
Daniel Takamori (pono) - 22 months ago 2022-07-06 18:21:07
pono@sfconservancy.org
use utf-8 encoding to get local testing working

also patched urls.py for easier changing of static locations for
local testing
2 files changed with 5 insertions and 0 deletions:
0 comments (0 inline, 0 general)
www/conservancy/apps/assignment/terms.py
Show inline comments
 
# -*- coding: utf-8 -*-
 
import textwrap
 

	
 
TERMS = textwrap.dedent("""\
 
    Copyright Assignment Agreement
 

	
 
    By checking the box below and submitting this form, you (``Assignor'') enter
 
    into this Agreement between Assignor and the Software Freedom Conservancy,
 
    Inc., a New York nonprofit corporation located in Brooklyn, New York, which
 
    has received recognition of exemption from federal income tax under Section
 
    501(c)(3) of the Internal Revenue Code and classification as a public
 
    charity (the ``Conservancy'').
 

	
www/conservancy/urls.py
Show inline comments
...
 
@@ -18,24 +18,28 @@
 
# "AGPLv3".  If not, see <http://www.gnu.org/licenses/>.
 

	
 
from django.conf.urls import url, include
 
from django.contrib import admin
 

	
 
from conservancy import feeds, frontpage, sponsors
 
import conservancy.apps.fundgoal.views as fundgoal_views
 
import conservancy.static.views as static_views
 

	
 
admin.autodiscover()
 

	
 
urlpatterns = [
 
    # Uncomment these 3 lines when testing locally to get static content
 
    #url(r'^css', static_views.index),
 
    #url(r'^img', static_views.index),
 
    #url(r'^js', static_views.index),
 
    url(r'^$', frontpage.view),
 
    url(r'^sponsors$', frontpage.view),
 
    url(r'^sponsors/$', sponsors.view),
 
    url(r'^sponsors/index.html$', sponsors.view),
 
    url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
 
    url(r'^admin/', admin.site.urls),
 
    url(r'^feeds/blog/?$', feeds.BlogFeed()),
 
    url(r'^feeds/news/?$', feeds.PressReleaseFeed()),
 
    url(r'^feeds/omnibus/?$', feeds.OmnibusFeed()),
 
    url(r'^feeds/?$', feeds.view),
 
    url(r'^news/', include('conservancy.apps.news.urls')),
 
    url(r'^blog/', include('conservancy.apps.blog.urls')),
0 comments (0 inline, 0 general)