Skip to content

Commit 83fae25

Browse files
committed
Merge pull request #9 from pinax/dua
upgrade to latest Django, Pinax and django-user-accounts
2 parents 7f8c614 + 1191608 commit 83fae25

39 files changed

+75
-103
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

manage.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env python
2+
import os, sys
3+
4+
if __name__ == "__main__":
5+
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "symposion.settings")
6+
7+
from django.core.management import execute_from_command_line
8+
9+
execute_from_command_line(sys.argv)

symposion_project/requirements/base.txt renamed to requirements/base.txt

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,19 @@
77
--extra-index-url=http://dist.pinaxproject.com/alpha/
88
--extra-index-url=http://dist.pinaxproject.com/fresh-start/
99

10-
Django==1.3.1
11-
Pinax
12-
10+
Django==1.4
11+
pinax-theme-bootstrap==2.0.3
12+
metron==0.1 # 0.2.dev3
13+
pinax-utils==1.0b1.dev3
1314
django-debug-toolbar==0.9.1
14-
django-staticfiles==1.1.2
15-
django_compressor==1.0.1
16-
1715
django-mailer==0.2a1
18-
django-email-confirmation==0.2
1916
django-timezones==0.2
2017
pytz==2011n
2118
django-openid==0.3a1
2219
python-openid==2.2.5
23-
metron==0.1
20+
django_compressor==1.2a1
21+
22+
-e git+git://github.com/pinax/pinax-theme-bootstrap-account.git@70c0be0279d61bd2d0f949698f94b8f938918277#egg=pinax-theme-bootstrap-account
23+
-e git+git://github.com/pinax/django-user-accounts.git@3676d2c7ea0e9a5c3f8510ac8e6f8d58175e6b5f#egg=django-user-accounts
2424

25-
pinax-theme-bootstrap==2.0.3
2625
django-forms-bootstrap==2.0.3.post1
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

symposion_project/apps/conference/admin.py renamed to symposion/conference/admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from django.contrib import admin
22

3-
from conference.models import Conference, Section
3+
from symposion.conference.models import Conference, Section
44

55

66
admin.site.register(Conference, list_display=("title", "start_date", "end_date"))

symposion_project/settings.py renamed to symposion/settings.py

Lines changed: 18 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,8 @@
7777
]
7878

7979
STATICFILES_FINDERS = [
80-
"staticfiles.finders.FileSystemFinder",
81-
"staticfiles.finders.AppDirectoriesFinder",
82-
"staticfiles.finders.LegacyAppDirectoriesFinder",
80+
"django.contrib.staticfiles.finders.FileSystemFinder",
81+
"django.contrib.staticfiles.finders.AppDirectoriesFinder",
8382
"compressor.finders.CompressorFinder",
8483
]
8584

@@ -96,8 +95,8 @@
9695

9796
# List of callables that know how to import templates from various sources.
9897
TEMPLATE_LOADERS = [
99-
"django.template.loaders.filesystem.load_template_source",
100-
"django.template.loaders.app_directories.load_template_source",
98+
"django.template.loaders.filesystem.Loader",
99+
"django.template.loaders.app_directories.Loader",
101100
]
102101

103102
MIDDLEWARE_CLASSES = [
@@ -107,12 +106,10 @@
107106
"django.contrib.auth.middleware.AuthenticationMiddleware",
108107
"django_openid.consumer.SessionConsumer",
109108
"django.contrib.messages.middleware.MessageMiddleware",
110-
"pinax.apps.account.middleware.LocaleMiddleware",
111-
"pinax.middleware.security.HideSensistiveFieldsMiddleware",
112109
"debug_toolbar.middleware.DebugToolbarMiddleware",
113110
]
114111

115-
ROOT_URLCONF = "symposion_project.urls"
112+
ROOT_URLCONF = "symposion.urls"
116113

117114
TEMPLATE_DIRS = [
118115
os.path.join(PROJECT_ROOT, "templates"),
@@ -123,14 +120,12 @@
123120
"django.core.context_processors.debug",
124121
"django.core.context_processors.i18n",
125122
"django.core.context_processors.media",
123+
"django.core.context_processors.static",
124+
"django.core.context_processors.tz",
126125
"django.core.context_processors.request",
127126
"django.contrib.messages.context_processors.messages",
128-
129-
"staticfiles.context_processors.static",
130-
131-
"pinax.core.context_processors.pinax_settings",
132-
133-
"pinax.apps.account.context_processors.account",
127+
"pinax_utils.context_processors.settings",
128+
"account.context_processors.account",
134129
]
135130

136131
INSTALLED_APPS = [
@@ -141,33 +136,30 @@
141136
"django.contrib.sessions",
142137
"django.contrib.sites",
143138
"django.contrib.messages",
139+
"django.contrib.staticfiles",
144140
"django.contrib.humanize",
145141

146-
"pinax.templatetags",
147-
148142
# theme
143+
"pinax_theme_bootstrap_account",
149144
"pinax_theme_bootstrap",
150145
"django_forms_bootstrap",
151146

152147
# external
153-
"staticfiles",
154148
"compressor",
155149
"debug_toolbar",
156150
"mailer",
157151
"django_openid",
158152
"timezones",
159-
"emailconfirmation",
160153
"metron",
161154
"easy_thumbnails",
162155

163156
# Pinax
164-
"pinax.apps.account",
165-
"pinax.apps.signup_codes",
157+
"account",
166158

167159
# project
168-
"about",
169-
"sponsorship",
170-
"conference",
160+
"symposion.about",
161+
"symposion.sponsorship",
162+
"symposion.conference",
171163
]
172164

173165
FIXTURE_DIRS = [
@@ -185,9 +177,9 @@
185177
ACCOUNT_EMAIL_AUTHENTICATION = False
186178
ACCOUNT_UNIQUE_EMAIL = EMAIL_CONFIRMATION_UNIQUE_EMAIL = False
187179

188-
AUTHENTICATION_BACKENDS = [
189-
"pinax.apps.account.auth_backends.AuthenticationBackend",
190-
]
180+
# AUTHENTICATION_BACKENDS = [
181+
# "pinax.apps.account.auth_backends.AuthenticationBackend",
182+
# ]
191183

192184
LOGIN_URL = "/account/login/" # @@@ any way this can be a url name?
193185
LOGIN_REDIRECT_URLNAME = "what_next"

symposion_project/apps/sponsorship/admin.py renamed to symposion/sponsorship/admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from django.contrib import admin
22

3-
from sponsorship.models import SponsorLevel, Sponsor
3+
from symposion.sponsorship.models import SponsorLevel, Sponsor
44

55

66
admin.site.register(SponsorLevel)

symposion_project/apps/sponsorship/models.py renamed to symposion/sponsorship/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from django.db import models
44
from django.utils.translation import ugettext_lazy as _
55

6-
from conference.models import Conference
6+
from symposion.conference.models import Conference
77

88

99
class SponsorLevel(models.Model):

symposion_project/apps/sponsorship/templatetags/sponsorship_tags.py renamed to symposion/sponsorship/templatetags/sponsorship_tags.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from django import template
22

3-
from conference.models import current_conference
4-
from sponsorship.models import Sponsor, SponsorLevel
3+
from symposion.conference.models import current_conference
4+
from symposion.sponsorship.models import Sponsor, SponsorLevel
55

66

77
register = template.Library()
File renamed without changes.

symposion/templates/_footer.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{% load i18n %}
2+
<div class="legal">
3+
<a href="http://pinax.github.com/symposion/"><b>symposion</b></a>:
4+
a Pinax project sponsored by
5+
<a href="http://eldarion.com/">Eldarion</a>
6+
and the
7+
<a href="http://www.python.org/psf/">Python Software Foundation</a>.
8+
</div>

symposion_project/templates/homepage.html renamed to symposion/templates/homepage.html

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{% extends "banner_base.html" %}
22

33
{% load i18n %}
4-
{% load ifsetting_tag %}
54

65
{% block head_title %}{% trans "Welcome" %}{% endblock %}
76

@@ -33,12 +32,8 @@ <h2>About Account Project</h2>
3332
{% url what_next as what_next_url %}
3433
<p class="what_next">{% blocktrans %}Wondering <a href="{{ what_next_url }}" class="btn primary large">What Next</a>?{% endblocktrans %}</p>
3534
{% else %}
36-
{% url acct_login as login_url %}
37-
{% ifsetting ACCOUNT_OPEN_SIGNUP %}
38-
{% url acct_signup as signup_url %}
39-
<p>{% blocktrans %}You can <a href="{{ login_url }}" class="btn">Log In</a> or <a href="{{ signup_url }}" class="btn primary">Sign Up</a> to try out the site.{% endblocktrans %}</p>
40-
{% else %}
41-
<p>{% blocktrans %}You can <a href="{{ login_url }}" class="btn primary large">Log In</a> to try out the site.{% endblocktrans %}</p>
42-
{% endifsetting %}
35+
{% url account_login as login_url %}
36+
{% url account_signup as signup_url %}
37+
<p>{% blocktrans %}You can <a href="{{ login_url }}" class="btn">Log In</a> or <a href="{{ signup_url }}" class="btn primary">Sign Up</a> to try out the site.{% endblocktrans %}</p>
4338
{% endif %}
4439
{% endblock %}

symposion_project/templates/site_base.html renamed to symposion/templates/site_base.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
{% endblock %}
99

1010
{% block footer %}
11-
<div class="legal">
1211
{% include "_footer.html" %}
13-
</div>
1412
{% endblock %}
1513

1614
{% block extra_body_base %}

symposion/urls.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
from django.conf import settings
2+
from django.conf.urls.defaults import *
3+
from django.conf.urls.static import static
4+
5+
from django.views.generic.simple import direct_to_template
6+
7+
from django.contrib import admin
8+
admin.autodiscover()
9+
10+
# from pinax.apps.account.openid_consumer import PinaxConsumer
11+
12+
13+
urlpatterns = patterns("",
14+
url(r"^$", direct_to_template, {
15+
"template": "homepage.html",
16+
}, name="home"),
17+
url(r"^admin/", include(admin.site.urls)),
18+
url(r"^about/", include("symposion.about.urls")),
19+
url(r"^account/", include("account.urls")),
20+
# url(r"^openid/", include(PinaxConsumer().urls)),
21+
)
22+
23+
24+
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
File renamed without changes.

symposion_project/apps/sponsorship/templatetags/__init__.py

Whitespace-only changes.

symposion_project/manage.py

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

symposion_project/templates/_footer.html

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

symposion_project/urls.py

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

0 commit comments

Comments
 (0)