Commit graph

48 commits

Author SHA1 Message Date
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
Denver Gingerich
2309ff0948 add accounting campaign page; update styles/navbar 2013-04-30 00:13:45 -04:00
Bradley M. Kuhn
6245f886f0 Import of admin module is needed to do admin.autodiscover() 2013-04-26 13:11:25 -04:00
Bradley M. Kuhn
1e119efb7a Incorporate conservancy_ssl middleware, etc. into main site, now that HTTPS fully supported.
Previously, SSL on sfconservancy.org was supported using a self-signed cert
only to handle the /admin/ portion of the site.  Now that SSL is supported
site-wide, and perfectly mirrors the content available via HTTP, the
conservancy_ssl middleware, URLs, and settings are wholly deprecated and
herein removed.

The main site's urls.py now need adjusting to support /admin/, but additional
code is needed in middleware.py to avoid accidentally serving /admin/ via
HTTP instead of HTTPS.

The latter code is untested; hopefully it works "out of the box". :)
2013-04-26 13:09:24 -04:00
Bradley M. Kuhn
d2c666ed41 Minor changes to URLs. 2010-10-11 16:29:20 -04:00
Bradley M. Kuhn
9b59b9efe3 Don't require trailing / on RSS feed URLs. 2010-10-05 10:45:50 -04:00
Bradley M. Kuhn
c144b0c54e Added blog to URL list and to front page. Fixed columns on front page. 2010-10-04 10:54:09 -04:00
Bradley M. Kuhn
12780197e5 Adapted Django application stuff for Conservancy; and normalized to string
"conservancy" within code and templates.
2010-09-26 17:56:29 -04:00
Bradley M. Kuhn
c858e825c0 Conservancy website as it currently looks; unfortunately, old history before this cannot easily be retrieved 2010-09-26 17:20:05 -04:00