Commit graph

58 commits

Author SHA1 Message Date
47a30a750a
Sort Python imports with isort 2023-10-20 09:52:39 +11:00
b7e2ce2a4d
Switch to relative imports
The relative imports make it clearer what code is within the project and where
it's coming from.
2023-10-20 09:45:53 +11:00
cf359b6a64
Rename cast to "The Corresponding Source", move to URL prefix "/cast/"
Also improved detail view rendering where unclosed <ul> tags in the body
content HTML from the database were affecting the display of footer info.
2023-10-13 13:08:16 +11:00
c0acfde9c3
Merge FAIF "podjango" codebase into main sfconservancy.org site
It's a little awkward for now with podjango also having an "apps" module, but we
can clean that up later. I've excluded any JS and HTML that's likely not
required.

To accomodate this merging, I moved the templates into a "podjango" subdirectory
and, added a "podjango" namespace to the URLconf and converted a bunch of
hard-coded links to use the "url" template tag since there will now be a
"/faif/" prefix.
2023-10-05 19:26:42 +11:00
f1262cf7c5
front page news to reference compliance 2023-01-31 10:52:44 -08:00
6cb46c61d1 Add initial fossy app 2023-01-31 11:22:26 +11:00
3b2eab89a3
need to change urls.py for fossy to work 2022-11-29 14:01:20 -08:00
79e6860776
use utf-8 encoding to get local testing working
also patched urls.py for easier changing of static locations for
local testing
2022-07-06 11:21:07 -07:00
d98707b64a new top-level urls still need to be added here.
I forget why we had this set up this way, but I think this is the
right way to do it. 🤷
2022-06-30 05:34:00 -07:00
f0e7f5736c Make copyright assignment area live. 2022-05-02 08:05:02 -07:00
5bef923cfe
Revert local development settings committed.
This reverts commit adf2229720.
2022-01-11 09:17:55 +11:00
adf2229720
Rename __unicode__ methods to __str__ following Django upgrade. 2022-01-11 09:13:46 +11:00
b2e952f3b8
Fix URLconfs causing Django check warnings. 2021-12-17 18:14:50 +11:00
97899caf78
Remove URL slash prefix. 2021-12-17 17:27:26 +11:00
47fa2b3623
Disable copyright assignment URLs until we're ready to launch. 2021-12-17 16:56:07 +11:00
780e0b8dbf
Add assignment thanks page. 2021-12-07 09:59:38 +11:00
a2675ee029
Prototype copyright assignment form. 2021-12-07 09:58:47 +11:00
9a06def0e7
Add simple CCS upload (no JavaScript). 2021-12-03 11:38:21 +11:00
Daniel Pono Takamori
587e508b6f add /press and make that kit page
fix urls for press and learn
start work on new news partial submenu
2021-10-19 06:50:26 -07:00
a98efefcf6 activities: add page for “What We Do”.
This is a first pass at content for the activities page, which is the
landing page for the top-bar menu item of “What We Do”.
2021-10-19 06:50:26 -07:00
bf88f1be1c Also need to add a URL for this to work. 2021-10-19 06:50:25 -07:00
bde54db0c4 Rename "supporter" to "sustainer" in templates and URLs.
Does not rename the models.
2021-10-19 06:47:58 -07:00
26682bc158
Remove unused import. 2021-10-13 21:20:24 +11:00
Brett Smith
11e2f64d4b urls: Stop capturing unintended argument. 2018-09-03 10:48:11 -04:00
Brett Smith
b2a006f49c urls: Migrate from patterns strings to plain lists of urls. 2017-11-07 09:00:48 -05:00
Brett Smith
cf5b073d44 urls: Route /error/NNN/ to static.views.handler.
Since our Apache configuration uses `ErrorDocument NNN /error/NNN/`,
this is necessary to return the correct status code in those cases.
2016-12-05 21:43:51 -05:00
Brett Smith
552bc6b1ca supporter: Route URLs to new submodule. 2016-12-02 12:52:32 -05:00
Brett Smith
8fec6023e9 contractpatch: Add page. 2016-11-28 15:23:58 -05:00
Bradley M. Kuhn
f40a1209a9 /projects now handled by static views.
As a last step, we remove /members, which is now fully handled by Apache
static config, to be /projects for use the static page handler.
2016-10-24 13:56:37 -07:00
Bradley M. Kuhn
20d3accd3c linux-compliance is now copyleft-compliance.
urls.py must change for this too.
2015-11-30 20:08:44 -08:00
Bradley M. Kuhn
e8a5795a2c Correct method name. 2015-05-09 17:12:34 -07:00
Bradley M. Kuhn
1588fa5d81 Correct method name. 2015-05-09 17:04:38 -07:00
Bradley M. Kuhn
9dab283774 Generate JSON output of a fundraiser data
Allow public interface to query the fundraiser data.
2015-05-09 16:50:32 -07:00
Bradley M. Kuhn
ab2239009a Rework again to see if I can get this corrected. 2015-03-08 23:40:47 -07:00
Bradley M. Kuhn
f8f37dd39c Must move import as well. 2015-03-08 23:31:44 -07:00
Bradley M. Kuhn
b3f019265b Rework fundgoal lookup urls data.
The urls.py is of course only evaluated once: at Apache load time, which
means the data in the template became stale and is not dynamic.

This change should cause the lookup to happen at each page view.
2015-03-08 23:28:42 -07:00
Bradley M. Kuhn
51ebbc9cb8 Convert VMware fundraiser to new dynamic content.
Use the new dynamic content fundgoal stuff for VMware fundraiser.
2015-03-08 21:54:34 -07:00
Bradley M. Kuhn
3b0e6778e1 Correct get call to use arg properly.
This was just a typo in from previous commit, more or less.
2015-03-08 20:50:42 -07:00
Bradley M. Kuhn
09654a5eac Fundraising goal lookup for template: 1st attempt
This seems to be the best approach to pass a fundraising goal record to
a template.  While the static hack that tmarble implemented probably
needs work anyway, this is probably the best way currently to interface
certain general data that we seek to place on many different pages
through the templates.

I looked into a templatetags solution, but this seemed more
straightforward and more fitting with Django principles (I think :).
2015-03-08 20:46:37 -07:00
Tom Marble
2bf594b86c First pass at migration to Django 1.7 2015-03-03 18:40:18 +00:00
Bradley M. Kuhn
462cbc3963 Supporters list built dynamically.
Hitherto the supporters list has been committed directly to the static
sponsors/index.html file.  This was never ideal and a quick hack to
build Conservancy's supporters list at the beginning of the supporters
program.

With this change, a Django app now exists that dynamically generates the
supporters list.

The database rows must be built from Conservancy's internal Ledger file,
which will be done in a separate script.
2015-01-03 09:53:12 -05:00
Bradley M. Kuhn
55d84a19b1 .* no longer desirable in /admin in urls.py
According to:
http://stackoverflow.com/questions/10145583/django-1-4-and-noreversematch-at-admin-error

the .* was no longer correct.  It is herein removed.
2014-07-14 14:49:17 -04:00
Bradley M. Kuhn
2a572dcffa Fix regression introduced in commit early today.
6a2918c288 introduced a removal of this
line.  This line is necessary for the front page to work.
2014-07-14 12:08:53 -04:00
Bradley M. Kuhn
527ad3087f Additional argument was likely incorrect.
Rereading https://docs.djangoproject.com/en/1.4/ref/contrib/syndication/
shows that the first argument should no longer be that class.
2014-07-14 11:49:03 -04:00
Bradley M. Kuhn
10b785b04d Need to import these classes for urls to use them. 2014-07-14 10:55:58 -04:00
Bradley M. Kuhn
18addfe969 Additional issues deal with feed_dict deprecation. 2014-07-14 10:52:41 -04:00
Bradley M. Kuhn
6a2918c288 In Django 1.2, feed_dict was deprecated.
Therefore, change this to use the method explained at:

https://docs.djangoproject.com/en/dev/releases/1.2/#feed-in-django-contrib-syndication-feeds
2014-07-14 10:49:29 -04:00
Bradley M. Kuhn
7835493122 Apparently, "Feed" is now capitalized.
http://stackoverflow.com/questions/6642829/how-to-resolve-could-not-import-django-contrib-syndication-views-feed-error-in
2014-07-14 10:20:15 -04:00
Bradley M. Kuhn
d70e6f3f8b Update for Djnango 1.4.5: admin.site.urls
http://stackoverflow.com/questions/5503616/how-to-correct-this-error-adminsite-object-has-no-attribute-root
2014-07-08 13:33:06 -04:00
Bradley M. Kuhn
3ef1208e71 Campaign doesn't need to be a template or an application. 2013-04-30 21:14:58 -04:00