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.
1) Model
2) Form
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.
Field Description
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.
If admin click on delete icon on page 1, then using javascript it will ask admin that are you sure you want to delete it? And if admin select yes it will be first back up that row into table called “deletedevents” and then it will delete from main table This way I can always have back up. the list if admin select no then it wont be cancelled. There is no separate page for delete confirmation.
3) Change history, it will show all changes made
fields to displays are
Date
Action
Oldvalue
New value
Username (Last modified by user is stored in session )
Validations
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.
Hi,
I read the project and i think i understood it. This is a simple project in django. All you have to do is to create some models and forms for the events. You will provide the template, so i don't have to be care about that. I think this is best suited for me as i am new to freelancer.