Skip to content

Commit e8dd000

Browse files
committed
발표제안하기를 통해 CFP 폼으로 바로 이동하도록 수정
* 폼에 제안서 작성 전, 가이드라인을 읽어주세요 라는 내용 추가 * 메뉴는 contribution에, CFP 폼은 program 하위에 위치하기 때문에, CFP 폼 페이지로 리다이렉트 하는 페이지로 이동시키는 간단한 뷰 추가 * (현재 context_processor는 최상위 키 값을 주소로 사용하도록 되어있음)
1 parent 7b91f73 commit e8dd000

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

pyconkr/templates/pyconkr/proposal_form.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
{% endblock %}
99

1010
{% block content %}
11+
<div class="alert alert-warning" role="alert">
12+
📙제안서를 작성하시기 전에
13+
<a href="https://pycon.kr/2020/contribution/cfp/guide/" target="_blank">발표안 작성 가이드</a>를 꼭 읽어주세요.
14+
</div>
1115

1216
{% crispy form %}
1317

pyconkr/urls.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from .views import index, robots
1212
from .views import login, logout
1313
from .views import PatronList
14+
from .views import redirect_to_cfp_form
1415

1516
from program.views import ProposalCreate
1617

@@ -44,9 +45,8 @@
4445
# for rosetta
4546
re_path(r'^2020/rosetta/', include('rosetta.urls')),
4647

47-
# # cfp (contribution의 하위 url에 두기위해 별도로 기술)
48-
# re_path(r'^2020/contribution/cfp/propose/$',
49-
# login_required(ProposalCreate.as_view()), name='propose'),
48+
# cfp (contribution의 하위 url에 두기위해 별도로 기술)
49+
re_path(r'^2020/contribution/cfp/$', login_required(redirect_to_cfp_form)),
5050

5151
# for flatpages
5252
re_path(r'^(?P<url>.*/)$', views.flatpage, name='flatpage'),

pyconkr/views.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,7 @@ def error_page_404(request, exception):
7979
def error_page_500(request):
8080
# return HttpResponse(request, 'test')
8181
return render(request, 'base.html', {'title': '현재 작업 중입니다.', 'base_content': '잠시 후 다시 시도해주세요.'})
82+
83+
84+
def redirect_to_cfp_form(request):
85+
return redirect('propose')

0 commit comments

Comments
 (0)