Re: AttributeError at /auth/users/

2023-07-01 Thread Muhammad Juwaini Abdul Rahman
What's your code in urls.py for `/auth/user`?

On Sunday, 2 July 2023 at 01:14:53 UTC+8 arun n wrote:

> Hello, 
>
> I am new to Django.  I am getting the below error. Can someone help.
>
> from django.db import models
> from django.contrib.auth.models import AbstractBaseUser, PermissionsMixin, 
> BaseUserManager, UserManager
>
>
> class UserAccountManager(BaseUserManager):
> def create_user(self, email, name, password=None):
> if not email:
> raise ValueError('Email address required')
>
> email = self.normalize_email(email)
> user = self.model(email=email, name=name)
> user.set_password(password)
> user.save()
> return user
>
> AttributeError at /auth/users/'Manager' object has no attribute 
> 'create_user'
> Request Method:
> POST
> Request URL:
> http://127.0.0.1:8000/auth/users/
> Django Version:
> 4.2.2
> Exception Type:
> AttributeError
> Exception Value:
> 'Manager' object has no attribute 'create_user'
> Exception Location:
>
> C:\Users\Arun\.virtualenvs\nc-backend-zDgCjJYE\Lib\site-packages\djoser\serializers.py,
>  
> line 48, in perform_create
> Raised during:
> djoser.views.UserViewSet
> Python Executable:
> C:\Users\Arun\.virtualenvs\nc-backend-zDgCjJYE\Scripts\python.exe
> Python Version:
> 3.11.4
> Python Path:
> ['C:\\Users\\Arun\\Documents\\GitHub\\nc-backend', 
> 'C:\\Users\\Arun\\AppData\\Local\\Programs\\Python\\Python311\\python311.zip',
>  
> 'C:\\Users\\Arun\\AppData\\Local\\Programs\\Python\\Python311\\DLLs', 
> 'C:\\Users\\Arun\\AppData\\Local\\Programs\\Python\\Python311\\Lib', 
> 'C:\\Users\\Arun\\AppData\\Local\\Programs\\Python\\Python311', 
> 'C:\\Users\\Arun\\.virtualenvs\\nc-backend-zDgCjJYE', 
> 'C:\\Users\\Arun\\.virtualenvs\\nc-backend-zDgCjJYE\\Lib\\site-packages']
> Server time:
> Fri, 30 Jun 2023 18:48:41 +
>

-- 
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/280c8a92-940c-48f2-9e89-b47351e3d79fn%40googlegroups.com.


Re: AttributeError at /auth/users/

2023-07-01 Thread Fikayo Soetan
Good day,
I'm also still learning but I think the name of the function should be 
"_create_user"
Fikayo.
On Saturday, July 1, 2023 at 6:14:53 PM UTC+1 arun n wrote:

> Hello, 
>
> I am new to Django.  I am getting the below error. Can someone help.
>
> from django.db import models
> from django.contrib.auth.models import AbstractBaseUser, PermissionsMixin, 
> BaseUserManager, UserManager
>
>
> class UserAccountManager(BaseUserManager):
> def create_user(self, email, name, password=None):
> if not email:
> raise ValueError('Email address required')
>
> email = self.normalize_email(email)
> user = self.model(email=email, name=name)
> user.set_password(password)
> user.save()
> return user
>
> AttributeError at /auth/users/'Manager' object has no attribute 
> 'create_user'
> Request Method:
> POST
> Request URL:
> http://127.0.0.1:8000/auth/users/
> Django Version:
> 4.2.2
> Exception Type:
> AttributeError
> Exception Value:
> 'Manager' object has no attribute 'create_user'
> Exception Location:
>
> C:\Users\Arun\.virtualenvs\nc-backend-zDgCjJYE\Lib\site-packages\djoser\serializers.py,
>  
> line 48, in perform_create
> Raised during:
> djoser.views.UserViewSet
> Python Executable:
> C:\Users\Arun\.virtualenvs\nc-backend-zDgCjJYE\Scripts\python.exe
> Python Version:
> 3.11.4
> Python Path:
> ['C:\\Users\\Arun\\Documents\\GitHub\\nc-backend', 
> 'C:\\Users\\Arun\\AppData\\Local\\Programs\\Python\\Python311\\python311.zip',
>  
> 'C:\\Users\\Arun\\AppData\\Local\\Programs\\Python\\Python311\\DLLs', 
> 'C:\\Users\\Arun\\AppData\\Local\\Programs\\Python\\Python311\\Lib', 
> 'C:\\Users\\Arun\\AppData\\Local\\Programs\\Python\\Python311', 
> 'C:\\Users\\Arun\\.virtualenvs\\nc-backend-zDgCjJYE', 
> 'C:\\Users\\Arun\\.virtualenvs\\nc-backend-zDgCjJYE\\Lib\\site-packages']
> Server time:
> Fri, 30 Jun 2023 18:48:41 +
>

-- 
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/b554889b-b0ef-4856-baaf-6c45b8a96e5an%40googlegroups.com.


Looking for an exciting Django project to apply my skills

2023-07-01 Thread s.alaoui youssef


Passionate and experienced developer seeking an engaging Django project to 
apply my skills and take on new challenges. With a strong background in web 
development and a deep expertise in Django, I am capable of designing and 
implementing robust and scalable web applications. I am familiar with best 
practices in development, such as modularity, code reusability, and 
automated testing.

-- 
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/9682e3f8-2fc5-4806-b232-8a1d28aacffen%40googlegroups.com.


Re: Hello everyone,happy to be here.

2023-07-01 Thread 'Kasper Laudrup' via Django users

On 29/06/2023 09.23, Apili Vicky wrote:

am failing to get apython path on the cmd interface..what could be wrong



Pretty much everything could be wrong, so I suggest you start by fixing 
that.


If that doesn't work, try doing nothing. Sometimes that's the best 
option in cases like this.


Hope that helps.

Kind regards,
Kasper Laudrup

--
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/389b8f58-ab86-f8c6-ddc5-772a3b35663d%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Hello everyone,happy to be here.

2023-07-01 Thread Harshal Bordia
What's the command you are using ?

On Fri, 30 Jun 2023, 03:26 Apili Vicky,  wrote:

> am failing to get apython path on the cmd interface..what could be wrong
>
> --
> 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/1bb2eac8-0f73-43f8-8fb6-1e72e1009259n%40googlegroups.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/CALU875X8aB2yckoy8W1zvOGzrBxRtrf%2Bf7n3_8BJK%2B_y%3D9P8LQ%40mail.gmail.com.


AttributeError at /auth/users/

2023-07-01 Thread arun n
Hello, 

I am new to Django.  I am getting the below error. Can someone help.

from django.db import models
from django.contrib.auth.models import AbstractBaseUser, PermissionsMixin, 
BaseUserManager, UserManager


class UserAccountManager(BaseUserManager):
def create_user(self, email, name, password=None):
if not email:
raise ValueError('Email address required')

email = self.normalize_email(email)
user = self.model(email=email, name=name)
user.set_password(password)
user.save()
return user

AttributeError at /auth/users/'Manager' object has no attribute 
'create_user'
Request Method:
POST
Request URL:
http://127.0.0.1:8000/auth/users/
Django Version:
4.2.2
Exception Type:
AttributeError
Exception Value:
'Manager' object has no attribute 'create_user'
Exception Location:
C:\Users\Arun\.virtualenvs\nc-backend-zDgCjJYE\Lib\site-packages\djoser\serializers.py,
 
line 48, in perform_create
Raised during:
djoser.views.UserViewSet
Python Executable:
C:\Users\Arun\.virtualenvs\nc-backend-zDgCjJYE\Scripts\python.exe
Python Version:
3.11.4
Python Path:
['C:\\Users\\Arun\\Documents\\GitHub\\nc-backend', 
'C:\\Users\\Arun\\AppData\\Local\\Programs\\Python\\Python311\\python311.zip', 
'C:\\Users\\Arun\\AppData\\Local\\Programs\\Python\\Python311\\DLLs', 
'C:\\Users\\Arun\\AppData\\Local\\Programs\\Python\\Python311\\Lib', 
'C:\\Users\\Arun\\AppData\\Local\\Programs\\Python\\Python311', 
'C:\\Users\\Arun\\.virtualenvs\\nc-backend-zDgCjJYE', 
'C:\\Users\\Arun\\.virtualenvs\\nc-backend-zDgCjJYE\\Lib\\site-packages']
Server time:
Fri, 30 Jun 2023 18:48:41 +

-- 
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/8bf54dc0-21f0-4dab-a76f-a9c70470cc8en%40googlegroups.com.


Re: Hello everyone,happy to be here.

2023-07-01 Thread Naamara Hannington
Hey Vicky.

Kindly share a screenshot and some of the files you are working with?

Hannington Naamara
Co-Founder, Edoctorug
+256 775 719034
www.edoctorug.com
https://eu.api.accredible.com/v1/frontend/credential_website_embed_image/certificate/2514865

On Fri, Jun 30, 2023, 12:56 AM Apili Vicky  wrote:

> am failing to get apython path on the cmd interface..what could be wrong
>
> --
> 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/1bb2eac8-0f73-43f8-8fb6-1e72e1009259n%40googlegroups.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/CAGra9xxXvy5ivMxf%3D31f%3DnprDZ5NMZNgvaB9UUAn3v6quTt1jA%40mail.gmail.com.