Re: Django Lessons

2020-01-20 Thread Juhana Jauhiainen
Hi Eugen, Seems like you're of to a good start. Best of luck! -Juhana On Mon, Jan 20, 2020 at 2:21 PM Eugen Ciur wrote: > Sure! Thanks! > I will keep in mind your kind offer. > > On Monday, January 20, 2020 at 5:34:09 AM UTC+1, Karan Mittal wrote: >> >> Hey Eugin, >> Your blogs are awesome.

Re: Django inbuilt Model

2019-07-28 Thread Juhana Jauhiainen
Hi Soumen, You could try with profiles = Profile.objects.filter(user__username=username) I would also suggest changing your model definition to something like class Profile(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE) Then you will have exactly one Profile

Re: Cant create venv

2019-07-28 Thread Juhana Jauhiainen
Hi, I had the same error when a virtual environment was active and resolved it by deactivating it and creating a new virtual environment. Not sure what was the cause but I suspect it had something to do with updating to MacOS Mojave. -Juhana On Sun, Jul 28, 2019 at 5:58 PM Kean Dumba wrote:

Re: forms.Form with class in html-rendering

2019-07-28 Thread Juhana Jauhiainen
Hi, You can achieve this by customizing the widget which renders the HTML for the form field. You can find more information in the documentation here https://docs.djangoproject.com/en/2.2/ref/forms/widgets/ -Juhana On Sun, 28 Jul 2019 at 16.57, Kai Kobschätzki wrote: > Heiho, > > I wrote a

Re: python manage.py makemirations

2019-05-29 Thread Juhana Jauhiainen
To create the initial migrations for a app run python manage.py makemigrations Where is the name of the app (folder) you've created. This will create migrations folder under the apps folder. -Juhana On Wed, May 29, 2019 at 9:29 PM yavoucko lye wrote: > > -- > You received this message