zia.fazal@arbisoft.com
2453bc8c05
Stop showing hitting enterprise API in case of 404 error
...
Stop showing hitting enterprise API when request is originated as result of 404 error.
fixed quality violations
Removed line break
add unit tests
Updated test docstring
2020-02-14 15:16:51 +05:00
usama sadiq
720dcb6c3a
Updated ExceptionViews handles
...
Added additional 'exception' parameter to function headers.
Disabled pylint warnings for missing docstring and unused arguments.
2020-01-10 15:56:24 +05:00
Feanil Patel
6e3fe00fff
Fix all E303 pep8 errors.
2019-12-30 12:25:38 -05:00
Feanil Patel
9cf2f9f298
Run 2to3 -f future . -w
...
This will remove imports from __future__ that are no longer needed.
https://docs.python.org/3.5/library/2to3.html#2to3fixer-future
2019-12-30 10:35:30 -05:00
Nimisha Asthagiri
a6b219a9e9
Python-3: assertIn(..response.content) -> assertContains
2019-09-30 08:50:38 -04:00
Nimisha Asthagiri
feaacef3f3
Remove microsites from static_template_view
...
DEPR-28
2019-05-29 10:38:00 -04:00
Stu Young
c20c770eb0
incr-297 ( #20604 )
...
* run python modernize
* run isort
2019-05-15 16:58:04 -04:00
Calen Pennington
8c53ce6493
Merge pull request #19743 from edx/unicode7
...
fix unicode strings in lms/ part 2
2019-02-13 14:15:02 -05:00
Matthew Piatetsky
764319d3e0
fix unicode strings in lms/ part 2
2019-02-13 10:35:56 -05:00
Michael Youngstrom
3221c2b91f
Remove lms pytest shards
2019-02-12 11:03:46 -05:00
Eric Fischer
247bb50ed2
s/django.core.urlresolvers/django.urls/g
...
Django 1.10 deprecation fix for Hackathon XIX
Addresses PLAT-1397
2018-06-05 13:59:09 -04:00
Stuart Young
1fd2167144
rebalance python unittests onto new shards
2018-05-03 11:16:05 -04:00
Mike
0e2b667bb4
Added ability to change header and content of static pages in two ways.
...
1. Using the pageheader and pagecontent block names.
2. Setting SiteConfiguration settings for each individual html page.
Co-authored by: Tomasz Gargas <tomasz@opencraft.com >
2018-03-24 21:37:09 +01:00
Gavin Sidebottom
67442c2641
Fixed unthemed error pages in Studio and LMS
2018-02-22 16:49:06 -05:00
Jeremy Bowman
ca84751bbd
PLAT-1889 Fix URL config and reversal issues
2018-01-19 11:02:06 -05:00
Jeremy Bowman
fdc50c3aa8
PLAT-1419 Make edxmako a proper template backend
2017-12-01 17:01:52 -05:00
bmedx
bebdc069a7
LMS urls cleanup for Django 1.11
...
- Remove usage of django.urls.patterns
- Change urls tuples to lists
- Make all string view names callables
- This is the third urls update for LMS
2017-11-07 14:17:54 -05:00
Andy Armstrong
79acb5c5be
Reorder LMS imports using isort
2017-06-11 21:48:06 -04:00
Douglas Cerna
eaa02db6ae
Added Terms of Service modal
2017-05-29 11:57:04 -06:00
Robert Raposa
e7028c6eab
Move static_template_view.views to its own urls.py.
2016-10-12 14:37:18 -04:00
Matjaz Gregoric
344c72b3e2
Use non-ascii PLATFORM_NAME in tests.
...
It should help catch unicode encoding problems earlier.
This also updates python-saml dependency to a version that includes a
patch for unicode strings.
2016-09-23 15:38:23 +02:00
Saleem Latif
8ae92901ef
1. Merge microsites into Comprehensive Theming
...
2. Add site configuration overrides to theming/helpers.py
3. Move microsite.get_value from theming/helpers to site_configuration/helpers
4. Move microsite_configuration.microsite.get_value usages to site_configuration.helpers.values
2016-07-27 13:55:14 +05:00
Calen Pennington
93970f3473
Allow edxmako to be passed an explicit request to create the RequestContext from
2016-06-08 16:35:25 -04:00
Calen Pennington
4a3f8358de
Make static_template_view.tests an actual module
2016-05-18 14:10:28 -04:00
Zia Fazal
06e38e1c24
added branding to 404 and 500 error pages
...
changes based on feedback
renamed a definition and added test coverage
fixed broken tests
2016-01-29 15:46:51 +05:00
Ibrahim
0f09bb8a94
raise 404 when copyright template is missing
2016-01-22 12:02:46 -05:00
Hasnain
c14f65a293
Added site_map in static template
...
Allow file extensions in MKTG_URL_LINK_MAP template keys
Set content type on requests for static templates based on the template key
2016-01-14 13:44:54 -05:00
Sarina Canelake
e53b9c83d9
Use Django 1.4 @ensure_csrf_cookie method PLAT-664
2015-06-06 08:48:36 -04:00
Renzo Lucioni
f5767a961c
Prep marketing iframe and relevant courseware view for email opt-in
...
Feature flagged. Puts a checkbox in the iframe. The iframe uses an organization_full_name parameter forwarded from Drupal by the courseware views and POSTs an email_opt_in parameter to the student views, preserving it on 403.
2014-12-01 10:30:16 -05:00
David Baumgold
8eff442752
mitxmako => edxmako
2013-12-03 14:15:09 -05:00
David Baumgold
7db77dc525
Remove static_template_view tests
2013-07-09 12:54:50 -04:00
Ned Batchelder
3eec09b87a
Merge pull request #216 from edx/ned/remove-unused-imports
...
Ned/remove unused imports
2013-06-20 14:15:31 -07:00
Calen Pennington
308fe26b65
Clean up pep8 E128 issues
2013-06-20 09:08:25 -04:00
Ned Batchelder
61b53713d2
Remove unused imports from lms, as detected by pylint.
2013-06-19 16:56:34 -04:00
Sef Kloninger
bd2330a8f0
press releases: more explicitly match on slug (safety)
2013-04-10 08:20:30 -04:00
Sef Kloninger
4b68e0282f
press releases: use generic matching rule
...
This way instead of having to explicitly add releases to the urls.py
file, we just add the relase to the static_templates/press_releases
directory and the right thing happens.
Getting rid of the current "feature" where /pressrelease redirects to
the current press release. It was broken, looks like it's unused.
Limitation: release file name must match slug, but with underscores and
all lower case.
Why bother? I wanted to do something small to learn the edX toolchain.
2013-04-10 02:16:35 -04:00
Calen Pennington
cfae1cdf62
Pep8 autofixes
2013-02-06 11:13:50 -05:00
Victor Shnayder
814cd56034
return proper error codes for 404 and 500 errors
2012-09-10 10:38:17 -04:00
Calen Pennington
1d1a9173a4
Cleaning up pep8 violations
2012-07-23 14:44:40 -04:00
Bridger Maxwell
186e5fc5e1
Cleaned up the urls file a bit, to remove urls that don't work. Also removed some unused stuff from static_template_views.
2012-07-20 15:56:48 -04:00
Bridger Maxwell
0fab4cdd93
Added a method to render 404 and 500 pages. Added a reference to these views in urls.py.
2012-07-18 14:55:12 -04:00
Bridger Maxwell
70e2f7c0d5
Merged with master. Moved a bunch of static template files to their own urls (without /t/template).
2012-07-16 15:32:22 -04:00
Bridger Maxwell
960c8619e5
Added a cache_if_anonymous decorator.
2012-07-16 13:40:17 -04:00
Bridger Maxwell
eb7ae3540c
Added a simple, specific cache for the static_template_pages.
2012-07-16 09:12:50 -04:00
Bridger Maxwell
cd2eacc675
Moved static template views to one folder. Removed the stub view functions from student and used static_template_views instead.
2012-07-13 17:42:23 -04:00
Galen Frechette
35c5de8128
cleans up home page header design, adds social sharing to header, adds tos, privacy policy, honor code, help and copyright pages, add liks to those pages in footer, finished contact page
2012-07-13 13:57:02 -04:00
Galen Frechette
8a5e3bf4d2
adds pressrelease page, breaks about content into seperate pages, imporvoves some visual elements of about and jobs pages
2012-07-13 13:56:14 -04:00
Calen Pennington
5ba03130aa
Moving LMS code into subdirectory
2012-06-06 14:09:01 -04:00