Skip to content

Commit a19448b

Browse files
renzonrenzon
authored andcommitted
Removed old membership landing page
part of #2612
1 parent 705f024 commit a19448b

18 files changed

Lines changed: 18 additions & 1009 deletions

File tree

‎contrib/env-sample‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ CHAVE_PAGARME_CRIPTOGRAFIA_PUBLICA=ak_test_6yd4kbaJrWzdn61m4De5yzn7jZuTt9
1212
CHAVE_PAGARME_API_PRIVADA=
1313

1414

15-
# Control subscriptions ads and payment.
16-
SUBSCRIPTIONS_OPEN=False
17-
PAGSEGURO_PAYMENT_PLAN=YOUR PAYMENT PLAN ON pagseguro
18-
1915
# Amazon S3 configuration
2016
DJANGO_AWS_ACCESS_KEY_ID=
2117
DJANGO_AWS_SECRET_ACCESS_KEY=

‎pythonpro/checkout/templates/checkout/data_scientist_email.txt‎

Lines changed: 0 additions & 12 deletions
This file was deleted.

‎pythonpro/checkout/templates/checkout/pytools_lp.html‎

Lines changed: 0 additions & 948 deletions
This file was deleted.

‎pythonpro/checkout/templates/checkout/webdev_email.txt‎

Lines changed: 0 additions & 10 deletions
This file was deleted.

‎pythonpro/checkout/views.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
from django.contrib.auth.decorators import login_required
55
from django.shortcuts import render, redirect
66
from django.urls import reverse
7+
from django.utils import timezone
78
from django.utils.http import urlencode
89
from django_pagarme import facade
9-
from django.utils import timezone
1010

1111
from pythonpro.checkout import facade as checkout_facade
1212
from pythonpro.checkout import forms as checkout_forms

‎pythonpro/cohorts/tests/test_live_class_detail.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,4 @@ def resp_not_level_three(client_with_not_level_three_roles, live_class: LiveClas
8181

8282
def test_live_class_landing_for_not_level_three_users(cohort, resp_not_level_three):
8383
assert resp_not_level_three.status_code == 302
84-
assert resp_not_level_three.url == reverse('member_landing_page')
84+
assert resp_not_level_three.url == reverse('checkout:membership_lp')

‎pythonpro/cohorts/tests/test_webinar_detail.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@ def resp_not_level_three(client_with_not_level_three_roles, webinar: Webinar, lo
6262

6363
def test_webinar_landing_for_client(cohort, resp_not_level_three):
6464
assert resp_not_level_three.status_code == 302
65-
assert resp_not_level_three.url == reverse('member_landing_page')
65+
assert resp_not_level_three.url == reverse('checkout:membership_lp')

‎pythonpro/cohorts/views.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ def webinars(request):
2020
@login_required
2121
def webinar(request, slug):
2222
if not has_permission(request.user, access_cohorts):
23-
return redirect(reverse('member_landing_page'), permanent=False)
23+
return redirect(reverse('checkout:membership_lp'), permanent=False)
2424
return render(request, 'cohorts/webinar_detail.html', {'webinar': facade.find_webinar(slug=slug)})
2525

2626

2727
@login_required
2828
def live_class(request, pk):
2929
if not has_permission(request.user, access_cohorts):
30-
return redirect(reverse('member_landing_page'), permanent=False)
30+
return redirect(reverse('checkout:membership_lp'), permanent=False)
3131
return render(request, 'cohorts/live_class_detail.html', {'live_class': facade.find_live_class(pk=pk)})

‎pythonpro/core/templates/core/index.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ <h2 class="pythonpro-subtitle mb-4 mb-md-5">Curso Presencial Online Completo<br/
3131
{% if SUBSCRIPTIONS_OPEN %}
3232
<h3 class="mb-3">Inscrições Abertas!</h3>
3333
<p>Aulas da turma começam em novembro. Garanta sua matrícula, vagas limitadas!</p>
34-
<a class="btn btn-warning p-4 font-weight-bold" href="{% url 'member_landing_page' %}" role="button">SIM! Quero me matricular &raquo;</a>
34+
<a class="btn btn-warning p-4 font-weight-bold" href="{% url 'checkout:membership_lp' %}" role="button">SIM! Quero me matricular &raquo;</a>
3535

3636
{% else %}
3737
<h3 class="mb-3">Curso Python Birds Grátis</h3>

‎pythonpro/core/tests/test_view_home.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def test_payment_link_is_present(home_resp_open_subscriptions):
7171
"""
7272
Assert Payment link is present on home page when subscriptions are open
7373
"""
74-
dj_assert_contains(home_resp_open_subscriptions, reverse('member_landing_page'))
74+
dj_assert_contains(home_resp_open_subscriptions, reverse('checkout:membership_lp'))
7575

7676

7777
@pytest.fixture
@@ -84,4 +84,4 @@ def test_payment_link_is_not_present(home_resp_closed_subscriptions):
8484
"""
8585
Assert Payment link is not present on home page when subscriptions are closed
8686
"""
87-
dj_assert_not_contains(home_resp_closed_subscriptions, reverse('member_landing_page'))
87+
dj_assert_not_contains(home_resp_closed_subscriptions, reverse('checkout:membership_lp'))

0 commit comments

Comments
 (0)