Line 6 of polls/views, should be:
def index(request):
instead of
def index*[*request*]*:
Python function names get arguments using parenthesis, not square brackets.
Fidel Leon
El 28 de abril de 2018 a las 13:54:13, giwon@nexstreaming.com (
giwon@nexstreaming.com) escribió:
I did
itten (you
have three function returns). Seems you are following the tutorial but not
removing the previous examples:
def index(request):
latest_question_list = Question.objects.order_by('-pub_date')[:5]
context = {'latest_question_list': latest_question_list}
retur
users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/djang
email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAJ0SFUA52autPYk95a9s4t%2BHXzdx-OYgj%3DzLyfynYX9XiM%3D6NQ%40mail.gmail.com
> <https:
thing, so django-admin gets fooled.
I haven’t used Comodo for decades so I can’t help with this exact issue,
sorry - maybe disabling the antivirus while you’re at Django? O:-)
Fidel Leon
fi...@flm.cat
El 3 de mayo de 2018 a las 18:19:06, Duška Miloradović (
daisyfields...@gmail.com) escribió
ion_id):
return HttpResponse("You're voting on question %s." % question_id)
As a matter of advice, please use a fixed-width font when pasting code,
because Python is indented with spaces and using any other type of font
makes reading your mail difficult :)
El jue., 3 may. 2018
ommxT%3DCLjabwVo0T5ubJ-z8GhN8xwbCXMFcEHXpjR4DEw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
Fidel Leon
fi...@flm.cat
Phone: +34 622 26 44 92
--
You received this message because you are subscribed to
ups.google.com/d/msgid/django-users/CAMOFmommxT%3DCLjabwVo0T5ubJ-z8GhN8xwbCXMFcEHXpjR4DEw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAMOFmommxT%3DCLjabwVo0T5ubJ-z8GhN8xwbCXMFcEHXpjR4DEw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit htt
end an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django
scribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https:
You are using the wrong combination of Django and tutorial: “include” is
available in Django 2 and up, but you’re using Django 1.11.
Fidel Leon
fi...@flm.cat
Phone: +34 622 26 44 92
GPG: 2585 30C2 E3C7 7151 0864 946B 7423 F94B 5753 5FC7
El 17 de mayo de 2018 a las 20:56:56, Tristan Demot
El vie., 18 may. 2018 a las 16:20, Journal-Immo ()
escribió:
> Thank
>
> But (I use debian 9)
>
> Apt-get update
>
> Apt-get install python python3 python-django
>
> django-admin --version 1.11.13
>
> Where is the problem ?
>
> Le 17/05/2018 à 21:01, Fidel Leon
% *reachable from the Internet*:
MySQL Error 1045 (28000): Access denied for user 'root'@'92.187.87.65'
(using password: YES)
Not the best idea...
Fidel Leon
fi...@flm.cat
Phone: +34 622 26 44 92
GPG: 2585 30C2 E3C7 7151 0864 946B 7423 F94B 5753 5FC7
El 19 de mayo de 2018 a las 0:
see the "error".
Fidel Leon
fi...@flm.cat
Phone: +34 622 26 44 92
El día 25 de mayo de 2018 a las 3:43:19, James Farris (
jamesafar...@gmail.com) escrito:
> If you open the app once the server is started by going to 127.0.0.1:8000
> is it loading the website or are you getting a 404
/groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/85ba21bf-3c98-4bbe-877f-716eff7b73d2%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/85ba21bf-3c98-4bbe-877f-716eff7b73d2%40googleg
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/0e27456c-eefa-4a1e-bf4f-a44d9e8dcad1%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/0e27456c-eefa
s group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/5f518cba-fcdc-4b2a-9f75-fad87b0e3cd0%40googlegroups.com
> <https://groups
17 matches
Mail list logo