Re: Template inheritance not working

2022-11-02 Thread FLAVIEN HERI
can it be the problem of the first block content which is empty.in index.html, try to delete the empty block content, leave the second one and see what happen On 10/31/22, Ammar Mohammed wrote: > Hello dear > There is a little mistake in your code : > You should put the {%block block_name %} in

Re: Template inheritance not working

2022-11-02 Thread peteru mimo
Your template inheritance cannot be index.html make it base.html and put whatever you want to be display in all pages on it then extends it in index page and other page On Wed, Nov 2, 2022 at 10:26 AM FLAVIEN HERI wrote: > can it be the problem of the first block content which is empty.in >

thaRe: hi,

2022-11-02 Thread Adekola Aderonmu
Thank you so much I've gotten it now. Thanks guys. On Tuesday, 1 November 2022 at 07:18:44 UTC+1 ahmadabd...@gmail.com wrote: > Check under your root project URLs (gfg/urls.py) you have not import > include. > > On Tue, Nov 1, 2022, 1:22 AM Hansel Johansyah > wrote: > >> give , (comma) after

Re: my project doesnt insert into the database

2022-11-02 Thread 'Kasper Laudrup' via Django users
On 01/11/2022 14.09, Mh Raffi wrote: Hi Sorry Looking for thread to my problem. Landed here. That is not how a mailing list or forum works. You don't find an existing thread and use it for a completely unrelated issue. You simply post a new message/mail with your issue instead. Maybe

how to solve error in swagger api documentation

2022-11-02 Thread Motasem Al_Mobayyed
swagger API documentation cannot appear, only an error appears because generic field from content type interface how to solve it -- 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

got error in terminal, ubuntu

2022-11-02 Thread AKHIL KORE
(myprojectenv) user@DIPL-PC290:~/myprojectdir$ django-admin.py startproject myproject ~/myprojectdir django-admin.py: command not found -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

How to use choices in model field

2022-11-02 Thread Aaryan R Soni
Hey guys, i am facing some issues using choices in models.CharField. I am creating a model which has username and status, where status is my choice field. it has 2 values, 'Unverified' and 'Verified'. class user_stutus(models.Model):

Re: How to use choices in model field

2022-11-02 Thread kateregga julius
Don't use square blackest [ ] status_choices=(('Unverified','Unverified'),('Verified','Verified')) On Wed, Nov 2, 2022, 5:52 PM Aaryan R Soni wrote: > Hey guys, i am facing some issues using choices in models.CharField. I am > creating a model which has username and status, where status is my

Recommend forum

2022-11-02 Thread kateregga julius
Here fellas I need recommendations for these platform 1. Laravel 2. AI, ML and Big data Thanks -- 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

Re: How to use choices in model field

2022-11-02 Thread kateregga julius
Apply a CRUD for updating the status Wait I will send you the updated code in 30 minutes On Wed, Nov 2, 2022, 7:23 PM Aaryan R Soni wrote: > Okay, but still the problem is that how do I set the value of status > field, as I have written in the code, verification.status = 'Verified' it > is not

Re: How to use choices in model field

2022-11-02 Thread Lloyd Leckenby
Class user_stutus? > On Nov 2, 2022, at 9:22 AM, Aaryan R Soni wrote: > > Okay, but still the problem is that how do I set the value of status field, > as I have written in the code, verification.status = 'Verified' it is not > giving any error but it is not working either > > On Wed, Nov 2,

Re: got error in terminal, ubuntu

2022-11-02 Thread 'Kasper Laudrup' via Django users
On 02/11/2022 06.43, AKHIL KORE wrote: (myprojectenv) user@DIPL-PC290:~/myprojectdir$ django-admin.py startproject myproject ~/myprojectdir django-admin.py: command not found For security reasons the current working directory is not in your PATH on Unix systems. You need to provide the full

Re: How to use choices in model field

2022-11-02 Thread kateregga julius
Follow exactly what he has told you On Wed, Nov 2, 2022, 7:27 PM Julio Cojom wrote: > When you change the status to Verified, you are only changing the object > instance in memory, to save it to the database, you need to call the method > save. > > verification.save() at the end should make it

Re: How to use choices in model field

2022-11-02 Thread Aaryan R Soni
Okay, but still the problem is that how do I set the value of status field, as I have written in the code, verification.status = 'Verified' it is not giving any error but it is not working either On Wed, Nov 2, 2022, 9:51 PM kateregga julius wrote: > Don't use square blackest [ ] > >

Re: How to use choices in model field

2022-11-02 Thread Julio Cojom
When you change the status to Verified, you are only changing the object instance in memory, to save it to the database, you need to call the method save. verification.save() at the end should make it work El El miƩ, 2 de nov. de 2022 a la(s) 10:23, Aaryan R Soni < aaryanrson...@gnu.ac.in>

New to Django

2022-11-02 Thread Kevin gallagher
Hi guys, Im currently learning django and am doing a project for college. Im building an appointment website users can book a training session. These are my models: class TimeSlot(models.Model): title = models.CharField(max_length=50) def __str__(self): return f'There is a

Loop through QuerySet in Django

2022-11-02 Thread Marcelo A. Robin
I have a processors.py file where I generate a context processor to load static data into my project's base template. I have posts and I want to generate as a kind of archive in a aside, where you can access through a link, the posts that were created in the month of August 2022 (for example)

Re: New to Django

2022-11-02 Thread Sebastian Jung
Hello kevin, There are several django booking apps like this https://github.com/bernii/django-reservations I think its easier to change existing code to your requirements then begin from strech. Good luck Kevin gallagher schrieb am Mi., 2. Nov. 2022, 18:04: > Hi guys, > Im currently learning