diff --git a/fixtures/sitetree.json b/fixtures/sitetree.json index 5671dcf6efba4ac9ba3e7b043190cb976f26813e..4b128d68dc6cfc7ee0c33be497b282aa9c6a79bd 100644 --- a/fixtures/sitetree.json +++ b/fixtures/sitetree.json @@ -27,7 +27,7 @@ "access_restricted": false, "access_perm_type": 1, "parent": null, - "sort_order": 2, + "sort_order": 7, "access_permissions": [] } }, @@ -51,7 +51,7 @@ "access_restricted": false, "access_perm_type": 1, "parent": null, - "sort_order": 8, + "sort_order": 24, "access_permissions": [] } }, @@ -83,9 +83,9 @@ "model": "sitetree.treeitem", "pk": 8, "fields": { - "title": "Safety", + "title": "Attend", "hint": "", - "url": "/code-of-conduct", + "url": "/attend", "urlaspattern": false, "tree": 1, "hidden": false, @@ -99,7 +99,7 @@ "access_restricted": false, "access_perm_type": 1, "parent": null, - "sort_order": 9, + "sort_order": 8, "access_permissions": [] } }, @@ -123,7 +123,7 @@ "access_restricted": false, "access_perm_type": 1, "parent": null, - "sort_order": 24, + "sort_order": 25, "access_permissions": [] } }, @@ -171,7 +171,7 @@ "access_restricted": false, "access_perm_type": 1, "parent": 1, - "sort_order": 12, + "sort_order": 13, "access_permissions": [] } }, @@ -195,55 +195,7 @@ "access_restricted": false, "access_perm_type": 1, "parent": 1, - "sort_order": 13, - "access_permissions": [] - } -}, -{ - "model": "sitetree.treeitem", - "pk": 14, - "fields": { - "title": "Reporting an Incident", - "hint": "", - "url": "/code-of-conduct/harassment-incidents", - "urlaspattern": false, - "tree": 1, - "hidden": false, - "alias": null, - "description": "", - "inmenu": true, - "inbreadcrumbs": true, - "insitetree": true, - "access_loggedin": false, - "access_guest": false, - "access_restricted": false, - "access_perm_type": 1, - "parent": 8, - "sort_order": 15, - "access_permissions": [] - } -}, -{ - "model": "sitetree.treeitem", - "pk": 15, - "fields": { - "title": "Staff Procedures", - "hint": "", - "url": "/code-of-conduct/harassment-staff-procedures", - "urlaspattern": false, - "tree": 1, - "hidden": false, - "alias": null, - "description": "", - "inmenu": true, - "inbreadcrumbs": true, - "insitetree": true, - "access_loggedin": false, - "access_guest": false, - "access_restricted": false, - "access_perm_type": 1, - "parent": 8, - "sort_order": 17, + "sort_order": 33, "access_permissions": [] } }, @@ -267,7 +219,7 @@ "access_restricted": false, "access_perm_type": 1, "parent": 8, - "sort_order": 14, + "sort_order": 37, "access_permissions": [] } }, @@ -328,7 +280,7 @@ "url": "/program", "urlaspattern": false, "tree": 1, - "hidden": true, + "hidden": false, "alias": null, "description": "", "inmenu": true, @@ -339,7 +291,7 @@ "access_restricted": false, "access_perm_type": 1, "parent": null, - "sort_order": 7, + "sort_order": 9, "access_permissions": [] } }, @@ -349,8 +301,8 @@ "fields": { "title": "Log In", "hint": "", - "url": "nbpy_login", - "urlaspattern": true, + "url": "/account/login/", + "urlaspattern": false, "tree": 1, "hidden": false, "alias": null, @@ -363,7 +315,7 @@ "access_restricted": false, "access_perm_type": 1, "parent": null, - "sort_order": 26, + "sort_order": 29, "access_permissions": [] } }, @@ -387,7 +339,7 @@ "access_restricted": false, "access_perm_type": 1, "parent": null, - "sort_order": 29, + "sort_order": 30, "access_permissions": [] } }, @@ -459,7 +411,199 @@ "access_restricted": false, "access_perm_type": 1, "parent": null, - "sort_order": 25, + "sort_order": 26, + "access_permissions": [] + } +}, +{ + "model": "sitetree.treeitem", + "pk": 30, + "fields": { + "title": "North Bay Python", + "hint": "", + "url": "/", + "urlaspattern": false, + "tree": 1, + "hidden": true, + "alias": null, + "description": "", + "inmenu": true, + "inbreadcrumbs": true, + "insitetree": true, + "access_loggedin": false, + "access_guest": false, + "access_restricted": false, + "access_perm_type": 1, + "parent": null, + "sort_order": 2, + "access_permissions": [] + } +}, +{ + "model": "sitetree.treeitem", + "pk": 31, + "fields": { + "title": "Make a Donation", + "hint": "", + "url": "/donate", + "urlaspattern": false, + "tree": 1, + "hidden": false, + "alias": null, + "description": "", + "inmenu": true, + "inbreadcrumbs": true, + "insitetree": true, + "access_loggedin": false, + "access_guest": false, + "access_restricted": false, + "access_perm_type": 1, + "parent": 3, + "sort_order": 31, + "access_permissions": [] + } +}, +{ + "model": "sitetree.treeitem", + "pk": 32, + "fields": { + "title": "Events", + "hint": "", + "url": "/program/events", + "urlaspattern": false, + "tree": 1, + "hidden": false, + "alias": null, + "description": "", + "inmenu": true, + "inbreadcrumbs": true, + "insitetree": true, + "access_loggedin": false, + "access_guest": false, + "access_restricted": false, + "access_perm_type": 1, + "parent": 24, + "sort_order": 32, + "access_permissions": [] + } +}, +{ + "model": "sitetree.treeitem", + "pk": 33, + "fields": { + "title": "Petaluma", + "hint": "", + "url": "/about/petaluma", + "urlaspattern": false, + "tree": 1, + "hidden": false, + "alias": null, + "description": "", + "inmenu": true, + "inbreadcrumbs": true, + "insitetree": true, + "access_loggedin": false, + "access_guest": false, + "access_restricted": false, + "access_perm_type": 1, + "parent": 1, + "sort_order": 12, + "access_permissions": [] + } +}, +{ + "model": "sitetree.treeitem", + "pk": 34, + "fields": { + "title": "Buy a Ticket", + "hint": "", + "url": "/attend", + "urlaspattern": false, + "tree": 1, + "hidden": false, + "alias": null, + "description": "", + "inmenu": true, + "inbreadcrumbs": true, + "insitetree": true, + "access_loggedin": false, + "access_guest": false, + "access_restricted": false, + "access_perm_type": 1, + "parent": 8, + "sort_order": 14, + "access_permissions": [] + } +}, +{ + "model": "sitetree.treeitem", + "pk": 35, + "fields": { + "title": "How to Pitch Your Manager", + "hint": "", + "url": "/attend/business-cases", + "urlaspattern": false, + "tree": 1, + "hidden": false, + "alias": null, + "description": "", + "inmenu": true, + "inbreadcrumbs": true, + "insitetree": true, + "access_loggedin": false, + "access_guest": false, + "access_restricted": false, + "access_perm_type": 1, + "parent": 8, + "sort_order": 15, + "access_permissions": [] + } +}, +{ + "model": "sitetree.treeitem", + "pk": 36, + "fields": { + "title": "How to Get Here", + "hint": "", + "url": "/attend/travel", + "urlaspattern": false, + "tree": 1, + "hidden": false, + "alias": null, + "description": "", + "inmenu": true, + "inbreadcrumbs": true, + "insitetree": true, + "access_loggedin": false, + "access_guest": false, + "access_restricted": false, + "access_perm_type": 1, + "parent": 8, + "sort_order": 35, + "access_permissions": [] + } +}, +{ + "model": "sitetree.treeitem", + "pk": 37, + "fields": { + "title": "Where to Stay", + "hint": "", + "url": "/attend/hotels", + "urlaspattern": false, + "tree": 1, + "hidden": false, + "alias": null, + "description": "", + "inmenu": true, + "inbreadcrumbs": true, + "insitetree": true, + "access_loggedin": false, + "access_guest": false, + "access_restricted": false, + "access_perm_type": 1, + "parent": 8, + "sort_order": 36, "access_permissions": [] } } diff --git a/pinaxcon/registrasion/admin.py b/pinaxcon/registrasion/admin.py index 1229ed9b71e38898bd3d8a09d5a72cc6d75d8151..831b3e78664801abbec3b75b5b236657ba1df0e9 100644 --- a/pinaxcon/registrasion/admin.py +++ b/pinaxcon/registrasion/admin.py @@ -7,7 +7,3 @@ from django.utils.translation import ugettext_lazy as _ class UserProfileAdmin(admin.ModelAdmin): model = models.AttendeeProfile list_display = ("name", "company", "name_per_invoice") - -@admin.register(models.DynamicValues) -class DynamicValuesAdmin(admin.ModelAdmin): - pass diff --git a/pinaxcon/registrasion/management/__init__.py b/pinaxcon/registrasion/management/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/pinaxcon/registrasion/management/commands/__init__.py b/pinaxcon/registrasion/management/commands/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/pinaxcon/registrasion/management/commands/populate_inventory.py b/pinaxcon/registrasion/management/commands/populate_inventory.py new file mode 100644 index 0000000000000000000000000000000000000000..9f58cf6e896a7de994ef9ad9ddd02a10062239e7 --- /dev/null +++ b/pinaxcon/registrasion/management/commands/populate_inventory.py @@ -0,0 +1,417 @@ +from collections import namedtuple +from datetime import datetime +from datetime import timedelta +from decimal import Decimal +from django.contrib.auth.models import Group +from django.core.exceptions import ObjectDoesNotExist +from django.core.management.base import BaseCommand, CommandError + +from registrasion.models import inventory as inv +from registrasion.models import conditions as cond +from symposion import proposals + +class Command(BaseCommand): + help = 'Populates the inventory with the NBPy2017 inventory model' + + def add_arguments(self, parser): + pass + + def handle(self, *args, **options): + + kinds = [] + for i in ("talk", ): + kinds.append(proposals.models.ProposalKind.objects.get(name=i)) + self.main_conference_proposals = kinds + + self.populate_groups() + self.populate_inventory() + self.populate_restrictions() + self.populate_discounts() + + def populate_groups(self): + self.group_team = self.find_or_make( + Group, + ("name", ), + name="Conference organisers", + ) + self.group_volunteers = self.find_or_make( + Group, + ("name", ), + name="Conference volunteers", + ) + self.group_unpublish = self.find_or_make( + Group, + ("name", ), + name="Can see unpublished products", + ) + + def populate_inventory(self): + # Categories + + self.ticket = self.find_or_make( + inv.Category, + ("name",), + name="Ticket", + description="Each type of ticket has different included products. " + "For details of what products are included, see our " + "ticket sales page.", + required = True, + render_type=inv.Category.RENDER_TYPE_RADIO, + limit_per_user=1, + order=1, + ) + self.t_shirt = self.find_or_make( + inv.Category, + ("name",), + name="T-Shirt", + description="Commemorative conference t-shirts, featuring secret " + "North Bay Python 2017 artwork. Details of sizing and " + "manufacturer are on our " + "t-shirts page", + required = False, + render_type=inv.Category.RENDER_TYPE_ITEM_QUANTITY, + order=40, + ) + self.extras = self.find_or_make( + inv.Category, + ("name",), + name="Extras", + description="Other items that can improve your conference " + "experience.", + required = False, + render_type=inv.Category.RENDER_TYPE_QUANTITY, + order=60, + ) + + # Tickets + + self.ticket_ind_sponsor = self.find_or_make( + inv.Product, + ("name", "category",), + category=self.ticket, + name="Individual Sponsor", + price=Decimal("500.00"), + reservation_duration=hours(24), + order=1, + ) + self.ticket_corporate = self.find_or_make( + inv.Product, + ("name", "category",), + category=self.ticket, + name="Corporate", + price=Decimal("200.00"), + reservation_duration=hours(24), + order=10, + ) + self.ticket_supporter = self.find_or_make( + inv.Product, + ("name", "category",), + category=self.ticket, + name="Individual Supporter", + price=Decimal("100.00"), + reservation_duration=hours(24), + order=20, + ) + self.ticket_unaffiliated = self.find_or_make( + inv.Product, + ("name", "category",), + category=self.ticket, + name="Unaffiliated Individual", + price=Decimal("50.00"), + reservation_duration=hours(24), + order=30, + ) + self.ticket_speaker = self.find_or_make( + inv.Product, + ("name", "category",), + category=self.ticket, + name="Speaker", + price=Decimal("00.00"), + reservation_duration=hours(24), + order=50, + ) + self.ticket_media = self.find_or_make( + inv.Product, + ("name", "category",), + category=self.ticket, + name="Media", + price=Decimal("00.00"), + reservation_duration=hours(24), + order=60, + ) + self.ticket_sponsor = self.find_or_make( + inv.Product, + ("name", "category",), + category=self.ticket, + name="Sponsor", + price=Decimal("00.00"), + reservation_duration=hours(24), + order=70, + ) + self.ticket_team = self.find_or_make( + inv.Product, + ("name", "category",), + category=self.ticket, + name="Conference Organiser", + price=Decimal("00.00"), + reservation_duration=hours(24), + order=80, + ) + self.ticket_volunteer = self.find_or_make( + inv.Product, + ("name", "category",), + category=self.ticket, + name="Conference Volunteer", + price=Decimal("00.00"), + reservation_duration=hours(24), + order=90, + ) + + # Shirts + ShirtGroup = namedtuple("ShirtGroup", ("prefix", "sizes")) + shirt_names = { + "mens": ShirtGroup( + "Men's/Straight Cut Size", + ("S", "M", "L", "XL", "2XL", "3XL", "5XL"), + ), + "womens_classic": ShirtGroup( + "Women's Relaxed Fit", + ("XS", "S", "M", "L", "XL", "2XL", "3XL"), + ), + "womens_semi": ShirtGroup( + "Women's Semi-Fitted", + ("S", "M", "L", "XL", "2XL", "3XL"), + ), + } + + self.shirts = {} + order = 0 + for name, group in shirt_names.items(): + self.shirts[name] = {} + prefix = group.prefix + for size in group.sizes: + product_name = "%s %s" % (prefix, size) + order += 10 + self.shirts[name][size] = self.find_or_make( + inv.Product, + ("name", "category",), + name=product_name, + category=self.t_shirt, + price=Decimal("30.00"), + reservation_duration=hours(1), + order=order, + ) + + def populate_restrictions(self): + + # Hide the products that will eventually need a voucher + hide_voucher_products = self.find_or_make( + cond.GroupMemberFlag, + ("description", ), + description="Can see hidden products", + condition=cond.FlagBase.ENABLE_IF_TRUE, + ) + hide_voucher_products.group.set([self.group_unpublish]) + hide_voucher_products.products.set([ + self.ticket_media, + self.ticket_sponsor, + ]) + + # Set limits. + public_ticket_cap = self.find_or_make( + cond.TimeOrStockLimitFlag, + ("description", ), + description="Public ticket cap", + condition=cond.FlagBase.DISABLE_IF_FALSE, + limit=350, + ) + public_ticket_cap.products.set([ + self.ticket_ind_sponsor, + self.ticket_corporate, + self.ticket_supporter, + self.ticket_unaffiliated, + ]) + + non_public_ticket_cap = self.find_or_make( + cond.TimeOrStockLimitFlag, + ("description", ), + description="Non-public ticket cap", + condition=cond.FlagBase.DISABLE_IF_FALSE, + limit=200, + ) + non_public_ticket_cap.products.set([ + self.ticket_speaker, + self.ticket_sponsor, + self.ticket_media, + self.ticket_team, + self.ticket_volunteer, + ]) + + # Volunteer tickets are for volunteers only + volunteers = self.find_or_make( + cond.GroupMemberFlag, + ("description", ), + description="Volunteer tickets", + condition=cond.FlagBase.ENABLE_IF_TRUE, + ) + volunteers.group.set([self.group_volunteers]) + volunteers.products.set([ + self.ticket_volunteer, + ]) + + # Team tickets are for team members only + team = self.find_or_make( + cond.GroupMemberFlag, + ("description", ), + description="Team tickets", + condition=cond.FlagBase.ENABLE_IF_TRUE, + ) + team.group.set([self.group_team]) + team.products.set([ + self.ticket_team, + ]) + + # Speaker tickets are for primary speakers only + speaker_tickets = self.find_or_make( + cond.SpeakerFlag, + ("description", ), + description="Speaker tickets", + condition=cond.FlagBase.ENABLE_IF_TRUE, + is_presenter=True, + is_copresenter=False, + ) + speaker_tickets.proposal_kind.set(self.main_conference_proposals) + speaker_tickets.products.set([self.ticket_speaker, ]) + + def populate_discounts(self): + + def add_early_birds(discount): + self.find_or_make( + cond.DiscountForProduct, + ("discount", "product"), + discount=discount, + product=self.ticket_ind_sponsor, + price=Decimal("50.00"), + quantity=1, # Per user + ) + self.find_or_make( + cond.DiscountForProduct, + ("discount", "product"), + discount=discount, + product=self.ticket_corporate, + price=Decimal("20.00"), + quantity=1, # Per user + ) + self.find_or_make( + cond.DiscountForProduct, + ("discount", "product"), + discount=discount, + product=self.ticket_supporter, + price=Decimal("20.00"), + quantity=1, # Per user + ) + self.find_or_make( + cond.DiscountForProduct, + ("discount", "product"), + discount=discount, + product=self.ticket_unaffiliated, + price=Decimal("25.00"), + quantity=1, # Per user + ) + + def free_category(parent_discount, category, quantity=1): + self.find_or_make( + cond.DiscountForCategory, + ("discount", "category",), + discount=parent_discount, + category=category, + percentage=Decimal("100.00"), + quantity=quantity, + ) + + # Early Bird Discount (general public) + early_bird = self.find_or_make( + cond.TimeOrStockLimitDiscount, + ("description", ), + description="Early Bird", + end_time=datetime(year=2017, month=10, day=20), + limit=100, # Across all users + ) + add_early_birds(early_bird) + + # Early bird rates for speakers + speaker_ticket_discounts = self.find_or_make( + cond.SpeakerDiscount, + ("description", ), + description="Speaker Ticket Discount", + is_presenter=True, + is_copresenter=True, + ) + speaker_ticket_discounts.proposal_kind.set( + self.main_conference_proposals, + ) + add_early_birds(speaker_ticket_discounts) + + # Professional-Like ticket inclusions + ticket_prolike_inclusions = self.find_or_make( + cond.IncludedProductDiscount, + ("description", ), + description="Complimentary for ticket holder (Supporter-level and above)", + ) + ticket_prolike_inclusions.enabling_products.set([ + self.ticket_ind_sponsor, + self.ticket_corporate, + self.ticket_supporter, + self.ticket_sponsor, + self.ticket_speaker, + ]) + free_category(ticket_prolike_inclusions, self.t_shirt) + + # Team & volunteer ticket inclusions + ticket_staff_inclusions = self.find_or_make( + cond.IncludedProductDiscount, + ("description", ), + description="Complimentary for ticket holder (staff/volunteer)", + ) + ticket_staff_inclusions.enabling_products.set([ + self.ticket_team, + self.ticket_volunteer, + ]) + + # Team & volunteer t-shirts, regardless of ticket type + staff_t_shirts = self.find_or_make( + cond.GroupMemberDiscount, + ("description", ), + description="T-shirts complimentary for staff and volunteers", + ) + staff_t_shirts.group.set([ + self.group_team, + self.group_volunteers, + ]) + free_category(staff_t_shirts, self.t_shirt, quantity=2) + + def find_or_make(self, model, search_keys, **k): + ''' Either makes or finds an object of type _model_, with the given + kwargs. + + Arguments: + search_keys ([str, ...]): A sequence of keys that are used to search + for an existing version in the database. The remaining arguments are + only used when creating a new object. + ''' + + try: + keys = dict((key, k[key]) for key in search_keys) + a = model.objects.get(**keys) + self.stdout.write("FOUND : " + str(keys)) + model.objects.filter(id=a.id).update(**k) + a.refresh_from_db() + return a + except ObjectDoesNotExist: + a = model.objects.create(**k) + self.stdout.write("CREATED: " + str(k)) + return a + + +def hours(n): + return timedelta(hours=n) diff --git a/pinaxcon/registrasion/migrations/0003_auto_20171002_1719.py b/pinaxcon/registrasion/migrations/0003_auto_20171002_1719.py new file mode 100644 index 0000000000000000000000000000000000000000..84280d652f4efdb03fbc530ff620deaa2ccd5b25 --- /dev/null +++ b/pinaxcon/registrasion/migrations/0003_auto_20171002_1719.py @@ -0,0 +1,103 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.5 on 2017-10-03 00:19 +from __future__ import unicode_literals + +from django.db import migrations, models +import django_countries.fields + + +class Migration(migrations.Migration): + + dependencies = [ + ('pinaxcon_registrasion', '0002_auto_20161005_1823'), + ] + + operations = [ + migrations.RemoveField( + model_name='attendeeprofile', + name='db_defined_values', + ), + migrations.RemoveField( + model_name='attendeeprofile', + name='dietary_requirements', + ), + migrations.RemoveField( + model_name='attendeeprofile', + name='free_text_1', + ), + migrations.RemoveField( + model_name='attendeeprofile', + name='free_text_2', + ), + migrations.RemoveField( + model_name='attendeeprofile', + name='of_legal_age', + ), + migrations.AddField( + model_name='attendeeprofile', + name='address_line_1', + field=models.CharField(blank=True, help_text=b'This address, if provided, will appear on your receipt.', max_length=1024, verbose_name=b'Address line 1'), + ), + migrations.AddField( + model_name='attendeeprofile', + name='address_line_2', + field=models.CharField(blank=True, max_length=1024, verbose_name=b'Address line 2'), + ), + migrations.AddField( + model_name='attendeeprofile', + name='address_postcode', + field=models.CharField(blank=True, max_length=1024, verbose_name=b'Postal/Zip code'), + ), + migrations.AddField( + model_name='attendeeprofile', + name='address_suburb', + field=models.CharField(blank=True, max_length=1024, verbose_name=b'City/Town/Suburb'), + ), + migrations.AddField( + model_name='attendeeprofile', + name='country', + field=django_countries.fields.CountryField(default=b'US', max_length=2), + ), + migrations.AddField( + model_name='attendeeprofile', + name='dietary_restrictions', + field=models.CharField(blank=True, max_length=256, verbose_name=b'Food allergies, intolerances, or dietary restrictions'), + ), + migrations.AddField( + model_name='attendeeprofile', + name='newsletter', + field=models.BooleanField(default=False, help_text=b'Select to be subscribed to the low-volume North Bay Python announcements newsletter', verbose_name=b'Subscribe to North Bay Python newsletter'), + preserve_default=False, + ), + migrations.AddField( + model_name='attendeeprofile', + name='state', + field=models.CharField(blank=True, max_length=256, verbose_name=b'State/Territory/Province'), + ), + migrations.AlterField( + model_name='attendeeprofile', + name='accessibility_requirements', + field=models.CharField(blank=True, max_length=256, verbose_name=b'Accessibility-related requirements'), + ), + migrations.AlterField( + model_name='attendeeprofile', + name='company', + field=models.CharField(blank=True, help_text=b"The name of your company, as you'd like it on your badge and receipt", max_length=64), + ), + migrations.AlterField( + model_name='attendeeprofile', + name='gender', + field=models.CharField(blank=True, help_text=b'Gender data will only be used for demographic purposes.', max_length=64), + ), + migrations.AlterField( + model_name='attendeeprofile', + name='name_per_invoice', + field=models.CharField(blank=True, help_text=b"If your legal name is different to the name on your badge, fill this in, and we'll put it on your receipt. Otherwise, leave it blank.", max_length=256, verbose_name=b'Your legal name (for your receipt)'), + ), + migrations.DeleteModel( + name='DemoPayment', + ), + migrations.DeleteModel( + name='DynamicValues', + ), + ] diff --git a/pinaxcon/registrasion/migrations/0004_attendeeprofile_agreement.py b/pinaxcon/registrasion/migrations/0004_attendeeprofile_agreement.py new file mode 100644 index 0000000000000000000000000000000000000000..10a4512a8868321f361de9c06e7d340c9c5382d2 --- /dev/null +++ b/pinaxcon/registrasion/migrations/0004_attendeeprofile_agreement.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.5 on 2017-10-04 13:15 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('pinaxcon_registrasion', '0003_auto_20171002_1719'), + ] + + operations = [ + migrations.AddField( + model_name='attendeeprofile', + name='agreement', + field=models.BooleanField(default=False, help_text=b"I agree to act according to the conference Code of Conduct. I also agree with the North Bay Python Terms and Conditions.", verbose_name=b'Agreement'), + ), + ] diff --git a/pinaxcon/registrasion/models.py b/pinaxcon/registrasion/models.py index 77952fe122108d36235260de45b4e7a2b68a362a..b09a9810833e44c6dca1ed2c72b8787921f136d7 100644 --- a/pinaxcon/registrasion/models.py +++ b/pinaxcon/registrasion/models.py @@ -1,18 +1,10 @@ +from django.core.exceptions import ValidationError from django.db import models from django.utils.encoding import python_2_unicode_compatible +from django_countries.fields import CountryField from registrasion import models as rego -@python_2_unicode_compatible -class DynamicValues(models.Model): - - name = models.CharField(max_length=64) - value = models.IntegerField() - - def __str__(self): - return "%s - %d" % (self.name, self.value) - - class AttendeeProfile(rego.AttendeeProfileBase): @classmethod @@ -22,11 +14,55 @@ class AttendeeProfile(rego.AttendeeProfileBase): return "name" def invoice_recipient(self): + + lines = [ + self.name_per_invoice, + ] + if self.company: - base = "\n%(company)s\nAttention: %(name_per_invoice)s" - else: - base = "%(name_per_invoice)s" - return base % self.__dict__ + lines.append("C/- " + self.company) + + if self.address_line_1: + lines.append(self.address_line_1) + + if self.address_line_2: + lines.append(self.address_line_2) + + if self.address_suburb or self.address_postcode: + lines.append("%s %s" % ( + self.address_suburb or "", + self.address_postcode or "", + )) + + if self.state: + lines.append(self.state) + + if self.country: + lines.append(self.country.name) + + return "\n".join(unicode(line) for line in lines) + + def clean(self): + errors = [] + if self.country == "US" and not self.state: + errors.append( + ("state", "US-based attendees must list their state"), + ) + + if self.address_line_2 and not self.address_line_1: + errors.append(( + "address_line_1", + "Please fill in line 1 before filling line 2", + )) + + if not self.agreement: + errors.append(( + "agreement", + "You must accept the agreement.", + )) + + if errors: + raise ValidationError(dict(errors)) def save(self): if not self.name_per_invoice: @@ -42,56 +78,77 @@ class AttendeeProfile(rego.AttendeeProfileBase): company = models.CharField( max_length=64, - help_text="The name of your company, as you'd like it on your badge", - blank=True, - ) - free_text_1 = models.CharField( - max_length=64, - verbose_name="Free text line 1", - help_text="A line of free text that will appear on your badge. Use " - "this for your Twitter handle, IRC nick, your preferred " - "pronouns or anything else you'd like people to see on " - "your badge.", - blank=True, - ) - free_text_2 = models.CharField( - max_length=64, - verbose_name="Free text line 2", + help_text="The name of your company, as you'd like it on your badge and receipt", blank=True, ) - # Other important Information name_per_invoice = models.CharField( - verbose_name="Your legal name (for invoicing purposes)", - max_length=64, + verbose_name="Your legal name (for your receipt)", + max_length=256, help_text="If your legal name is different to the name on your badge, " - "fill this in, and we'll put it on your invoice. Otherwise, " + "fill this in, and we'll put it on your receipt. Otherwise, " "leave it blank.", blank=True, ) - of_legal_age = models.BooleanField( - default=False, - verbose_name="18+?", + + address_line_1 = models.CharField( + verbose_name="Address line 1", + help_text="This address, if provided, will appear on your receipt.", + max_length=1024, + blank=True, + ) + address_line_2 = models.CharField( + verbose_name="Address line 2", + max_length=1024, blank=True, ) - dietary_requirements = models.CharField( + address_suburb = models.CharField( + verbose_name="City/Town/Suburb", + max_length=1024, + blank=True, + ) + address_postcode = models.CharField( + verbose_name="Postal/Zip code", + max_length=1024, + blank=True, + ) + country = CountryField( + default="US", + ) + state = models.CharField( + max_length=256, + verbose_name="State/Territory/Province", + blank=True, + ) + + dietary_restrictions = models.CharField( + verbose_name="Food allergies, intolerances, or dietary restrictions", max_length=256, blank=True, ) accessibility_requirements = models.CharField( + verbose_name="Accessibility-related requirements", max_length=256, blank=True, ) gender = models.CharField( + help_text="Gender data will only be used for demographic purposes.", max_length=64, blank=True, ) - db_defined_values = models.ManyToManyField( - DynamicValues - ) + newsletter = models.BooleanField( + verbose_name="Subscribe to North Bay Python newsletter", + help_text="Select to be subscribed to the low-volume North Bay Python " + "announcements newsletter", + blank=True, + ) -class DemoPayment(rego.PaymentBase): - ''' A subclass of PaymentBase for use in our demo payments function. ''' - - pass # No custom features here, but yours could be here. + agreement = models.BooleanField( + verbose_name="Agreement", + help_text="I agree to act according to the " + "North Bay Python Code of Conduct. I also agree with the " + "North Bay Python Terms and Conditions.", + blank=False, + default=False, + ) diff --git a/pinaxcon/settings.py b/pinaxcon/settings.py index 0b031fa43767693f954b6d68c8e8255186d1f1bc..e6c6db77237bcc9e7c5d77d02d9260af92ae0c0b 100644 --- a/pinaxcon/settings.py +++ b/pinaxcon/settings.py @@ -289,6 +289,7 @@ PINAX_BOXES_HOOKSET = "pinaxcon.hooks.PinaxBoxesHookSet" PINAX_STRIPE_PUBLIC_KEY = os.environ.get("STRIPE_PUBLIC_KEY", "your test public key") PINAX_STRIPE_SECRET_KEY = os.environ.get("STRIPE_SECRET_KEY", "your test secret key") +TUOKCEHC_BASE_URL = os.environ.get("TUOKCEHC_BASE_URL", None) PINAX_STRIPE_SEND_EMAIL_RECEIPTS = False SYMPOSION_SPEAKER_MODEL = "pinaxcon.proposals.models.ConferenceSpeaker" @@ -305,7 +306,7 @@ ATTENDEE_PROFILE_MODEL = "pinaxcon.registrasion.models.AttendeeProfile" TICKET_PRODUCT_CATEGORY = 1 -INVOICE_CURRENCY = "AUD" +INVOICE_CURRENCY = "USD" # Use nose to run all tests TEST_RUNNER = 'django_nose.NoseTestSuiteRunner' @@ -320,5 +321,8 @@ NOSE_ARGS = [ MARKDOWN_DEUX_STYLES = { "default": { "safe_mode": False, + "extras": { + "tables": 1, + } }, } diff --git a/pinaxcon/templates/_footer.html b/pinaxcon/templates/_footer.html index 8dffd631a6a8302b539a7d7ebd96f12fd38a8c19..584ec2975fdca09ff1557e1e3273a26ff2d3ea1e 100644 --- a/pinaxcon/templates/_footer.html +++ b/pinaxcon/templates/_footer.html @@ -14,8 +14,9 @@ Facebook | Twitter | Code of Conduct + | Terms and Conditions | Colophon - | Donate + | Donate

This site is free and open source software, powered by Symposion and Registrasion.

diff --git a/pinaxcon/templates/dashboard.html b/pinaxcon/templates/dashboard.html index 6e337f517097635e6e7a31b8cce1a41305bcc5e8..7696abb8b708e194baf3d6d403fed46825c25718 100644 --- a/pinaxcon/templates/dashboard.html +++ b/pinaxcon/templates/dashboard.html @@ -30,6 +30,8 @@ + {% include "registrasion/dashboard_widget.html" %} +
diff --git a/pinaxcon/templates/registrasion/dashboard_widget.html b/pinaxcon/templates/registrasion/dashboard_widget.html new file mode 100644 index 0000000000000000000000000000000000000000..13387f0693e835c5ebb36eb408c4de154fa747e1 --- /dev/null +++ b/pinaxcon/templates/registrasion/dashboard_widget.html @@ -0,0 +1,29 @@ +{% extends "registrasion/dashboard_widget_.html" %} + +{% comment %} + Blocks that you can override: + + - heading_actions + - heading + - panel_content + - available_credit + - invoices_heading + - invoice_item_prefix + +{% endcomment %} + +{% block heading %} + Tickets +{% endblock %} + +{% block invoices_heading %} + Statements & Receipts +{% endblock %} + +{% block invoice_item_prefix %} + {% if invoice.is_paid %} + Receipt + {% else %} + Statement + {% endif %} +{% endblock %} diff --git a/pinaxcon/templates/registrasion/emails/invoice_created/subject.txt b/pinaxcon/templates/registrasion/emails/invoice_created/subject.txt new file mode 100644 index 0000000000000000000000000000000000000000..b4ce403a8e4ed05a3bfcd394a28a07398b15ed22 --- /dev/null +++ b/pinaxcon/templates/registrasion/emails/invoice_created/subject.txt @@ -0,0 +1 @@ +{% load i18n %}Pending Registration {{ invoice.id }} diff --git a/pinaxcon/templates/registrasion/emails/invoice_updated/subject.txt b/pinaxcon/templates/registrasion/emails/invoice_updated/subject.txt new file mode 100644 index 0000000000000000000000000000000000000000..d878c4c5b7538ad454e6d6f56b6b98fe9474d4f1 --- /dev/null +++ b/pinaxcon/templates/registrasion/emails/invoice_updated/subject.txt @@ -0,0 +1 @@ +{% load i18n %}{{ invoice.get_status_display }} -- Registration {{ invoice.id }} diff --git a/pinaxcon/templates/registrasion/invoice.html b/pinaxcon/templates/registrasion/invoice.html index 2e9c40436c5881e120ac4c84e9f92b619315d282..86d4c189b304ec9b45553cd2ee068c73d0bb6866 100644 --- a/pinaxcon/templates/registrasion/invoice.html +++ b/pinaxcon/templates/registrasion/invoice.html @@ -1,6 +1,5 @@ {% extends "registrasion/invoice_.html" %} {% block payment_actions %} - Pay this invoice (dummy) {{ block.super }} {% endblock %} diff --git a/pinaxcon/templates/registrasion/invoice/details.html b/pinaxcon/templates/registrasion/invoice/details.html new file mode 100644 index 0000000000000000000000000000000000000000..886f514dfbf2c9c6c0a5739464125b7c6dfcb635 --- /dev/null +++ b/pinaxcon/templates/registrasion/invoice/details.html @@ -0,0 +1,48 @@ +{% extends "registrasion/invoice/details_.html" %} +{% comment %} + Blocks that you can override: + + - heading + - subheading + - invoice_intro + - extra_line_items + - contact_info + +{% endcomment %} + +{% block heading %} + {% if invoice.is_paid or invoice.is_refunded %} + Registration Receipt + {% else %} + Pending Registration + {% endif %} +{% endblock %} + +{% block subheading %} + North Bay Python. December 2 & 3 2017. Petaluma, California. +{% endblock %} + +{% block invoice_intro %} + {% if invoice.is_unpaid %} + This is a registration summary for North Bay Python 2017. It is not confirmed until paid in full. + {% elif invoice.is_void %} + This is a void registration summary for North Bay Python 2017. It is provided for informational purposes only. + {% elif invoice.is_refunded %} + This is a refunded registration summary for North Bay Python 2017. It is provided for informational purposes only. + {% elif invoice.is_paid %} + This is a confirmed registration summary for North Bay Python 2017. + {% endif %} + +{% endblock %} + +{% block contact_info %} +

Direct inquiries to spam@northbaypython.org

+

North Bay Python is run by North Bay and Bay Area locals, as a member project of Software Freedom Conservancy, a 501(c)(3) public charity registered in New York.

+ + Mailing Address +
+ Software Freedom Conservancy, Inc.
+ 137 MONTAGUE ST STE 380
+ Brooklyn, NY 11201-3548
+
+{% endblock %} diff --git a/pinaxcon/templates/registrasion/invoice/unpaid_notice.html b/pinaxcon/templates/registrasion/invoice/unpaid_notice.html new file mode 100644 index 0000000000000000000000000000000000000000..bd52e5efda88ba4478aa7a19b11843de1f4d8d52 --- /dev/null +++ b/pinaxcon/templates/registrasion/invoice/unpaid_notice.html @@ -0,0 +1,11 @@ +

NOTICE: The below statement is automatically generated, and will be voided if you amend your registration before payment, or if discounts or products contained in the statement become unavailable. The items and discounts are only reserved until the due time.

+ +{% url "invoice_access" invoice.user.attendee.access_code as access_url %} +{% url "invoice" invoice.id invoice.user.attendee.access_code as invoice_url %} + +

You can send the following links to your accounts department to pay for your registration:

+ +
    +
  • {{ current_host|add:access_url|urlize }} – your most recent statement or receipt
  • +
  • {{ current_host|add:invoice_url|urlize }} – this statement, even if it becomes void.
  • +
diff --git a/pinaxcon/templates/registrasion/review.html b/pinaxcon/templates/registrasion/review.html new file mode 100644 index 0000000000000000000000000000000000000000..961fbe46f33a7bd129ee8ad725916ac314533108 --- /dev/null +++ b/pinaxcon/templates/registrasion/review.html @@ -0,0 +1,14 @@ +{% extends "registrasion/review_.html" %} +{% comment %} + Blocks that you can override: + - selected_items_intro + - purchased_items_intro + - add_to_selection_intro + - missing_categories_intro + - non_missing_categories_intro + - what_next_intro +{% endcomment %} + +{% block selected_items_intro %} + You've selected the following items, which will be on your statement when you check out: +{% endblock %} diff --git a/pinaxcon/templates/registrasion/stripe/tuokcehc.html b/pinaxcon/templates/registrasion/stripe/tuokcehc.html new file mode 100644 index 0000000000000000000000000000000000000000..fd1fd6678d519648d4141ce90b668a3ce6cb971e --- /dev/null +++ b/pinaxcon/templates/registrasion/stripe/tuokcehc.html @@ -0,0 +1,6 @@ +{% extends "registrasion/stripe/tuokcehc_.html" %} + +{% block lede %} + North Bay Python transactions are performed by Stripe on behalf of Software + Freedom Conservancy. +{% endblock %} diff --git a/pinaxcon/templates/static_pages/about/colophon.html b/pinaxcon/templates/static_pages/about/colophon.html index c8b1dd5322989bade8bce70604f27876a9992074..0754892f27fed179d5f539b184b5643db73b448f 100644 --- a/pinaxcon/templates/static_pages/about/colophon.html +++ b/pinaxcon/templates/static_pages/about/colophon.html @@ -36,7 +36,7 @@

Terms and Conditions

- Our Photography and Audio Video Recording policy is adapted from the Evergreen policy, itself adapted from the AdaCamp policy under a Creative Commons Attribution Share Alike 4.0 International license.

+ Our Terms and Conditions were forked from the Linux Australia Event Terms and Conditions under the Creative Commons Attribution Share Alike 3.0 Australia license. Our Photography and Audio Video Recording policy is adapted from the Evergreen policy, itself adapted from the AdaCamp policy under a Creative Commons Attribution Share Alike 4.0 International license.

Web Application

@@ -49,4 +49,4 @@
  • Inkscape is used to create most of our graphics.
  • -{% endblock %} +{% endblock %} \ No newline at end of file diff --git a/pinaxcon/templates/static_pages/about/north_bay_python.html b/pinaxcon/templates/static_pages/about/north_bay_python.html index 48642cec39ca5f5b357e8ce8f9571ea2a210f0dc..6a16d89fdc2a94b66b13f745ed6f3d9a27a1da57 100644 --- a/pinaxcon/templates/static_pages/about/north_bay_python.html +++ b/pinaxcon/templates/static_pages/about/north_bay_python.html @@ -18,8 +18,7 @@

    We're a nonprofit conference for professionals, enthusiasts and students alike. We're focused on inclusion, accessibility, diversity, and affordability. Most importantly, we're planning a great lineup of talks from all over the Python ecosystem, with plenty of time to meet new people and develop new ideas.

    -

    Our venue, the Mystic Theatre in Downtown Petaluma, is a beautiful example of an early 1900s Vaudeville theatre. You can find over 50 different food and drink options a short walk away, and the nearest hotel is only a block away.

    - +

    Our venue, the Mystic Theatre in Downtown Petaluma, is a beautiful example of an early 1900s Vaudeville theatre. You can find over 50 different food and drink options within a short walk, and the nearest hotel is only a block away.

    The Conference

    @@ -29,33 +28,8 @@

    Our goal is to keep prices as low as possible. That means we won't be catering lunch. Instead, you can look forward to extra-long lunch breaks you can use to explore all of the great food options around the venue.

    +

    The Town

    -

    Petaluma, California

    - -

    North Bay Python's home is Petaluma, a delightfully quaint dairy town, nestled on a river at the southern edge of California's Wine Country. We've got beautiful scenery right on our doorstep, and we're less than an hour's drive from San Francisco over the Golden Gate Bridge.

    - -

    The Mystic is not the only local example of early 1900s architecture, either: Downtown is full of great examples of Victorian-era buildings that survived the 1906 earthquake. Just down the road, you'll find the center of the maker movement and a thriving craft brewery scene.

    - - -

    Getting Here

    - -

    By Car

    - -

    If you're driving up, Downtown Petaluma is at exit 472 on Highway 101, 35 miles north of the Golden Gate Bridge. All parking is free in Petaluma, including in the undercover garages at Keller St and Theatre Square. Both garages are in short walking distance of the Mystic.

    - -

    By Bus

    - -

    Public transit to Petaluma is not great. You can take the 101 bus operated by Golden Gate Transit from downtown San Francisco, or south from Santa Rosa. Depending on sponsorship, we hope to run a free shuttle with BART and Caltrain connections for people from further out of town.

    - -

    By Plane

    - -

    If you're coming from out of the area, you may want to consider Sonoma County Airport (STS). STS is 30 minutes out of Petaluma, and has nonstop flights to most major west coast cities. If you can't make it to STS, you can also try San Francisco (SFO) or Oakland (OAK) international airports.

    - -

    If you happen to have an aircraft of your own, Petaluma Municipal Airport is 3 miles down the road.

    - - -

    Staying Here

    - -

    Petaluma also has hotels! We're arranging deals with some of the best local hotels in the area – the closest is just one block away. We'll share details with you when conference tickets go on sale.

    +

    North Bay Python's home is Petaluma, a delightfully quaint dairy town, nestled on a river at the southern edge of California's Wine Country.

    {% endblock %} diff --git a/pinaxcon/templates/static_pages/about/petaluma.html b/pinaxcon/templates/static_pages/about/petaluma.html new file mode 100644 index 0000000000000000000000000000000000000000..11584d3bceca397e32d8c329363b98b512cad253 --- /dev/null +++ b/pinaxcon/templates/static_pages/about/petaluma.html @@ -0,0 +1,29 @@ +{% extends "page_with_title_and_lede.html" %} + +{% load i18n %} + +{% block head_title %}Petaluma{% endblock %} + +{% block heading %}Petaluma{% endblock %} + +{% block body_class %}about{% endblock %} + +{% block lede %} + The best town you probably haven't bothered visiting yet. +{% endblock %} + + +{% block content %} + +

    North Bay Python's home is Petaluma, a delightfully quaint dairy town, nestled on a river at the southern edge of California's Wine Country. We've got beautiful scenery right on our doorstep, and we're less than an hour's drive from San Francisco over the Golden Gate Bridge. We've got a whole page dedicated to Petaluma if you want to learn more about it.

    + +

    Our venue, The Mystic Theatre, is not the only local example of early 1900s architecture, either: Downtown is full of great examples of Victorian-era buildings that survived the 1906 earthquake. Just down the road, you'll find the center of the maker movement and a thriving craft brewery scene.

    + + +

    Travel and Accommodation

    + +

    The Golden Gate Bridge is well-known to San Franciscans as being approximately 8,000 miles long and shrouded in fog, so few ever cross up into the North Bay. Happily, the drive north is easy and it can be swift. There are many ways to get to Petaluma, we've covered driving, public transit, and flights on the How to Get Here page.

    + +

    When you get here, you're sure to find a nice place to stay that fits your budget. You can find a range of options, and some special discounts, available on the Where to Stay page.

    + +{% endblock %} diff --git a/pinaxcon/templates/static_pages/attend/attend.html b/pinaxcon/templates/static_pages/attend/attend.html new file mode 100644 index 0000000000000000000000000000000000000000..8a31694f5053f948211a702e9ebd24a07c930790 --- /dev/null +++ b/pinaxcon/templates/static_pages/attend/attend.html @@ -0,0 +1,138 @@ +{% extends "page_with_title_and_lede.html" %} + +{% load i18n %} +{% load markdown_deux_tags %} + +{% block head_title %}Attend{% endblock %} + +{% block heading %}Come to North Bay Python!{% endblock %} + +{% block body_class %}attend{% endblock %} + +{% block lede %} + P-Town. Rivertown. That place where the cows are. No matter what you call Petaluma, we want you to join us here for a great weekend of Python talks and networking. North Bay Python tickets start at $25 for unaffiliated individuals, and $180 for corporate attendees. +{% endblock %} + + +{% block content %} + +

    To buy a ticket, create an account, and go to the dashboard. If you've already bought a ticket, you can check out our information on where to stay if you want to come up for the weekend, and how to get here.

    + +
    + + +

    Which Ticket?

    + +

    Early Bird discounts are available for the first 100 tickets sold, or until October 20, whichever comes first. T-shirts are only available for tickets bought before November 7.

    + +

    Corporate $200 ($180 Early Bird)

    + +

    For company employees, and individuals who can claim the cost of attending the conference as a business expense or other tax deduction.

    + +

    Includes a free t-shirt, and recognition of your affiliation on your conference badge and on the conference supporters list. Group discounts are available for organizations that buy 5 or more tickets.

    + +

    Individual Supporter $100 ($80 Early Bird)

    + +

    For individuals who want to financially contribute to the success of the conference.

    + +

    This ticket includes a free t-shirt, and recognition of your Free and Open Source Software, hobby, or nonprofit project on your conference badge.

    + +

    Unaffiliated Individual $50 ($25 Early Bird)

    + +

    For students, hobbyists, and unemployed/underemployed people who are coming to North Bay Python at their own expense.

    + +

    The cheapest ticket we can offer. You can add a t-shirt for $30.

    + + +

    Special Tickets

    + +

    Individual Sponsor $500 ($450 Early Bird)

    + +

    This ticket includes all of the benefits of a Corporate ticket, but we’ll also give the ticket holder special thanks during our conference plenary sessions. You can also provide us with a promotional item to put in each attendee’s swag bag.

    + +

    This ticket is for individuals who want to sponsor the conference. For company-level sponsorships, please see our sponsorships page.

    + + +

    Group Discount Corporate $180 for 5+ tickets

    + +

    For companies sending multiple attendees, you can get a 10% discount off the regular price on purchases of 5 tickets or more.

    + +

    To claim, buy your first four tickets, and send us an email with the names and receipt numbers for those attendees. We’ll send you vouchers for a discount on further tickets.

    + + +

    Ticket Types and Inclusions

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Unaffiliated IndividualIndividual Supporter Corporate Individual Sponsor
    Regular Price $50 $100 $200 $500 +
    Early Bird $25 $80 $180 $450
    Group Discount - - $180/ticket for 5+ tickets -
    Conference access Yes Yes Yes Yes
    Morning refreshments TBA TBA TBA TBA
    Free Lunch No No No No
    T-Shirt$30 each1 free
    Extras $30 each
    1 free
    Extras $30 each
    1 free
    Extras $30 each
    Affiliation on your badge No Personal projects only Yes Yes
    Supporter recognition None For you For you and your company Top billing for you and your company or project
    Sponsor benefits No No No Yes
    + +

    If you can’t afford to attend on these prices, please email spam@northbaypython.org – we’ll enthusiastically waive ticket fees for people who need it.

    + + + + +

    Benefits

    + +

    Conference access

    +

    Two days of high-caliber talks about Python, and meeting new Pythonistas at North Bay Python.

    + +

    Lunch

    +

    In order to keep ticket costs as low as possible, we won’t be catering lunch this year.

    + +

    To make up for it, we’ve located our conference right in the middle of Historic Downtown Petaluma’s restaurant district. You can find everything from market delis and barbecue, through to Michelin-rated restaurants, all within 5 minutes walk. You’ll get a better lunch than we’d ever be able to cater, for much less. We'll have a locals' guide to Petaluma to help you find places to eat.

    + +

    Morning Refreshments (TBA)

    +

    If budget permits, or if we find a sponsor, we’ll provide coffee, tea, hot chocolate, and some light snacks in the morning before proceedings kick off on both days.

    + +

    T-Shirt

    +

    We’ll be designing a collectible North Bay Python t-shirt for you to pick up at the conference, and they’ll be available in a variety of sizes, cuts and colors. Each t-shirt costs $30, and for supporter, corporate, and sponsor ticket holders, you’ll get your first t-shirt free!

    + +

    T-shirts are available only for tickets purchased by Tuesday 7 November.

    + + +

    Affiliation

    +

    Every attendee gets their very own lanyard and a badge with their name on it. For higher-paying ticket holders, you’ll get your project’s name (supporter and above) or company name (corporate or sponsor levels only) on your badge, just below your name.

    + +

    Supporter Recognition

    +

    On our website, we’ll have a list of our conference supporters. You can choose to have your name on that list.

    + +

    For our corporate and sponsor ticket holders, we’ll also include your company name as part of those thanks.

    + +

    Sponsor Benefits

    +

    Sponsor tickets come with sponsor benefits. To find out more, see our Sponsors page.

    + +{% endblock %} diff --git a/pinaxcon/templates/static_pages/attend/business-case.html b/pinaxcon/templates/static_pages/attend/business-case.html new file mode 100644 index 0000000000000000000000000000000000000000..dddec10533aeb2924267d00e0f23330f904ffffd --- /dev/null +++ b/pinaxcon/templates/static_pages/attend/business-case.html @@ -0,0 +1,59 @@ +{% extends "page_with_title_and_lede.html" %} + +{% load i18n %} + +{% block head_title %}How to Pitch Your Manager{% endblock %} + +{% block heading %}How to Pitch Your Manager{% endblock %} + +{% block body_class %}attend{% endblock %} + +{% block lede %} +So you want to attend North Bay Python, but you're not quite sure your manager will sign off on the expenses? Read below for some suggestions on how to make your case! +{% endblock %} + + +{% block content %} + +

    Key Information

    +

    +

      +
    • Dates: Saturday, December 2nd and Sunday, December 3rd, 2017
    • +
    • Venue: Mystic Theatre, Petaluma, California, USA
    • +
    • Tickets: $200
    • +
    +

    + +

    How to Convince Your Boss

    + +

    +This comes down to building a business case for your attendance. Start by explaining what the conference is, why you want to go, and why your employer will benefit (we've helpfully included some of the great reasons you might use and some sample prose you're welcome to copy into your email, below).

    + +

    Explain to your boss what you'll bring back for the rest of the team (ideas, not imbibables): offer to give a summary presentation at lunch, or post a write-up to the company wiki, upon your return. We have some fantastic content in store, and you'll have no trouble finding things to teach your teammates when you get back. Sessions will be recorded and posted to YouTube, so you'll have ready-to-share links for those who want additional detail. You could also share the names, Twitter handles, or business cards from the people you'll meet — some of them might even be interested in working with you!

    + +

    Sample Language

    +

    +North Bay Python is a new, nonprofit conference by and for the Python community. +

    + +

    +The conference features over 20 sessions from experienced presenters hailing from across the US and internationally, speaking on a wide mix of topics. Sessions will include updates from leading Python community members on the state of major projects, technical explorations of how Python and Python-based systems work in practice, and thought-provoking explorations and lessons on how best to communicate as a team, foster diversity and inclusivity, and effectively engage within and beyond our teams and communities as developers. +

    + +

    Full details on the program will be released soon.

    + +

    +Approximately 400 attendees from a diverse mix of backgrounds will be in Petaluma for the weekend, providing a rich opportunity for networking. Expect to meet key members of your favorite open source Python projects, fellow developers with novel perspectives on common problems, and maybe even some job-seekers to help bolster your organization's ranks. +

    + +

    +Organizations funding attendees of North Bay Python can acquire competitive advantage by: +

      +
    • Staying abreast of the latest libraries, services, and best practices in the Python ecosystem
    • +
    • Learning techniques for architecting, authoring, deploying, and maintaining software
    • +
    • Improving technical and organizational communication skills
    • +
    • Networking with fellow Python users to establish potential future working relationships
    • +
    • Returning to work refreshed and excited by all of the novel ways Python is being used across industries
    • +
    +

    +{% endblock %} diff --git a/pinaxcon/templates/static_pages/attend/hotels.html b/pinaxcon/templates/static_pages/attend/hotels.html new file mode 100644 index 0000000000000000000000000000000000000000..78d90d372d500282d5ecc3f0640f9474551ef6a4 --- /dev/null +++ b/pinaxcon/templates/static_pages/attend/hotels.html @@ -0,0 +1,118 @@ +{% extends "page_with_title_and_lede.html" %} + +{% load i18n %} + +{% block head_title %}Where to Stay{% endblock %} + +{% block heading %}Where to Stay{% endblock %} + +{% block body_class %}attend{% endblock %} + +{% block lede %} + If you're coming from out of town, we'd love you to stay the night! We've made arrangements with the best hotels in Petaluma, with exclusive rates for North Bay Python attendees. +{% endblock %} + + +{% block content %} + +

    Official Hotels

    + +

    We've made arrangements with three local accommodation providers to suit different budget options.

    + +

    Hotel Petaluma

    + +
    +
    +
    +
    Where
    205 Kentucky St (0.2mi from venue)
    +
    Price
    $117-$153/night + tax
    +
    Style
    Limited-Service Hotel
    +
    Book by
    November 1st
    +
    +
    + +
    + +

    The only hotel in Downtown Petaluma is a recently renovated boutique hotel in a 1920s-era building. It's a short walk from North Bay Python's venue, and is close to Petaluma's best places to eat and drink.

    + +

    Hotel Petaluma has offered all of their available rooms to North Bay Python attendees, so if you want to stay as close as possible to the venue, book through our exclusive link by November 1st.

    + +

    Sheraton Petaluma

    + +
    +
    +
    +
    Where
    Petaluma Marina, 745 Baywood Dr (1.7mi from venue)
    +
    Price
    $129/night + tax
    +
    Style
    Full-Service Hotel
    +
    Book by
    November 17th
    +
    +
    + +
    + +

    The only full-service hotel in Petaluma operated by a major chain. The Sheraton sits on the riverfront at the Petaluma Marina, and is a short drive from the venue. Our exclusive rate of $129/night is available until November 17th.

    + + + +

    Quality Inn Petaluma

    + +
    +
    +
    +
    Where
    5100 Montero Way (3.7mi from venue)
    +
    Price
    from $81/night + tax
    +
    Style
    Motor Inn
    +
    Book
    while rooms last
    +
    +
    + +
    + +

    A modern, comfortable motel at the northern end of the city is a great option for attendees looking to save money. North Bay Python attendees get 15% off the best published rate at the time of booking by using our exclusive booking link.

    + + +

    Other options

    + +

    In Petaluma

    + +

    There are other options for staying in Petaluma, that cater to a variety of budgets. We don't have an official relationship with these vendors, and provide these links for informational purposes only.

    + + + + +

    Further Afield

    + +

    If you can't find something you're looking for in Petaluma, the nearby freeway town of Rohnert Park is 15 minutes drive away and has plenty of accommodation next to the freeway. People looking to spend obscene amounts of money may also be interested in the resort town of Sonoma, which is 20 minutes drive away.

    + +

    Reasonable chain hotel and motel options also exist in Novato, however, we don't recommend staying there as traffic between there and Petaluma can be unpredictable.

    + + +{% endblock %} diff --git a/pinaxcon/templates/static_pages/attend/travel.html b/pinaxcon/templates/static_pages/attend/travel.html new file mode 100644 index 0000000000000000000000000000000000000000..64ae257da10654aab3338e07686b232000a09903 --- /dev/null +++ b/pinaxcon/templates/static_pages/attend/travel.html @@ -0,0 +1,58 @@ +{% extends "page_with_title_and_lede.html" %} + +{% load i18n %} + +{% block head_title %}How to Get Here{% endblock %} + +{% block heading %}How to Get Here{% endblock %} + +{% block body_class %}attend{% endblock %} + +{% block lede %} + Chances are you're probably not in Petaluma, so if you want to come to North Bay Python, then you'll need to get here somehow. The good news is that it's reasonably easy to get here, whether you're coming from Sonoma County, elsewhere in the Bay Area, or from further out of town. +{% endblock %} + + +{% block content %} + +

    By Car

    + +

    If you're driving up, Downtown Petaluma is at exit 472A on Highway 101, 35 miles north of the Golden Gate Bridge.

    + +

    All parking is free in Petaluma, however near the Mystic, street-level parking is time-limited. All-day parking is available at street level west of 5th St (towards 6th St), and at the the undercover garages at Keller St and at Theatre Square. Both garages are in short walking distance of the Mystic.

    + + +

    By Public Transit

    + +

    Public transit to Petaluma is currently not great.

    + +

    You can take the 101 bus operated by Golden Gate Transit from downtown San Francisco, or south from Santa Rosa. Depending on sponsorship, we hope to run a free shuttle with BART and Caltrain connections for people from further out of town.

    + +

    SMART, the new train service that runs along the 101 corridor, recently started operations. SMART is not suitable for getting to North Bay Python if you travel on weekends, as the first train leaves after proceedings start. SMART may be a better option than taking the bus between San Rafael and Petaluma if you travel up on weekdays.

    + + +

    By Plane

    + +

    Petaluma is within driving distance of all Bay Area Airports, and each airport has varying levels of public transit links to Petaluma.

    + +

    Sonoma County Airport (STS) 25mi from venue

    + +

    STS is 30 minutes out of Petaluma, and has nonstop flights to most major west coast cities on Alaska, United, and American.

    + +

    On weekdays and weekend afternoons, SMART train runs from STS to Downtown Petaluma Station, 1/4mi away from the North Bay Python venue. STS is also serviced by the Sonoma County Airport Express bus.

    + +

    San Francisco International (SFO)/Oakland International (OAK) 50mi from venue

    + +

    If you can't make it to STS, you can also try San Francisco (SFO) or Oakland (OAK) international airports. These have many more flights than STS, but are twice the distance away, and are subject to more highway traffic between the airport and Petaluma.

    + +

    Transfers to Petaluma are available through the Sonoma County Airport Express.

    + +

    San Jose International (SJC)/Sacramento (SMF) 85mi from venue

    + +

    If you're planning on renting a car, San Jose (SJC) or Sacramento (SMF) are both two hours drive away.

    + +

    Petaluma Municipal 3mi from venue

    + +

    If you happen to have an aircraft of your own, Petaluma Municipal Airport is 3 miles down the road.

    + +{% endblock %} diff --git a/pinaxcon/templates/static_pages/attend/tshirt.html b/pinaxcon/templates/static_pages/attend/tshirt.html new file mode 100644 index 0000000000000000000000000000000000000000..80bd4d506bb1735fec8bd438e59d3048964c3efe --- /dev/null +++ b/pinaxcon/templates/static_pages/attend/tshirt.html @@ -0,0 +1,116 @@ +{% extends "page_with_title_and_lede.html" %} + +{% load i18n %} + +{% block head_title %}T-Shirts{% endblock %} + +{% block heading %}T-Shirt sizes and cuts{% endblock %} + +{% block body_class %}attend{% endblock %} + +{% block lede %} + +{% endblock %} + +{% block content %} + +

    North Bay Python uses Gildan t-shirts, and this year's design will be available in a variety of colours that you can choose from when you collect your shirt. There are three varieties available:

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    XSSMLXL2XL3XL5XL
    WLWLWLWLWLWLWLWL
    Men's / Straight Cut--1828202922302431263228333235
    Women's
    Semi-Fitted
    --17¼25½19¼2621¼2723¼2825¼28½27¼29--
    Women's
    Relaxed Fit
    1623½182520262227242826292830--
    + + +{% endblock %} diff --git a/pinaxcon/templates/static_pages/homepage.html b/pinaxcon/templates/static_pages/homepage.html index 537abd6fbb481de7be88fd11d00959efaee7b72c..0cd3171284acbae087bdea2860c6487404f200e7 100644 --- a/pinaxcon/templates/static_pages/homepage.html +++ b/pinaxcon/templates/static_pages/homepage.html @@ -28,7 +28,6 @@

    December 2 & 3, 2017
    - Talk submissions close September 29