Skip to content

Commit ff4de4e

Browse files
renzonrenzon
authored andcommitted
Updated public links to DevPro Youtube and Pocast
part of #4776
1 parent 39d95b4 commit ff4de4e

File tree

7 files changed

+9
-108
lines changed

7 files changed

+9
-108
lines changed

pythonpro/core/templates/core/base.html

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
})(window, document, 'script', 'dataLayer', '{{GOOGLE_TAG_MANAGER_ID}}');</script>
2020
<!-- End Google Tag Manager -->
2121
<meta charset="UTF-8">
22-
<title>{% block title %}Dev Pro: Curso da linguagem de programação Python, Presencial Online, do Básico ao
22+
<title>{% block title %}Dev Pro: Comunidade de Programação, Presencial Online, do Básico ao
2323
Avançado!{% endblock %}</title>
2424

2525
<meta name="description" content="{% block description %}{% endblock %}"/>
@@ -76,27 +76,23 @@
7676
</div>
7777
</li>
7878
<li class="nav-item">
79-
<a class="nav-link" href="{% url 'modules:index' %}">Cursos</a>
79+
<a class="nav-link" href="https://plataforma.dev.pro.br">Curso</a>
8080
</li>
8181
<li class="nav-item">
8282
<a class="nav-link" href="{% url 'cohorts:webinars' %}">Webinários</a>
8383
</li>
8484

85-
{% else %}
86-
<li class="nav-item">
87-
<a class="nav-link" href="{% url 'modules:index' %}">Cursos</a>
88-
</li>
8985
{% endif %}
9086
{% if user.is_authenticated and DISCOURSE_BASE_URL %}
9187
<li class="nav-item">
9288
<a class="nav-link" href="{{ DISCOURSE_BASE_URL }}">Fórum</a>
9389
</li>
9490
{% endif %}
9591
<li class="nav-item">
96-
<a class="nav-link" href="{% url 'core:tech_talks' %}">Tech Talks</a>
92+
<a class="nav-link" href="https://www.youtube.com/canaldevpro" target="_blank">Youtube</a>
9793
</li>
9894
<li class="nav-item">
99-
<a class="nav-link" href="{% url 'core:podcast' %}">Podcast</a>
95+
<a class="nav-link" href="https://open.spotify.com/show/23i8gD31xHrmPllTm0d3re" target="_blank">Podcast</a>
10096
</li>
10197
</ul>
10298
{% if user.is_authenticated %}

pythonpro/core/templates/core/podcast.html

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

pythonpro/core/templates/core/tech_talks.html

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

pythonpro/core/tests/test_view_podcast.py

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

pythonpro/core/tests/test_view_tech_talks.py

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

pythonpro/core/urls.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,15 @@
22
from django.views.generic import TemplateView
33
from django_sitemaps import robots_txt
44

5-
from . import views
65
from pythonpro.checkout.views import waiting_list_ty
6+
from . import views
77

88
app_name = 'core'
99
urlpatterns = [
1010
path('', views.index, name='index'),
1111
path('sitemap.xml', views.sitemap, name='sitemap'),
1212
path('robots.txt', robots_txt(timeout=86400), name='robots'),
13-
path('tech-talks', views.teck_talks, name='tech_talks'),
1413
path('linktree', views.linktree, name='linktree'),
15-
path('podcast', views.podcast, name='podcast'),
1614
path('curso-de-python-gratis', views.lead_landing_with_no_registration, name='lead_landing_with_no_registration'),
1715
path('curso-de-python-gratis-lite', views.lead_landing, name='lead_landing'),
1816
path('curso-de-python-gratis-no', views.lead_landing_with_no_offer, name='lead_landing_with_no_offer'),

pythonpro/core/views.py

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,23 @@
33
from django.conf import settings
44
from django.contrib.auth import login, update_session_auth_hash
55
from django.contrib.auth.decorators import login_required
6-
from django.views.decorators.csrf import csrf_exempt
76
from django.contrib.auth.forms import SetPasswordForm
87
from django.contrib.auth.views import PasswordChangeView, PasswordResetView
8+
from django.core.exceptions import PermissionDenied
99
from django.http import HttpResponseRedirect, HttpResponse
1010
from django.shortcuts import redirect, render
1111
from django.urls import reverse, reverse_lazy
12+
from django.views.decorators.csrf import csrf_exempt
13+
from django.views.decorators.http import require_http_methods
1214
from django.views.generic import UpdateView
1315
from django_sitemaps import Sitemap
1416
from rolepermissions.checkers import has_role
15-
from django.views.decorators.http import require_http_methods
16-
from django.core.exceptions import PermissionDenied
1717

1818
from pythonpro.core import facade as core_facade
19-
from pythonpro.email_marketing import facade as email_marketing_facade
2019
from pythonpro.core.forms import LeadForm, UserEmailForm, UserSignupForm, PythonProResetForm
2120
from pythonpro.core.models import User
2221
from pythonpro.domain import user_domain
22+
from pythonpro.email_marketing import facade as email_marketing_facade
2323
from pythonpro.memberkit.facade import create_new_subscription_without_payment, activate
2424

2525

@@ -51,14 +51,6 @@ def lead_change_password(request):
5151
})
5252

5353

54-
def teck_talks(request):
55-
return render(request, 'core/tech_talks.html', {})
56-
57-
58-
def podcast(request):
59-
return render(request, 'core/podcast.html', {})
60-
61-
6254
@login_required
6355
def profile(request):
6456
return render(request, 'core/profile_detail.html', {})
@@ -71,8 +63,6 @@ def sitemap(request):
7163
'core:index',
7264
'core:lead_landing',
7365
'checkout:bootcamp_lp',
74-
'core:podcast',
75-
'core:tech_talks',
7666
'modules:index',
7767
'launch:landing_page',
7868
'launch:cpl1',

0 commit comments

Comments
 (0)