diff --git a/hack_infinity/.DS_Store b/hack_infinity/.DS_Store index e55258d..7951d8c 100644 Binary files a/hack_infinity/.DS_Store and b/hack_infinity/.DS_Store differ diff --git a/hack_infinity/Templates/create_event.html b/hack_infinity/Templates/create_event.html index 961f6ac..8e90544 100644 --- a/hack_infinity/Templates/create_event.html +++ b/hack_infinity/Templates/create_event.html @@ -11,7 +11,7 @@

Create Your events here!

-
+
@@ -98,7 +103,7 @@

Enter flow of events


- +
@@ -110,7 +115,7 @@

Enter flow of events


- +
diff --git a/hack_infinity/Templates/event.css b/hack_infinity/Templates/event.css new file mode 100644 index 0000000..c70b4a3 --- /dev/null +++ b/hack_infinity/Templates/event.css @@ -0,0 +1,178 @@ +*{ + padding:0; + margin:0; +} + +.main-container { + display: grid; + grid-template-rows: 1fr 3fr 3fr 2fr; + height:100vh; +} + +.main-container .container-top { + height: 100%; + position: sticky; + top: 0; + background-image: url(./images/bg2.png) + +} +.main-container .container-top h1{ + height:10vh; + text-align:center; + margin-top: 60px; + margin-bottom: 30px; + font-size: 50px; + font-family: sans-serif; + color: #fff; + + +} +.main-container .container-middle { + height:40vh; + margin-top: 30px; +} +.main-container .container-middle p{ + text-align: center; + max-width: 770px; + margin:auto; + font-family: Times, "Times New Roman", Georgia, serif; + margin-top: 5px; + font-size: 22px; +} +.main-container .container-bottom { + height:20vh; +} +.main-container .container-bottom h2 { + text-align: center; + text-transform: uppercase; + max-width: 770px; + margin:auto; + font-family: Times, "Times New Roman", Georgia, serif; + font-size: 30px; + margin-bottom: 30px; + +} + +.main-container .container-bottom p{ + text-align: center; + margin-top:10vh; + max-width: 770px; + margin:auto; + font-family: Times, "Times New Roman", Georgia, serif; + font-size: 22px; +} +#testimonials{ + display: flex; + justify-content: center; + align-items: center; + flex-direction: column; + width: 100%; + margin-top: 50px; + height: 80%; +} +.main-container .testimonial-heading{ + letter-spacing: 1px; + margin: 30px 0px; + padding: 10px 20px; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; +} +.main-container .testimonial-heading h1{ + font-size: 2.2rem; + font-weight: 500; + background-color: #202020; + color: #fff; + padding: 10px 20px; +} +.main-container .testimonial-heading span{ + font-size: 1.3rem; + color: #252525; + margin-bottom: 10px; + letter-spacing: 2px; + text-transform: uppercase; + +} +.main-container .testimonial-box-container{ + display: flex; + justify-content: center; + align-items: center; + flex-wrap: wrap; + width: 100%; +} +.main-container .testimonial-box{ + width: 500px; + margin: 15px; + cursor: pointer; + background-color: #ffffff; + padding: 20px; + box-shadow: 2px 2px 30px rgba(0,0,0,0.1); +} +.main-container .profile-img{ + width: 50px; + height: 50px; + border-radius: 50%; + overflow: hidden; + margin-right: 10px; +} +.main-container .profile-img img{ + width: 100%; + height: 100%; + object-fit: cover; + object-position: center; +} +.main-container .profile{ + display: flex; + align-items: center; +} +.main-container .name-user{ + display: flex; + flex-direction: column; +} +.main-container .name-user strong{ + color: #3d3d3d; + font-size: 1.1rem; + letter-spacing: 0.5px; +} +.main-container .name-user span{ + color: #979797; + font-size: 0.8rem; + letter-spacing: 0.5px; +} +.main-container .reviews{ + color: #f9d71c; +} +.main-container .box-top{ + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 20px; +} +.main-container .client-comment p{ + color: #4b4b4b; + font-size: 0.9rem; + letter-spacing: 0.5px; + margin-top: 10px; +} +.main-container .testimonial-box:hover{ + transform: translateY(-10px); + transition: all ease 0.3s; +} + + +.main-container .container-end { + height:20vh; + margin-top:10vh; +} +.main-container .container-end i{ + color:#990988; + font-size:30px; + padding: 30px; + margin-left:30vh; +} +.main-container .container-end i:hover{ + color:#3b0235; + transform: translateY(-10px); + transition: all ease 0.3s; +} \ No newline at end of file diff --git a/hack_infinity/Templates/eventofy.html b/hack_infinity/Templates/eventofy.html new file mode 100644 index 0000000..d2e9fbf --- /dev/null +++ b/hack_infinity/Templates/eventofy.html @@ -0,0 +1,356 @@ + + + + + + + + + About us + + + + + + + +
+
+

ABOUT US

+
+
+

EvenTofy is a website which is designed to make event planning a easy process for users. It helps users organize events and schedules. It is an essential tool for your event planning and managing.


+

It is a user-friendly planner for all your big and small events either it be a wedding or a corporate event.


+

Plan all your event with ease!

+
+
+

Our Strategy

+

It is to create a user-friendly website that helps you create event or manage existing event with the help of features such as sending invite,tracking replies and scheduling.


+

It is to meet all your neads so that you dont have to hassel on your big day.

+ +
+
+
+ Comments +

Clients Says

+ +
+
+
+
+
+
+ +
+
+ Rahul Dua + rahuldua@web +
+
+ +
+ + + + + +
+ + +
+
+

"I recently used EvenTofy for a family gathering and it was a game-changer. The app made it so easy to manage all aspects of the event, from sending invitations to tracking RSVPs and creating a schedule. Highly recommend!"

+
+ + +
+
+
+
+
+ +
+
+ Prem Chopra + premchopra@mail +
+
+ +
+ + + + + +
+ + +
+
+

"This app is a must-have for anyone who wants to plan and organize an event. EvenTofy made it so easy to keep everything in one place, and the user-friendly interface made it a breeze to use."

+
+ + +
+
+
+
+
+ +
+
+ Rakesh Patel + rakeshpatel@web +
+
+ +
+ + + + + +
+ + +
+
+

I used EvenTofy for a baby shower and it was amazing. I was able to send out invitations, track RSVPs, and create a schedule all in one place. I would highly recommend this app to anyone planning an event.

+
+ + +
+
+
+
+ +
+
+ Anjali Rai + raianjali@mail +
+
+ +
+ + + + + +
+ + +
+
+

"I was so impressed with EvenTofy for a friend's wedding. The app made it so easy to manage all the details and I was able to keep everything organized. I would definitely use it again for any future events."

+
+ + +
+ +
+ + + + +
+
+ + + + + +
+ + +
+ + + + + \ No newline at end of file diff --git a/hack_infinity/harshita/bg.jpg b/hack_infinity/Templates/images/bg copy.jpg similarity index 100% rename from hack_infinity/harshita/bg.jpg rename to hack_infinity/Templates/images/bg copy.jpg diff --git a/hack_infinity/Templates/images/bg.jpeg b/hack_infinity/Templates/images/bg.jpeg deleted file mode 100644 index 8e79414..0000000 Binary files a/hack_infinity/Templates/images/bg.jpeg and /dev/null differ diff --git a/hack_infinity/Templates/images/bg.jpg b/hack_infinity/Templates/images/bg.jpg new file mode 100644 index 0000000..361ab5c Binary files /dev/null and b/hack_infinity/Templates/images/bg.jpg differ diff --git a/hack_infinity/Templates/images/bg2.png b/hack_infinity/Templates/images/bg2.png new file mode 100644 index 0000000..ee9c8ec Binary files /dev/null and b/hack_infinity/Templates/images/bg2.png differ diff --git a/hack_infinity/Templates/images/bg3.jpg b/hack_infinity/Templates/images/bg3.jpg new file mode 100644 index 0000000..27187d5 Binary files /dev/null and b/hack_infinity/Templates/images/bg3.jpg differ diff --git a/hack_infinity/Templates/images/bg4.png b/hack_infinity/Templates/images/bg4.png new file mode 100644 index 0000000..98afd98 Binary files /dev/null and b/hack_infinity/Templates/images/bg4.png differ diff --git a/hack_infinity/Templates/images/cloud.png b/hack_infinity/Templates/images/cloud.png new file mode 100644 index 0000000..5710f78 Binary files /dev/null and b/hack_infinity/Templates/images/cloud.png differ diff --git a/hack_infinity/Templates/images/final_homepage-removebg-preview (1).png b/hack_infinity/Templates/images/final_homepage-removebg-preview (1).png new file mode 100644 index 0000000..48b6253 Binary files /dev/null and b/hack_infinity/Templates/images/final_homepage-removebg-preview (1).png differ diff --git a/hack_infinity/Templates/images/logo copy.png b/hack_infinity/Templates/images/logo copy.png new file mode 100644 index 0000000..c589364 Binary files /dev/null and b/hack_infinity/Templates/images/logo copy.png differ diff --git a/hack_infinity/Templates/images/logo.png b/hack_infinity/Templates/images/logo.png index e8e3b05..c589364 100644 Binary files a/hack_infinity/Templates/images/logo.png and b/hack_infinity/Templates/images/logo.png differ diff --git a/hack_infinity/Templates/images/mountain.png b/hack_infinity/Templates/images/mountain.png new file mode 100644 index 0000000..e90d87b Binary files /dev/null and b/hack_infinity/Templates/images/mountain.png differ diff --git a/hack_infinity/Templates/images/p1.png b/hack_infinity/Templates/images/p1.png new file mode 100644 index 0000000..f4274a5 Binary files /dev/null and b/hack_infinity/Templates/images/p1.png differ diff --git a/hack_infinity/Templates/images/p2.png b/hack_infinity/Templates/images/p2.png new file mode 100644 index 0000000..edc739e Binary files /dev/null and b/hack_infinity/Templates/images/p2.png differ diff --git a/hack_infinity/Templates/images/p3.png b/hack_infinity/Templates/images/p3.png new file mode 100644 index 0000000..161ff6e Binary files /dev/null and b/hack_infinity/Templates/images/p3.png differ diff --git a/hack_infinity/Templates/images/p4.png b/hack_infinity/Templates/images/p4.png new file mode 100644 index 0000000..3a6e1ab Binary files /dev/null and b/hack_infinity/Templates/images/p4.png differ diff --git a/hack_infinity/Templates/images/start.png b/hack_infinity/Templates/images/start.png new file mode 100644 index 0000000..2296eb1 Binary files /dev/null and b/hack_infinity/Templates/images/start.png differ diff --git a/hack_infinity/Templates/index.html b/hack_infinity/Templates/index.html index c7c8333..8d250f8 100644 --- a/hack_infinity/Templates/index.html +++ b/hack_infinity/Templates/index.html @@ -1,127 +1,169 @@ - - - - - - - - - - - Eventofy - - - - -

- EvenTofy -

-

- Manage all your events with ease. -

-

- Say GOODBYE! to all the stress of planning and - - organising -
-
Effortlessely bring your event to life. -

-
-
- Login -
-
- -
-
- - Sign Up -
-
- {{msg }} -
- - bg image -
- - + + + + + + + GetStarted + + + + +
+
+ \ No newline at end of file diff --git a/hack_infinity/Templates/invite.html b/hack_infinity/Templates/invite.html new file mode 100644 index 0000000..ec568df --- /dev/null +++ b/hack_infinity/Templates/invite.html @@ -0,0 +1,20 @@ + + + + + + + Document + + + + + +
+ + + + +
+ + \ No newline at end of file diff --git a/hack_infinity/Templates/landing_page.html b/hack_infinity/Templates/landing_page.html index e1da071..ce08439 100644 --- a/hack_infinity/Templates/landing_page.html +++ b/hack_infinity/Templates/landing_page.html @@ -62,6 +62,11 @@ transition: all 0.3s ease; cursor: pointer; } + .my-invitation:hover,.my-invitation:hover,.my-invitation:hover{ + transform: scale(1.1); + transition: all 0.3s ease; + cursor: pointer; + } .schedule-event:hover , .schedule-event:hover , .schedule-event:hover{ transform: scale(1.1); @@ -116,16 +121,21 @@
  • About Us
  • {% endif %} +
    - Create Event + Create Event
    My Event
    +
    + My invitation +
    + \ No newline at end of file diff --git a/hack_infinity/Templates/login.html b/hack_infinity/Templates/login.html index 04be636..2fb4d20 100644 --- a/hack_infinity/Templates/login.html +++ b/hack_infinity/Templates/login.html @@ -16,6 +16,7 @@ +
    diff --git a/hack_infinity/harshita/my_invitations.html b/hack_infinity/Templates/my_event.html similarity index 100% rename from hack_infinity/harshita/my_invitations.html rename to hack_infinity/Templates/my_event.html diff --git a/hack_infinity/Templates/my_invitations.html b/hack_infinity/Templates/my_invitations.html new file mode 100644 index 0000000..12e8dc1 --- /dev/null +++ b/hack_infinity/Templates/my_invitations.html @@ -0,0 +1,120 @@ + + + + + + + + + + Schedule + + + + + + +
    + +

    Here is your day

    + +
    + +
    + +
    + +

    Here is your schedule

    +
    + {% for i in eves %} +
    + + +
    +
    + {% endfor %} + + +
    +
    +
    + + +
    + +
    + + + \ No newline at end of file diff --git a/hack_infinity/Templates/registration.html b/hack_infinity/Templates/registration.html index d6eba53..3d9501e 100644 --- a/hack_infinity/Templates/registration.html +++ b/hack_infinity/Templates/registration.html @@ -37,9 +37,9 @@
    - logo -

    We are EvenTofy

    +
    diff --git a/hack_infinity/Templates/schedue.html b/hack_infinity/Templates/rsvp.html similarity index 73% rename from hack_infinity/Templates/schedue.html rename to hack_infinity/Templates/rsvp.html index c4bf123..e5024b7 100644 --- a/hack_infinity/Templates/schedue.html +++ b/hack_infinity/Templates/rsvp.html @@ -9,10 +9,11 @@ Schedule + +
    -

    Here is your day

    - +

    You are invited by, Username

    +
    - +
    - +

    Here is your schedule

    -
    +
    +

    @@ -119,16 +137,21 @@

    Here is your schedule


    - - -
    -
    -
    - -
    +
    +

    Confirm your presence:

    + + + + + + +
    +
    + + \ No newline at end of file diff --git a/hack_infinity/Templates/schedule.html b/hack_infinity/Templates/schedule.html new file mode 100644 index 0000000..bc03870 --- /dev/null +++ b/hack_infinity/Templates/schedule.html @@ -0,0 +1,120 @@ + + + + + + + + + + Schedule + + + + +
    + + + + + \ No newline at end of file diff --git a/hack_infinity/Templates/schedule1.html b/hack_infinity/Templates/schedule1.html new file mode 100644 index 0000000..4650246 --- /dev/null +++ b/hack_infinity/Templates/schedule1.html @@ -0,0 +1,121 @@ + + + + + + + + + + Schedule + + + + +
    + +

    Here is your day

    + +
    + +
    + +
    +

    Here is your schedule

    + {% for i in eves %} +
    + + +
    +
    + {% endfor %} + + +
    +
    +
    + + +
    + + + + + +
    +
    + +
    + + + \ No newline at end of file diff --git a/hack_infinity/Templates/started.css b/hack_infinity/Templates/started.css new file mode 100644 index 0000000..1e9f5eb --- /dev/null +++ b/hack_infinity/Templates/started.css @@ -0,0 +1,122 @@ +*{ + margin: 0; + padding: 0; +} +body{ + background-image:url(./images/bg.jpg) ; + background-size: cover; + background-position: center; +} + +.main-container { + display: grid; + grid-template-rows: 1fr 3fr 4fr; + height:100h; + background-size: cover; + background-position: center; + margin-bottom: 2rem; + +} +.main-container .navbar{ + height: 75px; + width: 1200px; + margin: auto; + background-size: cover; + background-position: center; +} + + +.about{ + text-align: right; + color: #fff; + font-size: 20px; + font-family: dm sans; + margin-right: 350px; + margin-top: -5rem; + font-weight: bold; +} +.about a{ + text-decoration: none; + color: #fff; + background-color: #000; + padding: 1rem; + border-width: 1px; + padding-left: 1rem; + padding-top: 0.7rem; + padding-bottom: 0.7rem; + padding-right: 1rem; + +} +.about a:hover{ + background-color: #fff; + color: #000; + transition: all 0.5s ease-in-out; +} +.container-bottom{ + display: grid; + grid-template-columns: 1fr 1.5fr; + height: 100%; + width: 1200px; + margin: auto; + background-size: cover; + background-position: center; +} +.start-img{ + height: 100%; + width: 75%; + margin-left: 14rem; + +} +.container-middle{ + text-align: left; + height: 100%; + width: 100%; + margin: auto; + margin-top: 2rem; + font-size: 3rem; + font-family: Itim; + font-weight: bold; + +} +.right{ + font-size: 1.2rem; + font-family:ds sans; + color: #000; + margin-top: rem; + margin-bottom: 1rem; + padding: 1rem; + +} + +.button a{ + background-color: #8F7CF8; + + text-decoration: none; + color: #fff; + padding-left: 1rem; + padding-top: 0.7rem; + padding-bottom: 0.7rem; + padding-right: 1rem; + font-size: 1.2rem; + font-family: dm sans; + font-weight: bold; + margin-right: 30px; +} +.button { + margin-right: 60px; + margin-left: -310px; + margin-top: -5rem; +} +.button a:hover{ + background-color: #c87fd6; + + color: #000; + transition: all 0.5s ease-in-out; +} + +.icon img{ + height: 60px; + width: 150px; + margin-top: 1rem; +} + diff --git a/hack_infinity/hack_infinity/__pycache__/settings.cpython-310.pyc b/hack_infinity/hack_infinity/__pycache__/settings.cpython-310.pyc index 9b16493..b5d74a6 100644 Binary files a/hack_infinity/hack_infinity/__pycache__/settings.cpython-310.pyc and b/hack_infinity/hack_infinity/__pycache__/settings.cpython-310.pyc differ diff --git a/hack_infinity/hack_infinity/__pycache__/urls.cpython-310.pyc b/hack_infinity/hack_infinity/__pycache__/urls.cpython-310.pyc index b7dd12b..306d5ba 100644 Binary files a/hack_infinity/hack_infinity/__pycache__/urls.cpython-310.pyc and b/hack_infinity/hack_infinity/__pycache__/urls.cpython-310.pyc differ diff --git a/hack_infinity/hack_infinity/__pycache__/wsgi.cpython-310.pyc b/hack_infinity/hack_infinity/__pycache__/wsgi.cpython-310.pyc index 475b50c..07cc552 100644 Binary files a/hack_infinity/hack_infinity/__pycache__/wsgi.cpython-310.pyc and b/hack_infinity/hack_infinity/__pycache__/wsgi.cpython-310.pyc differ diff --git a/hack_infinity/hack_infinity/settings.py b/hack_infinity/hack_infinity/settings.py index 925a02e..96be5ac 100644 --- a/hack_infinity/hack_infinity/settings.py +++ b/hack_infinity/hack_infinity/settings.py @@ -57,6 +57,9 @@ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [os.path.join(BASE_DIR,"Templates")], + # os.path.join(BASE_DIR,"harshita"), + # os.path.join(BASE_DIR,"Khushi"), + # os.path.join(BASE_DIR,"prem")], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ diff --git a/hack_infinity/harshita/EvenTofy.pdf b/hack_infinity/harshita/EvenTofy.pdf deleted file mode 100644 index 9cdd754..0000000 Binary files a/hack_infinity/harshita/EvenTofy.pdf and /dev/null differ diff --git a/hack_infinity/harshita/bg_1.jpeg b/hack_infinity/harshita/bg_1.jpeg deleted file mode 100644 index 9496d41..0000000 Binary files a/hack_infinity/harshita/bg_1.jpeg and /dev/null differ diff --git a/hack_infinity/harshita/create_event.html b/hack_infinity/harshita/create_event.html deleted file mode 100644 index 0990ed5..0000000 --- a/hack_infinity/harshita/create_event.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - - - - - Create event - - - - -
    -
    -

    Create Your events here!

    - - -
    - - -
    -

    Enter flow of events

    - - -
    - - -
    - - -
    - - -
    - - -
    - - -
    - -
    -
    - - - \ No newline at end of file diff --git a/hack_infinity/harshita/event.jpeg b/hack_infinity/harshita/event.jpeg deleted file mode 100644 index 5f9b8b2..0000000 Binary files a/hack_infinity/harshita/event.jpeg and /dev/null differ diff --git a/hack_infinity/harshita/home.html b/hack_infinity/harshita/home.html deleted file mode 100644 index b4ae215..0000000 --- a/hack_infinity/harshita/home.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - Document - - - - - \ No newline at end of file diff --git a/hack_infinity/harshita/script.js b/hack_infinity/harshita/script.js deleted file mode 100644 index 3206e30..0000000 --- a/hack_infinity/harshita/script.js +++ /dev/null @@ -1,7 +0,0 @@ -function displayPrompt() { - var result = prompt("Enter some text:"); - if (result != null) { - alert("You entered: " + result); - } - return false; -} diff --git a/hack_infinity/prem/prem.html b/hack_infinity/prem/prem.html deleted file mode 100644 index e69de29..0000000 diff --git a/hack_infinity/website/__pycache__/admin.cpython-310.pyc b/hack_infinity/website/__pycache__/admin.cpython-310.pyc index 767ffd6..361aa3a 100644 Binary files a/hack_infinity/website/__pycache__/admin.cpython-310.pyc and b/hack_infinity/website/__pycache__/admin.cpython-310.pyc differ diff --git a/hack_infinity/website/__pycache__/apps.cpython-310.pyc b/hack_infinity/website/__pycache__/apps.cpython-310.pyc index c3fa57f..564bde2 100644 Binary files a/hack_infinity/website/__pycache__/apps.cpython-310.pyc and b/hack_infinity/website/__pycache__/apps.cpython-310.pyc differ diff --git a/hack_infinity/website/__pycache__/models.cpython-310.pyc b/hack_infinity/website/__pycache__/models.cpython-310.pyc index c3a799c..b701f49 100644 Binary files a/hack_infinity/website/__pycache__/models.cpython-310.pyc and b/hack_infinity/website/__pycache__/models.cpython-310.pyc differ diff --git a/hack_infinity/website/__pycache__/urls.cpython-310.pyc b/hack_infinity/website/__pycache__/urls.cpython-310.pyc index e237153..1bcbe31 100644 Binary files a/hack_infinity/website/__pycache__/urls.cpython-310.pyc and b/hack_infinity/website/__pycache__/urls.cpython-310.pyc differ diff --git a/hack_infinity/website/__pycache__/views.cpython-310.pyc b/hack_infinity/website/__pycache__/views.cpython-310.pyc index f19a085..50240ec 100644 Binary files a/hack_infinity/website/__pycache__/views.cpython-310.pyc and b/hack_infinity/website/__pycache__/views.cpython-310.pyc differ diff --git a/hack_infinity/website/admin.py b/hack_infinity/website/admin.py index 89c7013..c763e1f 100644 --- a/hack_infinity/website/admin.py +++ b/hack_infinity/website/admin.py @@ -1,6 +1,7 @@ from django.contrib import admin -from .models import Invitation,Invitation_confirmation,CreateEventInfo +from .models import Invitation,Invitation_confirmation,CreateEventInfo,events # Register your models here. admin.site.register(Invitation) admin.site.register(Invitation_confirmation) admin.site.register(CreateEventInfo) +admin.site.register(events) diff --git a/hack_infinity/website/migrations/0012_events.py b/hack_infinity/website/migrations/0012_events.py new file mode 100644 index 0000000..ab1b6bf --- /dev/null +++ b/hack_infinity/website/migrations/0012_events.py @@ -0,0 +1,19 @@ +# Generated by Django 4.1.6 on 2023-02-04 19:06 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('website', '0011_alter_createeventinfo_date_and_more'), + ] + + operations = [ + migrations.CreateModel( + name='events', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ], + ), + ] diff --git a/hack_infinity/website/migrations/0013_remove_invitation_confirmation_response.py b/hack_infinity/website/migrations/0013_remove_invitation_confirmation_response.py new file mode 100644 index 0000000..5ed8f17 --- /dev/null +++ b/hack_infinity/website/migrations/0013_remove_invitation_confirmation_response.py @@ -0,0 +1,17 @@ +# Generated by Django 4.1.6 on 2023-02-04 21:20 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('website', '0012_events'), + ] + + operations = [ + migrations.RemoveField( + model_name='invitation_confirmation', + name='Response', + ), + ] diff --git a/hack_infinity/website/migrations/__pycache__/0006_delete_invitation_delete_name_delete_user_info.cpython-310.pyc b/hack_infinity/website/migrations/__pycache__/0006_delete_invitation_delete_name_delete_user_info.cpython-310.pyc index b8f81ad..0d6007f 100644 Binary files a/hack_infinity/website/migrations/__pycache__/0006_delete_invitation_delete_name_delete_user_info.cpython-310.pyc and b/hack_infinity/website/migrations/__pycache__/0006_delete_invitation_delete_name_delete_user_info.cpython-310.pyc differ diff --git a/hack_infinity/website/migrations/__pycache__/0007_initial.cpython-310.pyc b/hack_infinity/website/migrations/__pycache__/0007_initial.cpython-310.pyc index 24015f4..50aa8bc 100644 Binary files a/hack_infinity/website/migrations/__pycache__/0007_initial.cpython-310.pyc and b/hack_infinity/website/migrations/__pycache__/0007_initial.cpython-310.pyc differ diff --git a/hack_infinity/website/migrations/__pycache__/0008_invitation_confirmation.cpython-310.pyc b/hack_infinity/website/migrations/__pycache__/0008_invitation_confirmation.cpython-310.pyc index 51728ec..17772a9 100644 Binary files a/hack_infinity/website/migrations/__pycache__/0008_invitation_confirmation.cpython-310.pyc and b/hack_infinity/website/migrations/__pycache__/0008_invitation_confirmation.cpython-310.pyc differ diff --git a/hack_infinity/website/migrations/__pycache__/0009_invitation_confirmation_response.cpython-310.pyc b/hack_infinity/website/migrations/__pycache__/0009_invitation_confirmation_response.cpython-310.pyc index a3662d2..f972498 100644 Binary files a/hack_infinity/website/migrations/__pycache__/0009_invitation_confirmation_response.cpython-310.pyc and b/hack_infinity/website/migrations/__pycache__/0009_invitation_confirmation_response.cpython-310.pyc differ diff --git a/hack_infinity/website/migrations/__pycache__/0010_createeventinfo_and_more.cpython-310.pyc b/hack_infinity/website/migrations/__pycache__/0010_createeventinfo_and_more.cpython-310.pyc index 7a91151..c8456e2 100644 Binary files a/hack_infinity/website/migrations/__pycache__/0010_createeventinfo_and_more.cpython-310.pyc and b/hack_infinity/website/migrations/__pycache__/0010_createeventinfo_and_more.cpython-310.pyc differ diff --git a/hack_infinity/website/migrations/__pycache__/0011_alter_createeventinfo_date_and_more.cpython-310.pyc b/hack_infinity/website/migrations/__pycache__/0011_alter_createeventinfo_date_and_more.cpython-310.pyc index 9752a32..112efe5 100644 Binary files a/hack_infinity/website/migrations/__pycache__/0011_alter_createeventinfo_date_and_more.cpython-310.pyc and b/hack_infinity/website/migrations/__pycache__/0011_alter_createeventinfo_date_and_more.cpython-310.pyc differ diff --git a/hack_infinity/website/migrations/__pycache__/0012_events.cpython-310.pyc b/hack_infinity/website/migrations/__pycache__/0012_events.cpython-310.pyc new file mode 100644 index 0000000..61937c4 Binary files /dev/null and b/hack_infinity/website/migrations/__pycache__/0012_events.cpython-310.pyc differ diff --git a/hack_infinity/website/migrations/__pycache__/0013_remove_invitation_confirmation_response.cpython-310.pyc b/hack_infinity/website/migrations/__pycache__/0013_remove_invitation_confirmation_response.cpython-310.pyc new file mode 100644 index 0000000..92aa5d4 Binary files /dev/null and b/hack_infinity/website/migrations/__pycache__/0013_remove_invitation_confirmation_response.cpython-310.pyc differ diff --git a/hack_infinity/website/models.py b/hack_infinity/website/models.py index 7a5f352..816e4f0 100644 --- a/hack_infinity/website/models.py +++ b/hack_infinity/website/models.py @@ -21,6 +21,7 @@ class CreateEventInfo(models.Model): date=models.DateField('date',max_length=32) sub_event=models.CharField('sub_event',max_length=32) time=models.TimeField('time',max_length=32) + # venue=models.CharField('venue',max_length=32) @@ -35,18 +36,23 @@ def __str__(self): class Invitation_confirmation(models.Model): username=models.CharField('Username',max_length=32) Invitee=models.CharField('Invitee',max_length=32) - Response=models.CharField('Response',max_length=32,default='No') - def create(username,invitee,response): - book = Invitation(username=username,Invitee=invitee,Response=response) + def create(username,invitee): + book = Invitation_confirmation(username=username,Invitee=invitee) + # do something with the book return book def __str__(self): return self.username +class events(models.Model): + id:int + event:str + time:str + # class user_info(models.Model): # username=models.CharField('username',max_length=32) # invitee=models.CharField('invitee',max_length=32) diff --git a/hack_infinity/website/urls.py b/hack_infinity/website/urls.py index 6fe1fc1..0428842 100644 --- a/hack_infinity/website/urls.py +++ b/hack_infinity/website/urls.py @@ -13,10 +13,13 @@ path('logging',views.logging,name='logging'), path('logout',views.logout,name='logout'), path('inviting',views.inviting,name='inviting'), + path('invite',views.invite,name='invite'), path('create_event',views.create_event,name='create_event'), path('create_schedule',views.create_schedule,name='create_schedule'), path('show_event_details',views.show_event_details,name='show_event_details'), - # path('landing_page',views.landing_page,name='landing_page'), + path('rsvp',views.rsvp,name='rsvp'), + path('eventofy',views.eventofy,name='eventofy'), + path('landing_page',views.landing_page,name='landing_page'), # path('display_names',views.display_names,name='display_names'), # path('send_mail',views.send_mail,name='send_mail'), # path('sending_mail',views.sending_mail,name='sending_mail'), diff --git a/hack_infinity/website/views.py b/hack_infinity/website/views.py index 024d09f..9462347 100644 --- a/hack_infinity/website/views.py +++ b/hack_infinity/website/views.py @@ -1,53 +1,96 @@ from django.shortcuts import render from django.contrib.auth.models import User,auth -from .models import Invitation,Invitation_confirmation,CreateEventInfo +from django.contrib.auth.decorators import login_required +from .models import Invitation,Invitation_confirmation,CreateEventInfo,events from django.db import connection # Create your views here.def register(request): # def send_mail(request): # return render(request,'send_mail.html') +def invite(request): + return render(request,'invite.html') + +def eventofy(request): + return render(request,'eventofy.html') def inviting(request): + username=request.GET['admin'] numb_of_people=request.GET['users'] list=numb_of_people.split(',') - username=request.GET['admin'] - print(list) + # print(username) # curr=request.user # invitee=User.username invitee=username - print(username) + print(list) + # print(numb_of_people) for i in list: + print(i) invitation=Invitation.create(username=i,invitee=invitee) invitation.save() - return render(request,'registration.html') + return render(request,'landing_page.html',{'msg':numb_of_people,'msg2':username}) def create_event(request): return render(request,'create_event.html') +def rsvp(request): + return render(request,'rsvp.html') + def create_schedule(request): event_name=request.GET.get('event_name') venue=request.GET.get('venue') date=request.GET.get('date') + list_event=['event1','event2','event3','event4','event5','event6'] list_time=['time1','time2','time3','time4','time5','time6'] + x=0 for i in range(6): - sub_event=request.GET.get(list_event[i]) - time=request.GET.get(list_time[i]) - new=CreateEventInfo.create(event_name=event_name,venue=venue,date=date,sub_event=sub_event,time=time) - # print(sub_event) - new.save() - # print(sub_event) - return render(request,'schedue.html') + # if x==0: + sub_event=request.GET.get(list_event[i]) + time=request.GET.get(list_time[i]) + new=CreateEventInfo.create(event_name=event_name,venue=venue,date=date,sub_event=sub_event,time=time) + new.save() + # x+=1 + # else: + # return render(request,'landing_page.html ') + event1=events() + event1.event=request.GET.get('event1') + event1.time=request.GET.get('time1') -def show_event_details(request): + event2=events() + event2.event=request.GET.get('event2') + event2.time=request.GET.get('time2') + + event3=events() + event3.event=request.GET.get('event3') + event3.time=request.GET.get('time3') + event4=events() + event4.event=request.GET.get('event4') + event4.time=request.GET.get('time4') + + event5=events() + event5.event=request.GET.get('event5') + event5.time=request.GET.get('time5') + + event6=events() + event6.event=request.GET.get('event6') + event6.time=request.GET.get('time6') + + userid=request.user.username + print(userid) + + eves=[event1,event2,event3,event4,event5,event6] + return render(request,'my_invitations.html',{'event_name':event_name,'venue':venue,'date':date,'eves':eves,'user':userid}) + +def show_event_details(request): + userid = request.user values=CreateEventInfo.objects.values_list('event_name') x=list(values) print(x) for i in x: if i==('hackathon',): print("\n yes") - return render(request,'index.html') + return render(request,'index.html',{'user':userid}) # invitee=request.user # print(invitee) @@ -116,10 +159,12 @@ def logging(request): password=request.POST['pw'] user=auth.authenticate(username=username,password=password) if user is not None: - return render(request,'D:\Programming\Web developement\hack_infinity\Templates\landing_page.html',{'user':user }) + + return render(request,'landing_page.html',{'user':user}) -# def landing_page(request): -# return render(request,'landing_page.html') +def landing_page(request): + return render(request,'landing_page.html') + def logout(request): auth.logout(request)