+ 1

How to create a booking form?

Can anyone help me start my project? Project requirements: Allow users to fill out a form requesting an appointment with a service provider. - the service provider I chose is barbershop Input - the service the user needs - the best day for the appointment - the best time for the appointment Other requirements - Sunday is closed; must have a return message saying is closed in this day if user chooses Sunday - day dictionary {“Monday”: [“will”, “Eddie”, “Dave”] - time dictionary {“will”:[“8:00 am”,ext

30th Mar 2024, 7:41 PM
Ive
10 ответов
+ 6
To start: Take a piece of paper and create some headings of each requirement of the task. Under each heading, write what steps/information you need to create that heading, where does it link to, how does it do that, etc... Then start writing some pseudocode for each step you've write under each heading.
30th Mar 2024, 9:16 PM
Ausgrindtube
Ausgrindtube - avatar
+ 3
It seems you have a specific requirement, using Jinja module to complete the task. Frankly, I don't have any knowledge on Jinja and Flask (them seems to working side by side, with HTML included). However, I found this link which might give you a general idea how to code with Jinja module. https://realpython.com/primer-on-jinja-templating/
31st Mar 2024, 7:16 AM
Wong Hei Ming
Wong Hei Ming - avatar
+ 2
paula mcconville You are saying that you are a beginner. This project is a pretty advanced task, even for someone who has been studying programming for several months. To build a web application you need to have an understanding of not only Python (including how the built in data structures work, such as lists and dictionaries), but also HTML, client-server architecture, HTTP communication methods, templating. This type of program is usually implemented with a web framework such as Flask, Django, (or there are countless more of those from simple to very complex). Are you clear with all of these pre-requisites, or at least do you understand WHAT it is that you don't know yet? If you are uncertain I suggest you start with more basic stuff, and take the beginner python and beginner web development courses on Sololearn.
1st Apr 2024, 5:54 AM
Tibor Santa
Tibor Santa - avatar
+ 1
Didnt have enough space up top Output -what the price will be -possible days of appointment or the perfect day -possible time of appointment or the perfect day -The person who will be serving them Other requirements - If the person types a service that is not in the dictionary, return an error message using the error template -If the user chooses Sunday return the “we are closed” template -all of the output information information should be stored in a dictionary and use Jinja to display the information -The form should be submitted as a post request -FOR PYTHON Im a BEGINNER! Anyone have tutorals or links for how to create this. I really need to see it visually
30th Mar 2024, 7:45 PM
Ive
0
paula mcconville , I don't know how to create a "form" with Python. That sounds like HTML. However, Python can take text input from the user by calling the input() function. https://docs.python.org/3/library/functions.html#input Input can't be interactive on Sololearn though. The user is required to enter all data before the program runs, unlike when running a program in an IDE. Better start with one input instead of twenty to get the hang of it.
31st Mar 2024, 4:32 AM
Rain
Rain - avatar
0
If you are not a developer then you need to hire a developer to make it. Once I need to develop a website https://pkg2day.com/service/cargo-van-services/ so I hired a developer and he did an amazing job.
31st Mar 2024, 9:57 AM
Alex Shawn
Alex Shawn - avatar
0
from PIL import Image, ImageDraw, ImageFont # Create a blank image with white background image = Image.new("RGB", (800, 600), "white") draw = ImageDraw.Draw(image) # Add text text = "Delicious Food" font = ImageFont.truetype("arial.ttf", 48) text_width, text_height = draw.textsize(text, font=font) text_position = ((800 - text_width) // 2, 50) draw.text(text_position, text, font=font, fill="black") # Load and paste food images food_images = [ Image.open("food_image1.jpg"), Image.open("food_image2.jpg"), Image.open("food_image3.jpg") ] y_offset = 150 for food_image in food_images: food_image = food_image.resize((300, 200)) image.paste(food_image, (50, y_offset)) y_offset += 250 # Save the image image.save("food_collage.png") image.show()
31st Mar 2024, 12:13 PM
Maryam Yas
Maryam Yas - avatar
0
Maryam Yas , Could you save that in the playground, debug it, and share the link?
31st Mar 2024, 12:34 PM
Rain
Rain - avatar