Learn anything, with your peers.

At P2PU, people work together to learn a particular topic by completing tasks, assessing individual and group work, and providing constructive feedback.

This course will become read-only in the near future. Tell us at community.p2pu.org if that is a problem.

Activity Wall

    posted message: Hey guys, don't forget to post your tasks!
    posted message: For example sake, let say we have two models a Project and Student model. The Project model has two fields(name and num_of_students) and the Student model has two fields(name and project) but the project field of the Student model is a ForeignKey(Project). Know I know to fill out data to the project model, I will write something like: >> p = Project(name='Django', num_of_students=1) >>p.save() But for the Student field I am confused on how to fill any data I got a solution from the Django online documentation which was about a Blog scenario but I am confused on how to implement the solution. Can any one maybe try to fill out any sort of data for the Student model so I can see how it is done so I can understand this part. Thanks
    posted message: Hi everyone, I need some help with my django model, particularly on ForeignKey and ManyToMany Fields. The problem is I am not able to create object for these fields(not able to fill in and save data). The first time I tried I got a value error (ValueError) that says the Model.field must be an instance of another model so I checked for solutions and found some but now I am more confuse on how to implement these solutions, so I was hopping any one could give me an example on how the following hypothetical models could be filled and with that I would understand better. So I will send a second message that will simulate a School data and will help you understand my problem better. Thanks.
    posted message: Check out CoderBuddy (https://coderbuddy1.appspot.com/go/testinghn) it allows you to create webapps online and directly deploy it to the Google App Engine. Will be useful if you plan to publish the code you develop here online.
    posted message: Please vote on the class project we will be focusing on as we move through this course. We'll go with the one that gets the most votes! http://poll.fm/333m4
    posted message: I've posted the course syllabus in the External Links section. You can view it here: https://docs.google.com/document/d/1pegpn6vRRyI3NqtpUR5sTNe5Y5j7wEtqmdUVcdzfMe8/edit?hl=en_US This may be changed and updated once we get deeper into the course.