Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add_event #28

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

add_event #28

wants to merge 2 commits into from

Conversation

Shivani-15
Copy link

I have added the code to create a new event in app and added two entries (eventTime and eventVenue) in createdatabase. Please have a look and suggest the necessary changes.

Copy link
Member

@Milind712000 Milind712000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Remove the file Make_Tables/pycache/mysqlconnect.cpython-37.pyc , infact create a .gitignore and add pycache to it

app.py Outdated
@@ -20,5 +21,25 @@ def Login():
flash('Login Unsuccessful. Invalid Email/Password')
return render_template('login.html',title='Login | SAC Portal, IIT Mandi',form=form)

@app.route("/add_event",methods=['GET'])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Make this route, POST only

@Shivani-15
Copy link
Author

I have done the changes and also changed the eventID to autoincrement. Please have a look.

@dheeraj135 dheeraj135 mentioned this pull request Apr 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants