Re: Using the URLconf defined in polls.urls, Django tried these URL patterns, in this order

2018-10-21 Thread Manjunath
I think you have a space in your url path. replace path(' ', views.index, name='index') with path('', views.index, name='index') in your polls/urls.py and check the result. On Friday, October 19, 2018 at 4:59:10 PM UTC+5:30, Bugs Bunny wrote: > > Greetings django team, I'm a newbie with this fra

Re: test error

2018-10-21 Thread Tommaso Bellini
What does mean 'f' ? It is not imported or instanced..what is it? Il dom 21 ott 2018, 06:24 Tim Vogt (Tim Vogt) ha scritto: > I try to make a test with has an error > any suggestions? > tim > > > expected_author = f'{post.author} > ^ > SyntaxError: EOL whi

Re: test error

2018-10-21 Thread Joel
He's using literal string interpolation. Read: https://www.python.org/dev/peps/pep-0498/ On Sun, 21 Oct, 2018, 5:49 PM Tommaso Bellini, wrote: > What does mean 'f' ? It is not imported or instanced..what is it? > > Il dom 21 ott 2018, 06:24 Tim Vogt (Tim Vogt) ha > scritto: > >> I try to make a

Re: test error

2018-10-21 Thread Joel
What is your version of python? f strings were introduced in 3.6 On Sun, 21 Oct, 2018, 9:54 AM Tim Vogt (Tim Vogt), wrote: > I try to make a test with has an error > any suggestions? > tim > > > expected_author = f'{post.author} > ^ > SyntaxError: EOL whil

Re: test error

2018-10-21 Thread Motaz Hejaze
f'{}' is not supported On Sun, Oct 21, 2018 at 2:29 PM Joel wrote: > What is your version of python? f strings were introduced in 3.6 > > On Sun, 21 Oct, 2018, 9:54 AM Tim Vogt (Tim Vogt), > wrote: > >> I try to make a test with has an error >> any suggestions? >> tim >> >> >> expected_auth

Re: Using the URLconf defined in polls.urls, Django tried these URL patterns, in this order

2018-10-21 Thread Motaz Hejaze
first , no spaces are allowed in URLS as Manjunath said replace path(' ', views.index, name='index') with path('', views.index, name='index') in your polls/urls.py and check the result. second , run the server python manage.py runserver third check the url go to http://127.0.0.1:8000/polls On S

Re: generate username and password

2018-10-21 Thread fatoubinetou196
Okae! pourquoi c'est mauvais pour le mot de passe? Le vendredi 19 octobre 2018 01:24:54 UTC, fatoubi...@gmail.com a écrit : > > Bonjour! Je voudrais lorsqu'un utilisateur s'inscrit avec ses informations > personnelles puis soumet le formulaire, je lui génère un nom d'utilisateur > et un mot de p

[channels] 2.1.4 - Removing Javascript library entirely

2018-10-21 Thread kradem
Hi everyone! The subject is related to https://github.com/django/channels/commit/2a9d764ad03927581aa2bfcadccc3e953949cb98 > It was very unmaintained, and having it in here sends the wrong message about it being useful and reliable. I used to include the javascript in my templates with: I su

Re: [channels] 2.1.4 - Removing Javascript library entirely

2018-10-21 Thread Andrew Godwin
That's about right - you should ship and maintain the file yourself now. Andrew On Sun, 21 Oct 2018, 09:04 kradem, wrote: > Hi everyone! > > The subject is related to > https://github.com/django/channels/commit/2a9d764ad03927581aa2bfcadccc3e953949cb98 > > > It was very unmaintained, and having

How can I implement built in signals, for my app?

2018-10-21 Thread Joel Mathew
How to implement built in signals, for my app? I have a project myappointments, with two apps appointments and clinic in it. Objective: When a user logins, details should be entered in the database. appointments/models.py: class Event(models.Model): id=models.AutoField(primary_key=T

Re: [channels] 2.1.4 - Removing Javascript library entirely

2018-10-21 Thread kradem
Ok, thank you very much for your answer! Dana nedjelja, 21. listopada 2018. u 18:47:14 UTC+2, korisnik Andrew Godwin napisao je: > > That's about right - you should ship and maintain the file yourself now. > > Andrew > > On Sun, 21 Oct 2018, 09:04 kradem, > wrote: > >> Hi everyone! >> >> The subj

Template Issues

2018-10-21 Thread Dennis Alabi
i am Building Django 2.0 Web Applications, template is not rendering with boottrap3. -- You received this message because you are subscribed 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...@go

Re: Template Issues

2018-10-21 Thread vineeth sagar
Do you mean bootstrap? STL doesn't care about that and it's not clear what you mean. Can you share the code so that we can help you. On Oct 22, 2018 12:14 AM, "Dennis Alabi" wrote: > i am Building Django 2.0 Web Applications, template is not rendering with > boottrap3. > > -- > You received this

Re: Template Issues

2018-10-21 Thread Siddharth Tamang
Are you getting any exception? Share with us the error that you are seeing On Mon, Oct 22, 2018 at 12:18 AM vineeth sagar wrote: > Do you mean bootstrap? STL doesn't care about that and it's not clear what > you mean. Can you share the code so that we can help you. > > On Oct 22, 2018 12:14 AM,

API Django

2018-10-21 Thread Phako Perez
Hi all, i'm really new on Django, trying to create an RESTful API, and getting this error: curl -i -U Elly:Elly -H "Content-Type: application/json" -X GET http://192.168.100.22:8000/schedule/3/ HTTP/1.1 403 Forbidden Date: Mon, 22 Oct 2018 05:44:40 GMT Server: WSGIServer/0.2 CPython/3.6.3 Co

Re: API Django

2018-10-21 Thread 'Vinod Kumar' via Django users
Remove Isauthenticated from rest_framework in settings.py On Mon, Oct 22, 2018, 11:22 AM Phako Perez <13.phak...@gmail.com> wrote: > Hi all, > > i'm really new on Django, trying to create an RESTful API, and getting > this error: > > curl -i -U Elly:Elly -H "Content-Type: application/json" -X GET

Re: API Django

2018-10-21 Thread Phako Perez
Thanks Vinod for your quick response, I did, in addition I used -U (capital) instead (-u), however I got error like Method GET not allowed. Method Not Allowed: /schedule/3/ [22/Oct/2018 06:13:50] "GET /schedule/3/ HTTP/1.1" 405 40 On Mon, Oct 22, 2018 at 1:02 AM 'Vinod Kumar' via Django users <