test error

2018-10-20 Thread Tim Vogt (Tim Vogt)
I try to make a test with has an error any suggestions? tim expected_author = f'{post.author} ^ SyntaxError: EOL while scanning string literal -- Ran 1 test in 0.000s FAILED (errors=1) D

Re: why is the static file not loading.i need solution

2018-10-20 Thread Gabriel Stone
Also in your href try using a forward slash not a back slash to make references On Sat, 20 Oct 2018 at 5:45 PM, Siddharth Tamang < tamangsiddhart...@gmail.com> wrote: > Have you defined your static files entry in settings.py? > > On Sat, Oct 20, 2018 at 9:05 PM Obodoma Uzondu Vincent < > uobodoma

Re: why is the static file not loading.i need solution

2018-10-20 Thread Siddharth Tamang
Have you defined your static files entry in settings.py? On Sat, Oct 20, 2018 at 9:05 PM Obodoma Uzondu Vincent < uobodoma...@gmail.com> wrote: > THIS IS THE HTML FILE > > login > https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"; > integrity="sha384-MCw98/SFnGE8f

why is the static file not loading.i need solution

2018-10-20 Thread Obodoma Uzondu Vincent
THIS IS THE HTML FILE login https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"; integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous"> {% load static %} welcome Welcome to my page!

Re: Using Primary key in two fields

2018-10-20 Thread Vishvajit Pathak
Hi Rakhee, Could you try following ? : icatid = models.BigIntegerField(db_column='ICatID') makedate = models.DateTimeField(db_column='MakeDate') revdate = models.DateTimeField(db_column='RevDate', blank=True, null=True) makeid = models.BigAutoField(db_column='MakeId') class Meta: unique_togeth

Re: Displaying items differently on one template based on age

2018-10-20 Thread Daniel Veazey
Ah, very good. I understand now. Thank you both for your help. On Friday, October 19, 2018 at 10:49:28 PM UTC-5, Daniel Veazey wrote: > > I'm using 2.1. I have a list of blog posts, and I want to display them > differently based on their age. The most recent post will be displayed > prominently,

Re: generate username and password

2018-10-20 Thread ludovic coues
Si le but est simplement de faire plaisir a la base de données, il est possible d'utiliser l'email comme nom d'utilisateur. Pour le mot de passe, c'est une mauvaise idée. Mais c'est possible, par exemple avec le module secrets en python 3.6 https://docs.python.org/3.6/library/secrets.html#recipes

Re: Prepopulate blog in b.entry_set.all()[i].blog ?

2018-10-20 Thread Carsten Fuchs
Can anyone help please? Am 2018-10-11 um 16:58 schrieb Carsten Fuchs: Dear Django group, with Django 1.11.15, using the example models Blog and Entry at for reference, I have code like this:     b = Blog.objects.get

Re: error 501

2018-10-20 Thread Neethi Ramaiah
i have installed django fully and correctly on windows step by step when lastly i m trying to run.. i m not getting this error On Friday, 19 October 2018 16:59:10 UTC+5:30, Neethi Ramaiah wrote: > > how to solve this error Error response > > Error code 501. > > Message: Unsupported method ('GET')