Coder Social home page Coder Social logo

czue / django-wedding-website Goto Github PK

View Code? Open in Web Editor NEW
444.0 22.0 265.0 14.47 MB

A django-powered wedding website and guest-management system

License: Other

Python 33.67% CSS 8.46% JavaScript 12.42% HTML 44.86% Dockerfile 0.35% Shell 0.24%

django-wedding-website's People

Contributors

czue avatar dependabot[bot] avatar dillwishlist avatar goetzk avatar kboghdady avatar klorydryk avatar lancegoyke avatar lukasredev avatar m-terlinde avatar m1ckyb avatar mtlynch avatar paddatrapper avatar rktree avatar rowenaluk avatar talpid avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

django-wedding-website's Issues

To add Django variable to make it work

To make it work, I had to add this variables in the bigday/settings.py:
ALLOWED_HOSTS = ["my_website_url"]
CSRF_TRUSTED_ORIGINS = ["my_website_url",'https://.127.0.0.1' ] (not sure for the 'https://.127.0.0.1' but didn't tried without it)

Settings Variables Not Affecting all Pages

Where are the declarations for the variables used in the email templates, etc. supposed to be defined? I presume you stripped them out for privacy reasons, where should I place them?

Such as:
{{ support_email }}
{{ couple }}
{{ site_url }}
{{ rsvp_address }}

Thanks,
Alexander

Great Project, Django & Python help, if possible

Hi,

I would like to say a big thanks for this, over the past few months i have tinkered with the code to suit my needs, but i am no expert when it comes to Python or Django and have winged it with most of the changes in the code, and that is where my Google search skills come to a end.

In the invitation.html file i have added a checkbox for if the guest requires a bus to/from the venue, which does show up in the page, but i have no idea on how to save the details into the database and to show the checkbox if the guest reloads the invitation page

guests/templates/guests/invitation.html

            <div class="form-group">
                <label for="{{ bus_req }}" class="col-sm-3 control-label">... Require bus?</label>
                <input type='checkbox' name='bus_req' value="{{ bus_req }}">{{ bus_req }}</input>      
            </div>    

guests/models.py

class Guest(models.Model):
    (other code)
    req_bus = models.BooleanField(default=False)

guests/migrations/0022_req_bus.py

# -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-01-18 19:29
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('guests', '0021_phone_party'),
    ]

    operations = [
        migrations.AddField(
            model_name='guest',
            name='req_bus',
            field=models.BooleanField(default=False),
        ),
    ]

Any help would be greatly appreciated,

Thanks

Michael

Login page

Hi @czue, just wanted to thank you for making this project available. We used as the starting point for our wedding website over a year ago and were really happy with the outcome. As a python dev who hasn't really worked with Django or frontend before, there's no way I would have managed to get anything reasonable in time without having this to start from ๐Ÿ˜„

We added a few things like a login page, a savable RSVP form, and some clunky JavaScript effects:

aa-website-480p.mp4

Some notes about some technical items that I could contribute back upstream:

  • The login page was created from a CustomAuthForm based on https://stackoverflow.com/questions/43542442 and using django-widget-tweaks
  • We wanted multiple guests of the same party to be able to login through any of their emails, so we added a derived guests.backends.ModelBackend which looks up the corresponding Guest object and returning its guest.party.user.
  • We set up a custom context processor (https://stackoverflow.com/questions/433162/) to pass through certain settings "globally" as variables to jinja2 rather than having to specify them as arguments to render().
  • We used dotenv to manage credentials
  • We refactored the CSS stylesheet colors to use CSS variables
  • We added a generic QuestionAnswer model to allow us to add arbitrary questions and guests to provide arbitrary answers in the RSVP form

The resulting code had a lot of last minute hacks so I don't think I'll upload the end result, but I'd be happy to try to separate out some of the above items.

Thank you

No issue. Just wanted to say thank you!

Manage.py

runnning manage.py runserver
running into this log of error

Additional Correspondence

Feature request:

Send out emails to a select group of guests. Recipients could be those who RSVP'd yes, with a reminder the hotel block is filling up. Or a reminder to those who have opened the invitation but not responded, or those who haven't opened the invite yet. Could also send alerts to the couple (Django account emails) with regular statistics or when someone accepts/declines.

Tracking dietary requirements

Hi,
We added a free text field to the Guest model for people to note dietary requirements - I couldn't extract a meaningful PR from our changes so I'm simply mentioning it here in case someone else is interested in the idea. I'm happy to raise a PR with what I can if you'd like a starting point.

CSV Import binary values

When importing a CSV, the values for is_invited and is_child must be y/n. Would it be possible to accept TRUE/FALSE values too?

When editing the CSV with a spreadsheet program, the checkbox column results in TRUE/FALSE values.

Is this repo still being maintained?

Hi Cory,
Thanks for opening your project, it will provide a solid base for what we're trying to do.

I see a number of unanswered issues and pull requests and wondered if you are maintaining this project still. If not we'll carry our changes and not make an effort to upstream them.

thanks,
Karl.

+1?

Great project, I'm using it for my wedding website. Is there a way to track +1s in the current code?

Thanks,
Alexander

Help deploying

Thanks for sharing a great project! I've gotten everything set up to our liking and working well on the development server but am struggling with getting it deployed with gunicorn.

I can run gunicorn bigday.wsgi --bind 0.0.0.0:8000 from the django-wedding-website folder and the server starts, but none of the static resources are found.
image

If I run the same command from /django-wedding-website/bigday I get the following
image

I also see the supervisor_django.conf file in /deploy/supervisor, but haven't figured out what do with it either.

Any help getting me on the right track would be great! Thanks again

How to send emails

What URL or shell command should be used to send emails for save the dates or invitations? Is there a way to test send?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.