Re: Help on Error while deploying a django app on render.

2023-08-25 Thread Abdulrahman Abbas
Are you using virtual environment?

On Thu, Aug 24, 2023, 22:37 ALINDA Fortunate 
wrote:

> Hello family some help i have this error
>
> Aug 25 12:28:30 AM  ImportError: Couldn't import Django. Are you sure it's
> installed and available on your PYTHONPATH environment variable? Did you
> forget to activate a virtual environment?
> Aug 25 12:28:30 AM  ==> Build failed 😞
>
> Yet this is my requirements file and django is installed
> asgiref==3.6.0
> dj-database-url==2.1.0
> Django==4.2.1
> gunicorn==21.2.0
> packaging==23.1
> psycopg2==2.9.7
> python-dotenv==1.0.0
> sqlparse==0.4.4
> typing_extensions==4.7.1
> tzdata==2023.3
> whitenoise==6.5.0
>
>
> Kindly help me.
> --
>
> ALINDA Fortunate
> Graduate Of Computer Science
> Gulu University
> Passionate about Software Development in Python
> If you can't explain it simply, you don't understand it well enough.
> alindafortuna...@gmail.com .
> +256 774339676 / +256 702910041
> Kagadi.
>
> --
> 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 django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAPifpCvYY%3D%2BFuNAYKXgoikghEYGCB90iw_24S1Ctye%3DZEJdNqg%40mail.gmail.com
> 
> .
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAGGqo0PSZ%2BEmttU3KkZ14EidSxPzM0JSo4Wp6m30FCRRRj8Htw%40mail.gmail.com.


Re: I can1t install django-allauth

2023-08-25 Thread ivan harold

Try following this steps

https://hyperhost.ua/en/wiki/ustanovka-i-zapusk-python-django-v-cpanel
On Thursday, August 24, 2023 at 3:23:47 AM UTC+8 Juhász Tamás wrote:

> Hello,
> django-allauth is well installed and working in my development environment.
> But I can't install it on the live server (cPanel). pip is good, django is 
> installed. Allauth refuses, in every case it stops with so many errors that 
> I can't even look back in the cPanel terminal, what could have been the 
> first.
> Anyone who can help ... thx 
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/05963b71-66af-497e-9215-72688df51360n%40googlegroups.com.


Re: Help on Error while deploying a django app on render.

2023-08-25 Thread ivan harold

https://www.freecodecamp.org/news/deploying-a-django-app-to-render/
On Friday, August 25, 2023 at 9:00:08 PM UTC+8 Abdulrahman Abbas wrote:

> Are you using virtual environment?
>
> On Thu, Aug 24, 2023, 22:37 ALINDA Fortunate  
> wrote:
>
>> Hello family some help i have this error
>>
>> Aug 25 12:28:30 AM  ImportError: Couldn't import Django. Are you sure 
>> it's installed and available on your PYTHONPATH environment variable? Did 
>> you forget to activate a virtual environment?
>> Aug 25 12:28:30 AM  ==> Build failed 😞
>>
>> Yet this is my requirements file and django is installed
>> asgiref==3.6.0
>> dj-database-url==2.1.0
>> Django==4.2.1
>> gunicorn==21.2.0
>> packaging==23.1
>> psycopg2==2.9.7
>> python-dotenv==1.0.0
>> sqlparse==0.4.4
>> typing_extensions==4.7.1
>> tzdata==2023.3
>> whitenoise==6.5.0
>>
>>
>> Kindly help me.
>> --
>>
>> ALINDA Fortunate
>> Graduate Of Computer Science
>> Gulu University
>> Passionate about Software Development in Python
>> If you can't explain it simply, you don't understand it well enough.
>> alindafo...@gmail.com.
>> +256 774339676 <+256%20774%20339676> / +256 702910041 
>> <+256%20702%20910041>
>> Kagadi.
>>
>> -- 
>> 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 django-users...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CAPifpCvYY%3D%2BFuNAYKXgoikghEYGCB90iw_24S1Ctye%3DZEJdNqg%40mail.gmail.com
>>  
>> 
>> .
>>
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e95a3141-fa1c-4247-86fb-16b8886beeccn%40googlegroups.com.


Re: Help on Error while deploying a django app on render.

2023-08-25 Thread ivan harold

Try following these

https://www.freecodecamp.org/news/deploying-a-django-app-to-render/
On Friday, August 25, 2023 at 9:00:08 PM UTC+8 Abdulrahman Abbas wrote:

> Are you using virtual environment?
>
> On Thu, Aug 24, 2023, 22:37 ALINDA Fortunate  
> wrote:
>
>> Hello family some help i have this error
>>
>> Aug 25 12:28:30 AM  ImportError: Couldn't import Django. Are you sure 
>> it's installed and available on your PYTHONPATH environment variable? Did 
>> you forget to activate a virtual environment?
>> Aug 25 12:28:30 AM  ==> Build failed 😞
>>
>> Yet this is my requirements file and django is installed
>> asgiref==3.6.0
>> dj-database-url==2.1.0
>> Django==4.2.1
>> gunicorn==21.2.0
>> packaging==23.1
>> psycopg2==2.9.7
>> python-dotenv==1.0.0
>> sqlparse==0.4.4
>> typing_extensions==4.7.1
>> tzdata==2023.3
>> whitenoise==6.5.0
>>
>>
>> Kindly help me.
>> --
>>
>> ALINDA Fortunate
>> Graduate Of Computer Science
>> Gulu University
>> Passionate about Software Development in Python
>> If you can't explain it simply, you don't understand it well enough.
>> alindafo...@gmail.com.
>> +256 774339676 <+256%20774%20339676> / +256 702910041 
>> <+256%20702%20910041>
>> Kagadi.
>>
>> -- 
>> 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 django-users...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CAPifpCvYY%3D%2BFuNAYKXgoikghEYGCB90iw_24S1Ctye%3DZEJdNqg%40mail.gmail.com
>>  
>> 
>> .
>>
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/2dda8d5e-4f1b-4784-acaa-a44ed555e0cen%40googlegroups.com.


Re: Help on Error while deploying a django app on render.

2023-08-25 Thread Peter Benjamin Ani
Where are you hosting?

On Thu, 24 Aug 2023 at 22:37, ALINDA Fortunate 
wrote:

> Hello family some help i have this error
>
> Aug 25 12:28:30 AM  ImportError: Couldn't import Django. Are you sure it's
> installed and available on your PYTHONPATH environment variable? Did you
> forget to activate a virtual environment?
> Aug 25 12:28:30 AM  ==> Build failed 😞
>
> Yet this is my requirements file and django is installed
> asgiref==3.6.0
> dj-database-url==2.1.0
> Django==4.2.1
> gunicorn==21.2.0
> packaging==23.1
> psycopg2==2.9.7
> python-dotenv==1.0.0
> sqlparse==0.4.4
> typing_extensions==4.7.1
> tzdata==2023.3
> whitenoise==6.5.0
>
>
> Kindly help me.
> --
>
> ALINDA Fortunate
> Graduate Of Computer Science
> Gulu University
> Passionate about Software Development in Python
> If you can't explain it simply, you don't understand it well enough.
> alindafortuna...@gmail.com .
> +256 774339676 / +256 702910041
> Kagadi.
>
> --
> 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 django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAPifpCvYY%3D%2BFuNAYKXgoikghEYGCB90iw_24S1Ctye%3DZEJdNqg%40mail.gmail.com
> 
> .
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPxt_2W%2Bdmt%2BjxXEY%3Dd9MbBCcZ9Dj1VX7KMQiiSiiT%3DgiBbt2A%40mail.gmail.com.


errors am getting during running my project any help

2023-08-25 Thread Steven maithya
(en) PS C:\Users\steve.musyoka\Desktop\CRM-master> python manage.py 
runserver
C:\Python311\python.exe: can't open file 
'C:\\Users\\steve.musyoka\\Desktop\\CRM-master\\manage.py': [Errno 2] No 
such file or directory
(en) PS C:\Users\steve.musyoka\Desktop\CRM-master> cd
(en) PS C:\Users\steve.musyoka\Desktop\CRM-master> ls

-- 
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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/2987c90d-d8cd-4710-9b13-a276802a088cn%40googlegroups.com.


Regarding the Django ImportError Issue

2023-08-25 Thread abhijeet tripathi
Hello,

I hope this message finds you well. I wanted to let you know that I've
taken a look at the error message you shared:

```
Aug 25 12:28:30 AM  ImportError: Couldn't import Django. Are you sure it's
installed and available on your PYTHONPATH environment variable? Did you
forget to activate a virtual environment?
Aug 25 12:28:30 AM  ==> Build failed
```

To better assist you in resolving this issue, could you kindly provide me
with some additional details? This information will help me gain a clearer
understanding of your setup and the potential causes of the error:

1. **Operating System:** Please let me know the operating system you're
using (e.g., Windows, macOS, Linux).

2. **Python Version:** What version of Python is installed on your system?
You can find this information by running the command `python --version` in
your terminal.

3. **Virtual Environment:** Are you working within a virtual environment?
If so, have you activated the virtual environment before attempting to run
the project?

4. **Project Configuration:** Could you share any relevant configuration
details related to your project setup? This could include how your project
is structured and any configuration files that may be relevant.

5. **Django Installation:** Confirm whether Django is installed in your
virtual environment. You can use the command `pip show django` to check its
status.

6. **PYTHONPATH:** If you've made any modifications to the PYTHONPATH
environment variable, please share the details of those changes.

7. **Build Process:** Briefly describe the steps you take leading up to
encountering the error. This could include any commands you run or actions
you perform.

By providing these details, I'll be able to narrow down the potential
causes of the ImportError and offer more precise guidance to help you
resolve it.

Thank you for your cooperation. I look forward to receiving more
information from you so that we can work together to address this issue
effectively.

Best regards,
[Abhijit]

-- 
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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAD7R6_2ot0ZecpYQRZf_DVQ%3D8bqWO-aY%2BqHysKj_P8vq9um6Cw%40mail.gmail.com.


Best practice colour picker

2023-08-25 Thread Thomas Gaylard
I've searched for this but found very little.  I'm looking for a good/best 
practice approach for storing colour information in the database and 
rendering a colour picker in a form which makes best use of Django's 
built-in form support.

-- 
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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/2186fbeb-1da8-4e06-bbdb-77715449bb26n%40googlegroups.com.


Re: table bank_app_bank has no column named DOB

2023-08-25 Thread Steven maithya

(en) PS C:\Users\steve.musyoka\Desktop\CRM-master> python manage.py 
runserver
C:\Python311\python.exe: can't open file 
'C:\\Users\\steve.musyoka\\Desktop\\CRM-master\\manage.py': [Errno 2] No 
such file or directory
(en) PS C:\Users\steve.musyoka\Desktop\CRM-master> cd
(en) PS C:\Users\steve.musyoka\Desktop\CRM-master> ls






this is the error am getting when i run my django project any help please

On Thursday, August 24, 2023 at 10:25:23 AM UTC+3 meenu loranz wrote:

> from django.contrib import auth, messages
> from django.http import HttpResponse
> from django.shortcuts import render, redirect
>
> from bank_app.models import bank
>
> # Create your views here.
>
>
> def home(request):
> return render(request,"home.html")
>
> def login(request):
> if request.method == 'POST':
> username = request.POST['username']
> password = request.POST['password']
> user = auth.authenticate(username=username,password=password)
>
> if user is not None:
> auth.login(request,user)
> return redirect('/')
> else:
> messages.info(request,"invalid username or password")
> return redirect('login')
> return render(request,"login.html")
>
> def registration(request):
> return render(request,"registration.html")
>
> def add_form(request):
> if request.method == "POST":
> name = request.POST.get('name',)
> dob = request.POST.get('dob', )
> age = request.POST.get('age', )
> gender = request.POST.get('gender', )
> phone_no = request.POST.get('phone_no', )
> mail_id = request.POST.get('mail_id',)
> address = request.POST.get('address',)
> district = request.POST.get('district',)
> branch = request.POST.get('branch',)
> account_type = request.POST.get('account_type',)
>
> Bank = bank(name=name,dob=dob,age=age,gender=gender,phone_no=phone_no,
> mail_id=mail_id,address=address,district=district,
> branch=branch,account_type=account_type,)
>
> Bank.save()
> messages.info(request, 'Bank added successfully')
> return redirect('home')
> return render(request,'add.html')
>
> This is my views.py page. 
> On Tuesday, August 22, 2023 at 12:49:39 AM UTC+5:30 Mike Simkins wrote:
>
>> Did you regenerate and rerun the migrations ??
>>
>>
>> python manage.py makemigrations
>> python manage.py migrate
>>
>>
>>
>> On 21 Aug 2023, at 09:46, meenu loranz  wrote:
>>
>> Thank you for your response...i changed DOB to dob...but still showing me 
>> the error...
>> OperationalError at /add/ table bank_app_bank has no column named dob 
>> Request Method: 
>> POST 
>> Request URL: 
>> http://127.0.0.1:8000/add/ 
>> Django Version: 
>> 4.2 
>> Exception Type: 
>> OperationalError 
>> Exception Value: 
>> table bank_app_bank has no column named dob 
>> Exception Location: 
>> C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\site-packages\django\db\backends\sqlite3\base.py,
>>  
>> line 328, in execute 
>> Raised during: 
>> bank_app.views.add_form 
>> Python Executable: 
>> C:\Users\Admin\AppData\Local\Programs\Python\Python39\python.exe 
>> Python Version: 
>> 3.9.0 
>> Python Path: 
>> ['C:\\Users\\Admin\\myprojects\\banking_system\\bank_project', 
>> 'C:\\Users\\Admin\\AppData\\Local\\Programs\\Python\\Python39\\python39.zip',
>>  
>> 'C:\\Users\\Admin\\AppData\\Local\\Programs\\Python\\Python39\\DLLs', 
>> 'C:\\Users\\Admin\\AppData\\Local\\Programs\\Python\\Python39\\lib', 
>> 'C:\\Users\\Admin\\AppData\\Local\\Programs\\Python\\Python39', 
>> 'C:\\Users\\Admin\\AppData\\Local\\Programs\\Python\\Python39\\lib\\site-packages']
>>  
>>
>> Server time: 
>> Mon, 21 Aug 2023 08:44:34 +
>>
>> On Saturday, August 19, 2023 at 10:49:13 PM UTC+5:30 RANGA BHARATH JINKA 
>> wrote:
>>
>>> Hi,
>>>
>>> Try changing DOB to small letters dob and run the migrations again. 
>>>
>>> All the best 👍
>>>
>>> Thanks and Regards
>>>
>>> J. Ranga Bharath
>>> Cell: 9110334114
>>> 
>>>
>>> On Sat, 19 Aug 2023, 9:18 pm ivan harold,  wrote:
>>>

 https://stackoverflow.com/questions/68269165/why-django-is-not-detecting-my-table-column

 Try reading this article, it may help you.

 On Saturday, August 19, 2023 at 3:05:57 AM UTC+8 meenu loranz wrote:

> from django.contrib.auth.models import User
> from django.db import models
> from django.urls import reverse
> # Create your models here.
>
> class bank(models.Model):
> name = models.CharField(max_length=255)
> DOB = models.DateField()
> age = models.IntegerField()
> gender = models.CharField(max_length=10)
> phone_no = models.CharField(max_length=10)
> mail_id = models.EmailField(max_length=25)
> address = models.CharField(max_length=255)
> district = models.CharField(max_length=100)
> branch = models.CharField(max_length=100)
> account_type = models.CharField(max_length=100)
> # materials_provided = models.CharField(max_length=100)
>
>
> def __str__(self):
> return self.name
>
> This is my model.py page. And i can see this table and all fields in 
> my database. But while running show me the o

Re: Regarding the Django ImportError Issue

2023-08-25 Thread ivan harold
I think it is better if you reply to the specific thread that has this 
issue. So that the concerned person will be able to see your reply 
immediately.

On Saturday, August 26, 2023 at 1:29:58 AM UTC+8 abhijeet tripathi wrote:

>
>
> Hello,
>
> I hope this message finds you well. I wanted to let you know that I've 
> taken a look at the error message you shared:
>
> ```
> Aug 25 12:28:30 AM  ImportError: Couldn't import Django. Are you sure it's 
> installed and available on your PYTHONPATH environment variable? Did you 
> forget to activate a virtual environment?
> Aug 25 12:28:30 AM  ==> Build failed
> ```
>
> To better assist you in resolving this issue, could you kindly provide me 
> with some additional details? This information will help me gain a clearer 
> understanding of your setup and the potential causes of the error:
>
> 1. **Operating System:** Please let me know the operating system you're 
> using (e.g., Windows, macOS, Linux).
>
> 2. **Python Version:** What version of Python is installed on your system? 
> You can find this information by running the command `python --version` in 
> your terminal.
>
> 3. **Virtual Environment:** Are you working within a virtual environment? 
> If so, have you activated the virtual environment before attempting to run 
> the project?
>
> 4. **Project Configuration:** Could you share any relevant configuration 
> details related to your project setup? This could include how your project 
> is structured and any configuration files that may be relevant.
>
> 5. **Django Installation:** Confirm whether Django is installed in your 
> virtual environment. You can use the command `pip show django` to check its 
> status.
>
> 6. **PYTHONPATH:** If you've made any modifications to the PYTHONPATH 
> environment variable, please share the details of those changes.
>
> 7. **Build Process:** Briefly describe the steps you take leading up to 
> encountering the error. This could include any commands you run or actions 
> you perform.
>
> By providing these details, I'll be able to narrow down the potential 
> causes of the ImportError and offer more precise guidance to help you 
> resolve it.
>
> Thank you for your cooperation. I look forward to receiving more 
> information from you so that we can work together to address this issue 
> effectively.
>
> Best regards,
> [Abhijit]
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4f27972f-7831-49e9-b74d-14312b268820n%40googlegroups.com.