User Controls
Polls
-
2017-03-17 at 6:56 PM UTCI like polls to be added so that we can vote.
-
2017-03-17 at 7:47 PM UTCSomething something github, something something pull request.
-
2017-03-17 at 8:13 PM UTCThis would be a good begainer project
-
2017-03-17 at 8:22 PM UTC
class PollForm(ModelForm):
class Meta:
model = Poll
Poll form.
class ChoiceForm(ModelForm):
class Meta:
model = Choice
fields = ('choice',)
Choice form.
def index(request):
return render_to_response('index.html', context_instance = RequestContext(request),)
This goes in index.py
url(r'^$', 'poll_tutorial.polls.views.index', name = 'index'),
This goes in urls.py
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Poll Manager Home</title>
</head>
<body>
<p>Welcome!</p>
<p><a href="{% url polls %}">View Polls</a></p>
<p><a href="{% url add_poll %}">Add a poll</a></p>
</body>
</html>
Here is our template.
It took me literally 5 minutes to find this code. This is Python, this is Django, 100% compatible with forum sauce, it will probably need some tweaking. Look at the source for ISS on Github, figure out where these pieces of code should live and fork ISS over. Add your changes and go to the original ISS page to submit a pull request. Lanny will be with you shortly. -
2017-03-17 at 8:26 PM UTCThat looks easy.
-
2017-03-17 at 8:27 PM UTC
-
2017-03-19 at 6:07 AM UTCYeah, I'm not opposed to the idea of polls but I have a lot of other things that have higher priority, I invite someone to take it up if they're interested (you can also get credit in our SUPER EXCLUSIVE humans.txt). The Django tutorial is literally "how do I make a polls app".
Post last edited by Lanny at 2017-03-22T07:01:00.744693+00:00 -
2017-03-19 at 2:19 PM UTC
Originally posted by Lanny Yeah, I'm not opposed to the idea of polls but I have a lot of other things that have higher priority, I invite someone to take it up if they're interested (you can also get credit in our SUPER EXCLUSIVE humans.txt). The [link=https://docs.djangoproject.com/en/1.10/intro/tutorial01/]Django tutorial[/link] is literally "how do I make a polls app".
Humans.txt is funny.
/* LEAD ALCOHOLIC */
Lon Lon -
2017-03-19 at 4:38 PM UTCVOTE IS HARUMM.
-
2017-03-21 at 7:53 AM UTCbumping i need a poll right now we used to have em. tell me how to code it I have meth I will do it just tell me how ill do the legwork just tell me how.
All I know is Django, github and pulls. -
2017-03-22 at 3:40 AM UTC
Originally posted by Lanny The [link=https://docs.djangoproject.com/en/1.10/intro/tutorial01/]Django tutorial[/link] is literally "how do I make a polls app".
Not Found. lol. -
2017-03-22 at 3:42 AM UTCive never been to poland but from what i hear, poloks are not considered ideal as members of an online community. just ask archie bunker...
-
2017-03-22 at 4 AM UTC100 horses django
-
2017-03-22 at 4 AM UTC22 chiken *nandoz*
-
2017-03-22 at 7:01 AM UTC