RE: (School) Detail View Not Work

2019-12-09 Thread Parvez Khan Pathan
Thanks for response Amitesh, Surely keep in mind your advise… I tried solution by Dominick and its work for me. Again thanks for response sir. Sent from Mail for Windows 10 From: 'Amitesh Sahay' via Django users

Hiring an engineer in San Francisco

2019-12-09 Thread Erik Gunderson
PollyEx is hiring a full stack software engineer with an emphasis in django. Our team is looking for a full-time employee able to work in our San Francisco office. The stack is python/django/pandas/vue/heroku To apply visit - https://jobs.lever.co/pollyex/23e8fee3-8a9f-4bf1-9943-8584ab9b6c0a o

Re: Ayuda como pasar un sql al ORM Django

2019-12-09 Thread Integr@te System
Hi friend, https://docs.djangoproject.com/en/2.2/topics/db/queries/ On Sun, Dec 8, 2019, 04:57 DEYMER DE JESUS HOYOS PEREZ < ddhoy...@misena.edu.co> wrote: > Me gustaría saber como puedo pasar esta consulta de postgresql usando el > orm de django > > SELECT peluqueria_persona."Nombre", "Gananci

Re: Difficulty with Tutorial Part 2

2019-12-09 Thread Tafadzwa Marshal
I advice you to learn learn Python Language first before you start messing with Django. On Mon, Dec 9, 2019 at 2:19 AM Bruckner de Villiers < bruckner.devilli...@gmail.com> wrote: > Thank you Daniel. I believe that issue started with VSCode automatically > inserting “from date time import date ti

Re: Styling in Django

2019-12-09 Thread Tafadzwa Marshal
hello. Can you send that Materialize tutorial On Wed, Dec 4, 2019 at 3:27 AM Akshay Deep wrote: > https://vacancyjobalert.com/”>VacancyJobAlert.Com > > On Tuesday, December 3, 2019 at 7:16:34 PM UTC+5:30, marshalx4 wrote: >> >> How can I use Materialize CSS with Django? Seems like bootstrap is t

Re: Difficulty with Tutorial Part 2

2019-12-09 Thread Bruckner de Villiers
Thank you Daniel. I believe that issue started with VSCode automatically inserting “from date time import date time” after I hit enter on “import date time”. Thank you for the quick response. Bruckner 0836251086 > On 09 Dec 2019, at 10:38, Daniel Hepper wrote: > >  > You can fix your code

Re: [Django] How to traverse through query set in java script using django templates?

2019-12-09 Thread Andréas Kühne
This is a strange way to do things - but all you need to do is to add a template for loop in the javascript part of your template. For example: {% for gsp in apply_gsp_model %} var value1 = {% gsp.id %}; {% endfor %} What will happen then is that the iteration will create that line fo

Re: Difficulty with Tutorial Part 2

2019-12-09 Thread Daniel Hepper
You can fix your code by changing datetime.timedelta to timedelta: *def* was_published_recently(self): return self.pub_date >= timezone.now() - timedelta(days=1) The statement "from datetime import datetime, timedelta" imports the classes datetime and timedelta from the module dateti

Re: Difficulty with Tutorial Part 2

2019-12-09 Thread Sencer Hamarat
Your timedelta import is correct but usage of the timedelta is not. Replace "datetime.timedelta(days=1)" with "timedelta(days=1)" Saygılarımla, Sencer HAMARAT On Mon, Dec 9, 2019 at 11:24 AM Bruckner de Villiers wrote: > Running Django 3.0 & Python 3.7.3 > > Everything works per the tutoria

Difficulty with Tutorial Part 2

2019-12-09 Thread Bruckner de Villiers
Running Django 3.0 & Python 3.7.3 Everything works per the tutorial until I get to: q.was_published_recently() It throws the following error: File "/Volumes/Data/DevelopmentTraining/django_tutorials/mysite/polls/models.py", line 19, in was_published_recently     return self.pub_date >= timez