Skip to content

Commit fe9374e

Browse files
committed
Added "coming soon" page, moved in-progress design to /demo URL
1 parent 0bfb401 commit fe9374e

File tree

3 files changed

+28
-1
lines changed

3 files changed

+28
-1
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta name="description" content="PythonKC groups website. For all things Python in Kansas City." />
6+
<meta name="keywords" content="python, kansas city" />
7+
<meta name="viewport" content="initial-scale=1.0" />
8+
<title>PythonKC || For all things Python in Kansas City.</title>
9+
<link rel="stylesheet" href="{{ STATIC_URL }}screen.css">
10+
<!--[if lt IE 9]>
11+
<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
12+
<![endif]-->
13+
</head>
14+
<body>
15+
<header role="banner">
16+
</header>
17+
<h1 style="text-align: center">Coming soon!</h2>
18+
</body>
19+
</html>

pythonkc_site/urls.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,18 @@
22
from django.conf.urls.defaults import patterns
33
from django.conf.urls.defaults import url
44
from django.views.decorators.cache import cache_page
5+
from pythonkc_site.views import PythonKCComingSoon
56
from pythonkc_site.views import PythonKCHome
67

78
# Uncomment the next two lines to enable the admin:
89
# from django.contrib import admin
910
# admin.autodiscover()
1011

1112
urlpatterns = patterns('',
12-
url(r'^/?$', cache_page(60 * 5)(PythonKCHome.as_view())),
13+
14+
url(r'^/?$', cache_page(60*60*24)(PythonKCComingSoon.as_view())),
15+
url(r'^demo/?$', cache_page(60 * 5)(PythonKCHome.as_view())),
16+
1317
# Examples:
1418
# url(r'^$', 'pythonkc_site.views.home', name='home'),
1519
# url(r'^pythonkc_site/', include('pythonkc_site.foo.urls')),

pythonkc_site/views.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,7 @@ def get_past_events():
3535
'next_event': get_next_event(),
3636
'past_events': get_past_events()
3737
}
38+
39+
40+
class PythonKCComingSoon(TemplateView):
41+
template_name = 'coming_soon.html'

0 commit comments

Comments
 (0)