Re: Looking for collaborators for an online marketplace project with Python, Django, React.js and Next.js

2024-02-11 Thread Adeyemi Deji
I’m interested. Pls create a WhatsApp group so we can communicate better. +2349011735491 On Sat, 10 Feb 2024 at 17:54, Jorge Bueno wrote: > The project: > > I am working on an exciting project that I think you might be interested > in. It's about an online marketplace similar to the US farmers

Re: it is very hard to find both email and phone number as username to login

2023-02-26 Thread Adeyemi Deji
Y do u need both? On Sun, 26 Feb 2023, 15:13 Manobhav Joshi, wrote: > is there any way to use both email and phone number as username to login > safely which we can use authenticate() function. > > -- > You received this message because you are subscribed to the Google Groups > "Django users"

Re: Error: pg_config executable not found. (psycopg2 for postgres in docker not successfully installed)

2022-11-03 Thread Adeyemi Deji
Also, i tried psycopg2-binary ànd still add the same error issue but when i updated the Dokerfile, things got normal. On Mon, 31 Oct 2022, 19:51 'Kasper Laudrup' via Django users, < django-users@googlegroups.com> wrote: > On 31/10/2022 19.32, Adeyemi Deji wrote: > > > > Hell

Re: Error: pg_config executable not found. (psycopg2 for postgres in docker not successfully installed)

2022-11-01 Thread Adeyemi Deji
wrote: > On 31/10/2022 19.32, Adeyemi Deji wrote: > > > > Hello, fam! > > > > Found a solution to the problem. Updated the Dockerfile. Check below > > > > Great to hear you figured it out and thanks for sharing. Out of > curiosity, any reason why you chose to

Re: Error: pg_config executable not found. (psycopg2 for postgres in docker not successfully installed)

2022-10-31 Thread Adeyemi Deji
ll libpq-dev gcc COPY ./requirements.txt . RUN pip install -r requirements.txt COPY . . On Saturday, October 29, 2022 at 1:12:22 PM UTC+1 Kasper Laudrup wrote: > On 28/10/2022 12.35, Adeyemi Deji wrote: > > > > I have tried this command in Dockerfile: RUN pip install --user > &

Error: pg_config executable not found. (psycopg2 for postgres in docker not successfully installed)

2022-10-28 Thread Adeyemi Deji
Hello Fam! I'm currently going through djangoforprofessional tutorial and I've been trying to resolve an error related to installing psycopg2 for postgres in a docker container. After setting up Dockerfile, requirements.txt, and docker-compose.yml which is shown below, I entered this command:

Re: Image Fetching

2022-10-24 Thread Adeyemi Deji
Still not clear, send screenshots of ur code including the template and settings.py where u configured ur media root. Thanks On Mon, 24 Oct 2022, 05:32 Chukwudi Onwusa, wrote: > > I am only being able to fetch image registered only through the admin on > browser user interface. But the one I

Re: The SECRET_KEY setting must not be empty - os.environ.get('SECRET_KEY')

2022-03-03 Thread Adeyemi Deji
Thank u so much. A really useful information I never knew existed. Really appreciate it. On Thu, 3 Mar 2022, 07:41 Carsten Fuchs, wrote: > Am 03.03.22 um 04:43 schrieb Adeyemi Deji: > > What do u mean by on installation @On installation, the file is then > copied to localconf

Re: The SECRET_KEY setting must not be empty - os.environ.get('SECRET_KEY')

2022-03-02 Thread Adeyemi Deji
Thanks Carsten, It's also a great method. What do u mean by on installation @On installation, the file is then copied to localconfig.py, where it is *ignored* by svn, git, etc. The file is then customized for production, development, … Do u mean during deployment? On Wed, Mar 2, 2022 at 7:49 AM

Re: The SECRET_KEY setting must not be empty - os.environ.get('SECRET_KEY')

2022-03-01 Thread Adeyemi Deji
I used dotenv module installed with pip On Wed, 2 Mar 2022, 04:43 Adeyemi Deji, wrote: > I also get this error anytime I deploy. It works on developments mode. I > suspect the error coming as a result of adding .env to .gitignore, which > doesn't reflect on GitHub and heroku doe

Re: The SECRET_KEY setting must not be empty - os.environ.get('SECRET_KEY')

2022-03-01 Thread Adeyemi Deji
I also get this error anytime I deploy. It works on developments mode. I suspect the error coming as a result of adding .env to .gitignore, which doesn't reflect on GitHub and heroku doesn't have access to .env file. Pls how do I sort this out? Thanks in advance for your help On Wed, 2 Mar

Re: how to include image dynamically

2022-02-24 Thread Adeyemi Deji
Make sure u configured the Media_root and Media_url appropriately in the settings.py file On Thu, 24 Feb 2022, 18:18 Adeyemi Deji, wrote: > They are two ways to this. But would talk about one, the other is more > practical. Takeout the baseUrl variable and the forward slash, th

Re: how to include image dynamically

2022-02-24 Thread Adeyemi Deji
They are two ways to this. But would talk about one, the other is more practical. Takeout the baseUrl variable and the forward slash, then use {{ cmp.img.url }}. This should work and if it doesn't. Look for solutions by googling it. Sure u would find answers to ur question. On Thu, 24 Feb 2022,

Re: TemplateDoesNotExist at /catalog/books/

2021-10-06 Thread Adeyemi Deji
. On Wednesday, October 6, 2021 at 5:26:19 PM UTC+2 nazni...@gmail.com wrote: > No, both variants don't work. > > ср, 6 окт. 2021 г. в 18:17, Adeyemi Deji : > >> Okay, I also noticed something in the TEMPLATES VARIABLE in your >> settings.py file, please make DIRS an empty list li

Re: How Do I Authorise user using token

2021-10-06 Thread Adeyemi Deji
Check this out, might be of help. https://www.youtube.com/watch?v=Wq6JqXqOzCE On Wednesday, October 6, 2021 at 6:16:51 PM UTC+2 Kasper Laudrup wrote: > On 06/10/2021 15.19, M R wrote: > > > > I have created tokens but i don't know how to use it for authentication. > > >

Re: TemplateDoesNotExist at /catalog/books/

2021-10-06 Thread Adeyemi Deji
ad this > problem for 1 week. > [image: image.png] > > > ср, 6 окт. 2021 г. в 16:19, Adeyemi Deji : > >> correct paginated_by to paginate_by. >> >> >> <https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=

Re: TemplateDoesNotExist at /catalog/books/

2021-10-06 Thread Adeyemi Deji
;#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> On Wed, Oct 6, 2021 at 3:17 PM Adeyemi Deji wrote: > Please correct your class views, you are getting it wrong. > it should look like this. > > class BookListView(generic.ListView): > model = Book > paginated_by = 1

Re: TemplateDoesNotExist at /catalog/books/

2021-10-06 Thread Adeyemi Deji
> return render(request, 'index.html', context=context) > > > class BookListView(generic.ListView): > > """Generic class-based view for a list of books.""" > > model = Book > paginate_by = 10 > template_name = "catalog/book_list.ht

Re: TemplateDoesNotExist at /catalog/books/

2021-10-06 Thread Adeyemi Deji
=sig-email_content=webmail_term=icon> Virus-free. www.avast.com <https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=webmail_term=link> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> On Wed, Oct 6, 2021 at 1:21 PM Adeyemi Deji wrote: > Please don'

Re: TemplateDoesNotExist at /catalog/books/

2021-10-06 Thread Adeyemi Deji
stView(TemplateView): > template_name = "catalog/book_list.html" > > > class BookDetailView(TemplateView): > template_name = "catalog/book_detail.html" > > > urls.py > from django.urls import path > from . import views > > > urlpatter

Re: ModuleNotFoundError: No module named 'tempfile'

2021-10-06 Thread Adeyemi Deji
<https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=webmail_term=link> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> On Wed, Oct 6, 2021 at 11:56 AM Kasper Laudrup wrote: > I think you replied to the wrong post here, but anyway: > > On 06/10/202

Re: TemplateDoesNotExist at /catalog/books/

2021-10-06 Thread Adeyemi Deji
for example. class AboutView(TemplateView): template_name = "about.html" On Wed, Oct 6, 2021 at 11:32 AM Никита Назаров wrote: > Hello! > Thank you! > I'm sorry. How could I do this? > > среда, 6 октября 2021 г. в 11:20:19 UTC+3, adeyem...@gmail.com: > >> Hi, I observed that you didn't

Re: Keycloak & Django Setup Error - "UNIQUE constraint failed: auth_user.username" & usernames are being hashed

2021-10-06 Thread Adeyemi Deji
Hi, can you make a snapshot of your models.py file? On Wednesday, October 6, 2021 at 7:26:24 AM UTC+2 abubak...@gmail.com wrote: > you're facing this error because django receives nique usernames. so you > are not allowed to create another username with the same username. > > On Wed, Oct 6,

Re: ModuleNotFoundError: No module named 'tempfile'

2021-10-06 Thread Adeyemi Deji
First of all, what text editor do you use, If not visual studio code I recommend you get that one and learn how to use it, then u can always set the python interpreter based on your choice. Secondly u need a virtual environment and you can get that with (python -m venv venv) then activate it by

Re: TemplateDoesNotExist at /catalog/books/

2021-10-06 Thread Adeyemi Deji
Hi, I observed that you didn't specify the template name attribute for the BookListView and BookDetailView, that should solve you problem. On Tuesday, October 5, 2021 at 10:37:19 PM UTC+2 nazni...@gmail.com wrote: > Hello! > I’m beginner in Django. I do Django Tutorial from Mozilla. > I get

Re: How to show views when an endpoint is called

2021-10-05 Thread Adeyemi Deji
Hi, what you are trying to achieve isn't clear to me. Kindly elaborate pls On Sunday, October 3, 2021 at 4:30:31 AM UTC+2 iroegbu...@gmail.com wrote: > Hello guys, thanks for helping the last time. > I am trying to show course views on django admin. Django is serving as an > API to a flutter

Re: New to Django

2021-10-05 Thread Adeyemi Deji
Hi, I started roughly too. Began paying attention as it started getting interesting. Django documentation was actually wat got me started but before that I went through some pdfs, had a lot of that on my pc. The poll app in django documentation really helped, don't think I would be where I am

Re: How to port a Django web app in mobile (iOS & Android)

2021-10-05 Thread Adeyemi Deji
Hello, I'm not sure if this will work but it seems to relate to what you are trying to achieve. follow link below https://www.quora.com/How-do-we-convert-the-Django-web-application-into-an-Android-app On Tuesday, October 5, 2021 at 5:38:31 AM UTC+2 ram.mu...@gmail.com wrote: > Hi, > > We have a

Re: from excel to postgesql

2021-10-05 Thread Adeyemi Deji
Hello, sure the link below will solve your problem. https://pythoncircle.com/post/591/how-to-upload-and-process-the-excel-file-in-django/ On Tuesday, October 5, 2021 at 5:30:36 AM UTC+2 nader...@gmail.com wrote: > I have a site on heroku up and running, database postgresql, the models > have a

Re: Django Query

2021-10-05 Thread Adeyemi Deji
You can read up the documentation regarding MPTT, sure to be useful. https://django-mptt.readthedocs.io/en/latest On Tuesday, October 5, 2021 at 10:05:42 AM UTC+2 eugenet...@gmail.com wrote: > Is there any one with a typical example or tutorial (of Django mptt) that > tolks on the similar

Re: INPUT TEXT in grid

2021-10-03 Thread Adeyemi Deji
Good to know that you now understand why ur code wasn't working and you have learnt from asking questions. We always here for you. Peace On Sun, Oct 3, 2021, 1:44 AM Gabriel Araya Garcia < gabrielaraya2...@gmail.com> wrote: > Thanks for your help, My problem I've solved. David Nugent says that

Re: You're accessing the development server over HTTPS, but it only supports HTTP.

2021-09-30 Thread Adeyemi Deji
Make sure debug is set to True in settings.py file. allowed host should be an empty list On Thu, 30 Sep 2021, 10:43 emmanuel odor, wrote: > Hi Everyone, > > I tried to run Django micro crm locally on my windows host and whenever i > run this on my browser i get these errors below. > > Starting

Re: INPUT TEXT in grid

2021-09-29 Thread Adeyemi Deji
Based on my observation. Your form doesn't have it's href attribute, secondly in the view, the function should ve a post method and not get, thirdly back to the template, u should have a name attribute for ur input tag which u do but the value should be an arbitrary name or any name of ur choice