Re: Error on import psycopg2

2021-09-15 Thread FIRDOUS BHAT
Try installing this package, pip install psycopg2-binary On Wed, Sep 15, 2021 at 10:45 PM Kasper Laudrup wrote: > On 15/09/2021 16.40, 'Maryam Yousaf' via Django users wrote: > > Hello, > > > > I need psycopg2 for postgres database in django. While installing it, I > > am getting below error. I

Re: Error on import psycopg2

2021-09-15 Thread Kasper Laudrup
On 15/09/2021 16.40, 'Maryam Yousaf' via Django users wrote: Hello, I need psycopg2 for postgres database in django. While installing it, I am getting below error. I tried everything on internet but it still there. Kindly help me out. Did you try this: https://stackoverflow.com/questions/

How to do calculations in Model

2021-09-15 Thread joji...@gmail.com
Hello there, I am creating a salary & payroll application in Django. I need your guidance in calcuating the salary and insert to salarydetails table. I wanted to know how we can do the calculation using models. For example first we need to calculate the salary details for each salary head after

Hello Everyone

2021-09-15 Thread Lachi Teaching
I'm receiving that error I add the line from .forms import CustomUserCreationForm into my views.py and it's driving me insane. I have no idea how to fix this. Exception in thread django-main-thread: Traceback (most recent call last): File "C:\Users\Technicalsmirchis\AppData\Local\Progra

Error on import psycopg2

2021-09-15 Thread 'Maryam Yousaf' via Django users
Hello, I need psycopg2 for postgres database in django. While installing it, I am getting below error. I tried everything on internet but it still there. Kindly help me out. Error: "File "/Users/maryam.yousaf/Documents/venv/lib/python3.8/site-packages/psycopg2/__init__.py", line 51, in

Re: Greetings to Everyone

2021-09-15 Thread MR INDIA
Jinja 2 is quite different from django templates and you need to use . Jinja file extension. And configure it. And pls send GitHub link, and is there any error log or Trace back then send it. On Wednesday, 15 September 2021 at 18:52:10 UTC+5:30 faruk...@gmail.com wrote: > Hello, > Could you p

Re: Greetings to Everyone

2021-09-15 Thread Sebastian Jung
Hello, answer ist relativ simple: Code: abt = {"About_slides":About_slides,"Description":Description} return render(request, 'about.html') you don't insert context in render. Right line: return render(request, 'about.html',abt) Regards Am Mi., 15. Sept. 2021 um 14:05 Uhr schrieb Rich

Re: Greetings to Everyone

2021-09-15 Thread Ahmet Faruk Yılmaz
Hello, Could you please upload your code to GitHub or some other platform ? It is really hard to read and track the code. 15 Eylül 2021 Çarşamba tarihinde saat 15:05:48 UTC+3 itibarıyla mudahe...@gmail.com şunları yazdı: > i kindly need a help i am making a static website into dynamic using

Greetings to Everyone

2021-09-15 Thread Richard Dushime
i kindly need a help i am making a static website into dynamic using Python Django and postgresql as my database i created models then i went in admin to register them then views to create the function after i went into html code to put the jijna format so that it can display at the end i made mi

Re: Abstract base user

2021-09-15 Thread Muhammad Shehzad
class UserManager(DjangoUserManager): def create_one_user(self, username, email, password, **extra_fields): return self._create_user( username, email, password, type="one", **extra_fields ) def create_two_user(self, username, email, password, **extra_fields): return self._create_user( username, em