This is a very small project or object development in DJANGO/PYTHON.
What I want you to make is following flow:
Admin will login using username and password and its username will be stored into session
You need to create following items for the object EVENT so admin can insert/update/delete it.
3) Template (I will provide you template but you have to make all the adjustment to make it work.)
Admin will login using username and password and its username will be stored into session. After login admin goes to event page. event page has 3 sections as follow:
1) Click here to add new Event
When admin click on link1 it take him to page 2 which fields for following inputs and save/cancel button.
Event Title Title of the event
Start Date Date Event start
Start Time Time (H : M am/pm) event start
End Date Date Event End
End Time Time (H : M am/pm) Event end
All Day Event Boolen if it is all day event or not. If it is selected start time and end time doesn’t apply
Desc ( Text area) Description of the event
Picture Picture related to event
Location textbox(Null allowed)
If admin click on save, form will be validated and values get store in database and admin return on Event listing page (page 1) If form doesn’t get validated admin will stay on entry page and display appropriate errors:
How picture needs to be saved:
Medial Root ? Photos ? loggedin user id ? events ? image
If image name is already exists in that folder then change the file name to , etc. so there will be never duplicate.
2) Table with all existing Event names and delete icon for deleting each Event one by one.
If admin click on Event name then it will take admin to page 2 which is same form but with already populated data. Admin can modified any of the data and save it.
3) Change history, it will show all changes made
fields to displays are
Username (Last modified by user is stored in session )
Event title can have must be a-zA-Z
Start date and start time cannot be less than end date and endtime
If all day event is selected then we don’t to save time
Image file must be less than 2 mb
Desc is WYSIWYG. Min required characters are 100. And max is 1000. We need to display how many characters left at bottom.
I will provide template you have to just adjust it to meet requirement.