Re: E-comm live project

2024-04-30 Thread shubham joshi
Hello @prabhjotbal...@gmail.com and team,

Please consider me for e-comm project
+91 8390246938 is my whpp number



Thanks,
shubham

From: django-users@googlegroups.com  on behalf 
of 1001_prabhjot Singh 
Sent: Monday, March 18, 2024 10:45 PM
To: Django users 
Subject: E-comm live project

so i am working on a full stack e-comm website and this project is really very 
big for me because it's a live project am using django for backend interested 
one's can send there number for WhatsApp group

--
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/1101d563-726a-458e-ad9f-4b91bebf3132n%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/PA6PR02MB10563542210EEEF5E72D7EDA7FA1A2%40PA6PR02MB10563.eurprd02.prod.outlook.com.


Re: E-comm live project

2024-04-30 Thread shubham joshi

+91 8390246938

From: django-users@googlegroups.com  on behalf 
of 1001_prabhjot Singh 
Sent: Monday, March 18, 2024 10:45 PM
To: Django users 
Subject: E-comm live project

so i am working on a full stack e-comm website and this project is really very 
big for me because it's a live project am using django for backend interested 
one's can send there number for WhatsApp group

--
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/1101d563-726a-458e-ad9f-4b91bebf3132n%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/PA6PR02MB105632690565185A90842E807FA1A2%40PA6PR02MB10563.eurprd02.prod.outlook.com.


Django based project app structure

2020-04-30 Thread shubham joshi
https://dpaste.org/o1sO#L89


this is my entire projects's model, how should i spit it into multiple apps? 
how to decide

-- 
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/d865ee92-d8fa-4af4-acca-dabd9f3d4672%40googlegroups.com.


ValueError: The QuerySet value for an exact lookup must be limited to one result using slicing

2020-02-06 Thread shubham joshi
https://github.com/shubham1507/TiffinApp/tree/development

-- 
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/e454fd29-a06a-4a15-8254-bc4fa6307d47%40googlegroups.com.


lookup error at router

2019-09-05 Thread shubham joshi
I my users api  - > 
https://github.com/shubham1507/school/blob/trial/users/urls.py

*HTTP 200 OK**Allow:* GET, HEAD, OPTIONS*Content-Type:* application/json*Vary:* 
Accept
{
"teacher": "http://127.0.0.1:8000/users/teacher/;,
"student": "http://127.0.0.1:8000/users/student/"}



whenever I hit to either of the link 
"http://127.0.0.1:8000/users/teacher/",or 
 "http://127.0.0.1:8000/users/student/; then 


Could not resolve URL for hyperlinked relationship using view name 
"user-detail". You may have failed to include the related model in your API, or 
incorrectly configured the `lookup_field` attribute on this field.

-- 
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/937993c8-6dca-4968-a3e7-66ec3503ad1f%40googlegroups.com.


how can we use single serializer with 2 differnt viewsets for registration considering the both reg form have different fields

2019-09-04 Thread shubham joshi
as you  can see 
https://github.com/shubham1507/school/blob/trial/users/serializers.py I 
have created two serizer for two registrtion form

shubham1507/school
Contribute to shubham1507/school development by creating an account on 
GitHub.


how can we use single serializer with 2 differnt viewsets for registration 
considering the both reg form have different fields

-- 
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/cf92009c-3182-4df5-930a-9025f195d058%40googlegroups.com.


CustomAuthToken

2019-08-01 Thread shubham joshi
With reference to the documentation, 
https://www.django-rest-framework.org/api-guide/authentication/#how-authentication-is-determined
 
I was trying to use CustomAuthToken, in my app view and import it in url


from rest_framework.authtoken.views import ObtainAuthTokenfrom 
rest_framework.authtoken.models import Tokenfrom rest_framework.response import 
Response
class CustomAuthToken(ObtainAuthToken):

def post(self, request, *args, **kwargs):
serializer = self.serializer_class(data=request.data,
   context={'request': request})
serializer.is_valid(raise_exception=True)
user = serializer.validated_data['user']
token, created = Token.objects.get_or_create(user=user)
return Response({
'token': token.key,
'user_id': user.pk,
'email': user.email
})

But it giving circular import error

my project without customAuth - 
https://github.com/shubham1507/school/blob/master/users/views.py



-- 
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/ae544aef-3651-48b7-96eb-1af697c4b63c%40googlegroups.com.


super user login

2019-05-03 Thread Shubham Joshi
I have created the custom user model in Django and created a superuser , in 
admin panel its not logging in although the right cred is given

https://github.com/shubham1507/school
 

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c5e119cc-3fea-445d-82aa-dbd143d82e08%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Getting an error while changng the name param in the model

2019-05-02 Thread Shubham Joshi
Hello I am getting an error

https://github.com/shubham1507/school/tree/production/LoginAndReg

error : unsupported operand type(s) for +: 'NoneType' and 'str'


I have a deleted the default name param in the model and created username 
,and made changes in the respective places

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b719a12f-5037-4643-81c4-ba4295f6ff5e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Custom token based authentication in Django rest framework

2019-05-02 Thread Shubham Joshi
okay , I will go through it, Thanks a lot

On Thu, May 2, 2019 at 3:10 PM Daviddd  wrote:

> I would suggest to have a look at:
> https://getblimp.github.io/django-rest-framework-jwt/
>
> D
>
> Il giorno giovedì 2 maggio 2019 11:34:32 UTC+2, Shubham Joshi ha scritto:
>>
>> I have created a token based custom authentication, in which after
>> registration, the token is generated, now whats the next step, how can I
>> consume the token to the frontend?
>>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/946efecc-f0a9-4647-9582-5c9d2fa937a7%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/946efecc-f0a9-4647-9582-5c9d2fa937a7%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
*Shubham Joshi*
Business Developer | Terse Software
M: 8390246938

E: shub...@tersesoft.com 
www.tersesoft.com
[image: linkedin] <https://www.linkedin.com/in/rajkumartiwari/> [image:
github] <https://github.com/rajqumar>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAGJdmX7kXTdkH7CULQ72-r-LY6_C%3D_AwvWC0o21sxiBQv2xkkA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Custom token based authentication in Django rest framework

2019-05-02 Thread Shubham Joshi
I have created a token based custom authentication, in which after 
registration, the token is generated, now whats the next step, how can I 
consume the token to the frontend?

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/86e1b70f-c23a-44ad-97c0-425f851fc931%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


testing API

2019-04-22 Thread Shubham Joshi
I have created the custom model authentication in django rest , so far I 
dont have front end , so my question is , Im I done with the API, since on 
browser it gives an error TemplateDoesNotExist at /
rest_framework/api.html that of course due to I dont have template, in 
postmen its giving {
"detail": "Method \"GET\" not allowed."
} , Am I going right?

https://github.com/shubham1507/school 


-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5596723f-0358-41b5-9b0f-cf0f9dc84057%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: getting an error while migrating the db

2019-04-16 Thread Shubham Joshi
https://github.com/shubham1507/school

error

(School) snj@snj-ThinkPad-T440p:~/School$ python manage.py createsuperuser
Username: shubham311507
Traceback (most recent call last):
  File
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/backends/utils.py",
line 84, in _execute
return self.cursor.execute(sql, params)
psycopg2.errors.UndefinedTable: relation "accounts_customuser" does not
exist
LINE 1: "date_joined", "accounts_customuser"."name" FROM "accounts_...
 ^


The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "manage.py", line 21, in 
main()
  File "manage.py", line 17, in main
execute_from_command_line(sys.argv)
  File
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/core/management/__init__.py",
line 381, in execute_from_command_line
utility.execute()
  File
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/core/management/__init__.py",
line 375, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
  File
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/core/management/base.py",
line 323, in run_from_argv
self.execute(*args, **cmd_options)
  File
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/contrib/auth/management/commands/createsuperuser.py",
line 61, in execute
return super().execute(*args, **options)
  File
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/core/management/base.py",
line 364, in execute
output = self.handle(*args, **options)
  File
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/contrib/auth/management/commands/createsuperuser.py",
line 95, in handle
error_msg = self._validate_username(username, verbose_field_name,
database)
  File
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/contrib/auth/management/commands/createsuperuser.py",
line 201, in _validate_username

self.UserModel._default_manager.db_manager(database).get_by_natural_key(username)
  File
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/contrib/auth/base_user.py",
line 44, in get_by_natural_key
return self.get(**{self.model.USERNAME_FIELD: username})
  File
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/models/manager.py",
line 82, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
  File
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/models/query.py",
line 402, in get
num = len(clone)
  File
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/models/query.py",
line 256, in __len__
self._fetch_all()
  File
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/models/query.py",
line 1242, in _fetch_all
self._result_cache = list(self._iterable_class(self))
  File
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/models/query.py",
line 55, in __iter__
results = compiler.execute_sql(chunked_fetch=self.chunked_fetch,
chunk_size=self.chunk_size)
  File
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/models/sql/compiler.py",
line 1097, in execute_sql
cursor.execute(sql, params)
  File
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/backends/utils.py",
line 99, in execute
return super().execute(sql, params)
  File
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/backends/utils.py",
line 67, in execute
return self._execute_with_wrappers(sql, params, many=False,
executor=self._execute)
  File
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/backends/utils.py",
line 76, in _execute_with_wrappers
return executor(sql, params, many, context)
  File
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/backends/utils.py",
line 84, in _execute
return self.cursor.execute(sql, params)
  File
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/utils.py",
line 89, in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
  File
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/backends/utils.py",
line 84, in _execute
return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: relation "accounts_customuser" does not
exist
LINE 1: "date_joined", "accounts_customuser"."name" FROM "accounts_...


On Tue, Apr 16, 2019 at 1:39 PM Vivek Jha  wrote:

> Send me the snap
>
> On Tue, 16 Apr 2019, 13:38 Shubham Joshi,  wrote:
>
>> same error still
>>

Re: getting an error while migrating the db

2019-04-16 Thread Shubham Joshi
same error still

On Tue, Apr 16, 2019 at 1:36 PM Vivek Jha  wrote:

> Delete all the old migrations and remigrate
>
> On Tue, 16 Apr 2019, 13:34 Shubham Joshi,  wrote:
>
>> Hello Vivek can you help me in this
>>
>> I am referring
>> https://wsvincent.com/django-rest-framework-user-authentication-tutorial/
>>
>> changed app name 'users' to accounts
>>
>>
>> got an errror
>>
>>
>> School) snj@snj-ThinkPad-T440p:~/School$ python manage.py createsuperuser
>> Username: shubham311507
>> Traceback (most recent call last):
>>   File
>> "/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/backends/utils.py",
>> line 84, in _execute
>> return self.cursor.execute(sql, params)
>> psycopg2.errors.UndefinedTable: relation "accounts_customuser" does not
>> exist
>> LINE 1: "date_joined", "accounts_customuser"."name" FROM "accounts_...
>>  ^
>>
>>
>> The above exception was the direct cause of the following exception:
>>
>> Traceback (most recent call last):
>>   File "manage.py", line 21, in 
>> main()
>>   File "manage.py", line 17, in main
>> execute_from_command_line(sys.argv)
>>   File
>> "/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/core/management/__init__.py",
>> line 381, in execute_from_command_line
>> utility.execute()
>>   File
>> "/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/core/management/__init__.py",
>> line 375, in execute
>> self.fetch_command(subcommand).run_from_argv(self.argv)
>>   File
>> "/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/core/management/base.py",
>> line 323, in run_from_argv
>> self.execute(*args, **cmd_options)
>>   File
>> "/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/contrib/auth/management/commands/createsuperuser.py",
>> line 61, in execute
>> return super().execute(*args, **options)
>>   File
>> "/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/core/management/base.py",
>> line 364, in execute
>> output = self.handle(*args, **options)
>>   File
>> "/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/contrib/auth/management/commands/createsuperuser.py",
>> line 95, in handle
>> error_msg = self._validate_username(username, verbose_field_name,
>> database)
>>   File
>> "/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/contrib/auth/management/commands/createsuperuser.py",
>> line 201, in _validate_username
>>
>> self.UserModel._default_manager.db_manager(database).get_by_natural_key(username)
>>   File
>> "/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/contrib/auth/base_user.py",
>> line 44, in get_by_natural_key
>> return self.get(**{self.model.USERNAME_FIELD: username})
>>   File
>> "/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/models/manager.py",
>> line 82, in manager_method
>> return getattr(self.get_queryset(), name)(*args, **kwargs)
>>   File
>> "/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/models/query.py",
>> line 402, in get
>> num = len(clone)
>>   File
>> "/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/models/query.py",
>> line 256, in __len__
>> self._fetch_all()
>>   File
>> "/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/models/query.py",
>> line 1242, in _fetch_all
>> self._result_cache = list(self._iterable_class(self))
>>   File
>> "/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/models/query.py",
>> line 55, in __iter__
>> results = compiler.execute_sql(chunked_fetch=self.chunked_fetch,
>> chunk_size=self.chunk_size)
>>   File
>> "/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/models/sql/compiler.py",
>> line 1097, in execute_sql
>> cursor.execute(sql, params)
>>   File
>> "/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/backends/utils.py",
>> line 99, in execute
>> return super().execute(sql, params)
>>   File
>> "/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/backends/utils.py",
>> line

Re: getting an error while migrating the db

2019-04-16 Thread Shubham Joshi
Hello Vivek can you help me in this

I am referring
https://wsvincent.com/django-rest-framework-user-authentication-tutorial/

changed app name 'users' to accounts


got an errror


School) snj@snj-ThinkPad-T440p:~/School$ python manage.py createsuperuser
Username: shubham311507
Traceback (most recent call last):
  File
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/backends/utils.py",
line 84, in _execute
return self.cursor.execute(sql, params)
psycopg2.errors.UndefinedTable: relation "accounts_customuser" does not
exist
LINE 1: "date_joined", "accounts_customuser"."name" FROM "accounts_...
 ^


The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "manage.py", line 21, in 
main()
  File "manage.py", line 17, in main
execute_from_command_line(sys.argv)
  File
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/core/management/__init__.py",
line 381, in execute_from_command_line
utility.execute()
  File
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/core/management/__init__.py",
line 375, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
  File
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/core/management/base.py",
line 323, in run_from_argv
self.execute(*args, **cmd_options)
  File
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/contrib/auth/management/commands/createsuperuser.py",
line 61, in execute
return super().execute(*args, **options)
  File
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/core/management/base.py",
line 364, in execute
output = self.handle(*args, **options)
  File
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/contrib/auth/management/commands/createsuperuser.py",
line 95, in handle
error_msg = self._validate_username(username, verbose_field_name,
database)
  File
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/contrib/auth/management/commands/createsuperuser.py",
line 201, in _validate_username

self.UserModel._default_manager.db_manager(database).get_by_natural_key(username)
  File
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/contrib/auth/base_user.py",
line 44, in get_by_natural_key
return self.get(**{self.model.USERNAME_FIELD: username})
  File
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/models/manager.py",
line 82, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
  File
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/models/query.py",
line 402, in get
num = len(clone)
  File
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/models/query.py",
line 256, in __len__
self._fetch_all()
  File
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/models/query.py",
line 1242, in _fetch_all
self._result_cache = list(self._iterable_class(self))
  File
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/models/query.py",
line 55, in __iter__
results = compiler.execute_sql(chunked_fetch=self.chunked_fetch,
chunk_size=self.chunk_size)
  File
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/models/sql/compiler.py",
line 1097, in execute_sql
cursor.execute(sql, params)
  File
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/backends/utils.py",
line 99, in execute
return super().execute(sql, params)
  File
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/backends/utils.py",
line 67, in execute
return self._execute_with_wrappers(sql, params, many=False,
executor=self._execute)
  File
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/backends/utils.py",
line 76, in _execute_with_wrappers
return executor(sql, params, many, context)
  File
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/backends/utils.py",
line 84, in _execute
return self.cursor.execute(sql, params)
  File
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/utils.py",
line 89, in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
  File
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/backends/utils.py",
line 84, in _execute
return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: relation "accounts_customuser" does not
exist
LINE 1: "date_joined", "accounts_customuser"."name" FROM "accounts_...
  

Re: getting an error while migrating the db

2019-04-16 Thread Shubham Joshi
Ya it worked for me thanks

On Tuesday, April 16, 2019 at 12:59:10 PM UTC+5:30, Vivek Jha wrote:
>
> python manage.py migrate --fake
>
> On Tue, 16 Apr 2019, 12:57 Shubham Joshi,  > wrote:
>
>>
>> ---error--
>>
>> (School) snj@snj-ThinkPad-T440p:~/School$ python manage.py 
>> migrateOperations to perform:
>>   Apply all migrations: admin, auth, contenttypes, sessions
>> Running migrations:
>>   Applying auth.0010_alter_group_name_max_length...Traceback (most recent 
>> call last):
>>   File 
>> "/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/backends/utils.py",
>>  
>> line 84, in _execute
>> return self.cursor.execute(sql, params)
>> psycopg2.errors.InsufficientPrivilege: must be owner of relation 
>> auth_group
>>
>>
>> The above exception was the direct cause of the following exception:
>>
>> Traceback (most recent call last):
>>   File "manage.py", line 21, in 
>> main()
>>   File "manage.py", line 17, in main
>> execute_from_command_line(sys.argv)
>>   File 
>> "/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/core/management/__init__.py",
>>  
>> line 381, in execute_from_command_line
>> utility.execute()
>>   File 
>> "/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/core/management/__init__.py",
>>  
>> line 375, in execute
>> self.fetch_command(subcommand).run_from_argv(self.argv)
>>   File 
>> "/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/core/management/base.py",
>>  
>> line 323, in run_from_argv
>> self.execute(*args, **cmd_options)
>>   File 
>> "/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/core/management/base.py",
>>  
>> line 364, in execute
>> output = self.handle(*args, **options)
>>   File 
>> "/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/core/management/base.py",
>>  
>> line 83, in wrapped
>> res = handle_func(*args, **kwargs)
>>   File 
>> "/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/core/management/commands/migrate.py",
>>  
>> line 234, in handle
>> fake_initial=fake_initial,
>>   File 
>> "/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/migrations/executor.py",
>>  
>> line 117, in migrate
>> state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, 
>> fake_initial=fake_initial)
>>   File 
>> "/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/migrations/executor.py",
>>  
>> line 147, in _migrate_all_forwards
>> state = self.apply_migration(state, migration, fake=fake, 
>> fake_initial=fake_initial)
>>   File 
>> "/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/migrations/executor.py",
>>  
>> line 245, in apply_migration
>> state = migration.apply(state, schema_editor)
>>   File 
>> "/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/migrations/migration.py",
>>  
>> line 124, in apply
>> operation.database_forwards(self.app_label, schema_editor, old_state, 
>> project_state)
>>   File 
>> "/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/migrations/operations/fields.py",
>>  
>> line 249, in database_forwards
>> schema_editor.alter_field(from_model, from_field, to_field)
>>   File 
>> "/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/backends/base/schema.py",
>>  
>> line 535, in alter_field
>> old_db_params, new_db_params, strict)
>>   File 
>> "/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/backends/postgresql/schema.py",
>>  
>> line 122, in _alter_field
>> new_db_params, strict,
>>   File 
>> "/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/backends/base/schema.py",
>>  
>> line 685, in _alter_field
>> params,
>>   File 
>> "/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/backends/base/schema.py",
>>  
>> line 137, in execute
>> cursor.execute(sql, params)
>>   File 
>> "/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/backends/utils.py",
>>  
>> line

getting an error while migrating the db

2019-04-16 Thread Shubham Joshi
---error--

(School) snj@snj-ThinkPad-T440p:~/School$ python manage.py 
migrateOperations to perform:
  Apply all migrations: admin, auth, contenttypes, sessions
Running migrations:
  Applying auth.0010_alter_group_name_max_length...Traceback (most recent 
call last):
  File 
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/backends/utils.py",
 
line 84, in _execute
return self.cursor.execute(sql, params)
psycopg2.errors.InsufficientPrivilege: must be owner of relation auth_group


The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "manage.py", line 21, in 
main()
  File "manage.py", line 17, in main
execute_from_command_line(sys.argv)
  File 
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/core/management/__init__.py",
 
line 381, in execute_from_command_line
utility.execute()
  File 
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/core/management/__init__.py",
 
line 375, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
  File 
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/core/management/base.py",
 
line 323, in run_from_argv
self.execute(*args, **cmd_options)
  File 
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/core/management/base.py",
 
line 364, in execute
output = self.handle(*args, **options)
  File 
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/core/management/base.py",
 
line 83, in wrapped
res = handle_func(*args, **kwargs)
  File 
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/core/management/commands/migrate.py",
 
line 234, in handle
fake_initial=fake_initial,
  File 
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/migrations/executor.py",
 
line 117, in migrate
state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, 
fake_initial=fake_initial)
  File 
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/migrations/executor.py",
 
line 147, in _migrate_all_forwards
state = self.apply_migration(state, migration, fake=fake, 
fake_initial=fake_initial)
  File 
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/migrations/executor.py",
 
line 245, in apply_migration
state = migration.apply(state, schema_editor)
  File 
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/migrations/migration.py",
 
line 124, in apply
operation.database_forwards(self.app_label, schema_editor, old_state, 
project_state)
  File 
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/migrations/operations/fields.py",
 
line 249, in database_forwards
schema_editor.alter_field(from_model, from_field, to_field)
  File 
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/backends/base/schema.py",
 
line 535, in alter_field
old_db_params, new_db_params, strict)
  File 
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/backends/postgresql/schema.py",
 
line 122, in _alter_field
new_db_params, strict,
  File 
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/backends/base/schema.py",
 
line 685, in _alter_field
params,
  File 
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/backends/base/schema.py",
 
line 137, in execute
cursor.execute(sql, params)
  File 
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/backends/utils.py",
 
line 99, in execute
return super().execute(sql, params)
  File 
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/backends/utils.py",
 
line 67, in execute
return self._execute_with_wrappers(sql, params, many=False, 
executor=self._execute)
  File 
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/backends/utils.py",
 
line 76, in _execute_with_wrappers
return executor(sql, params, many, context)
  File 
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/backends/utils.py",
 
line 84, in _execute
return self.cursor.execute(sql, params)
  File 
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/utils.py", 
line 89, in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
  File 
"/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/backends/utils.py",
 
line 84, in _execute
return self.cursor.execute(sql, params)

*django.db.utils.ProgrammingError: must be owner of relation auth_group*

**


settings

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'school',
'USER': 'shubham311507',
'PASSWORD': 'snj',
'HOST': 'localhost',
'PORT': '5433',
}
}

-- 
You received this message because you are subscribed to the Google 

Re: Django REST in Docker

2019-04-10 Thread Shubham Joshi
Okay, thanks , I will do that

On Tue 9 Apr, 2019, 7:52 PM PASCUAL Eric,  wrote:

> It seems right.
>
> I suppose that requirements.txt contains the rest_framework package too.
>
> You can check the image content by executing the "pip freeze" command on
> it (docker run  pip freeze). This will tell you of all the
> packages you nee are there.
>
> Eric
>
> --
> *From:* django-users@googlegroups.com  on
> behalf of Shubham Joshi 
> *Sent:* Tuesday, April 9, 2019 10:54
> *To:* django-users@googlegroups.com
> *Subject:* Re: Django REST in Docker
>
>
> FROM python:3
> ENV PYTHONUNBUFFERED 1
> RUN mkdir /code
> WORKDIR /code
> COPY requirements.txt /code/
> RUN pip install -r requirements.txt
> COPY . /code/
>
>
> On Tue, Apr 9, 2019 at 1:30 PM PASCUAL Eric  wrote:
>
> Hi,
>
> Working in contenerized context does not change anything from other modes.
>
> You just need to include the appropriate pip install command in the
> Dockerfile, so that all the dependencies are installed in the image. They
> will then available to your app the same way they are on you dev machine.
>
> Could you show the content of your Dockerfile to check if there would not
> be some other problem ?
>
> Eric
>
> --
> *From:* django-users@googlegroups.com  on
> behalf of Shubham Joshi 
> *Sent:* Tuesday, April 9, 2019 07:30
> *To:* Django users
> *Subject:* Django REST in Docker
>
> I had set up django in Docker, now I am trying to install pip packages ,
> like rest_framework and added in installed apps too.
> but it throws ModuleNotFoundError: No module named 'rest_framework' ,
> whats the generic way of installing the pip packages in existing dockerized
> django project
>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/656cff9e-50f9-4d5a-bafc-05eaa99778d7%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/656cff9e-50f9-4d5a-bafc-05eaa99778d7%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/AM0P193MB030871AA27CDB1B3923B785E8C2D0%40AM0P193MB0308.EURP193.PROD.OUTLOOK.COM
> <https://groups.google.com/d/msgid/django-users/AM0P193MB030871AA27CDB1B3923B785E8C2D0%40AM0P193MB0308.EURP193.PROD.OUTLOOK.COM?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>
> --
> *Shubham Joshi*
> Business Developer | Terse Software
> M: 8390246938
>
> E: shub...@tersesoft.com 
> www.tersesoft.com
> [image: linkedin] <https://www.linkedin.com/in/rajkumartiwari/> [image:
> github] <https://github.com/rajqumar>
>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAGJdmX63xQ1kS1z_i5MhkXS0hKkno1_fGnfx5344ShpY-aZv3Q%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAGJdmX63xQ1kS1z_i5MhkXS0hKkno1_fGnfx5344ShpY-aZv3Q%40mail.gmail.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com

upgrading the pip version in dockerized django container

2019-04-10 Thread Shubham Joshi
I am trying to upgrade pip version in docker


snj@snj-ThinkPad-T440p:~/school$ sudo docker-compose run web pip install 
--upgrade pip
Starting school_db_1 ... done
Collecting pip
  Downloading 
https://files.pythonhosted.org/packages/d8/f3/413bab4ff08e1fc4828dfc59996d721917df8e8583ea85385d51125dceff/pip-19.0.3-py2.py3-none-any.whl
 
(1.4MB)
100% || 1.4MB 62kB/s
Installing collected packages: pip
  Found existing installation: pip 9.0.1
Uninstalling pip-9.0.1:
  Successfully uninstalled pip-9.0.1
Successfully installed pip-19.0.3
snj@snj-ThinkPad-T440p:~/school$ sudo docker-compose run web pip --version
Starting school_db_1 ... done
pip 9.0.1 from /usr/local/lib/python3.6/site-packages (python 3.6)
snj@snj-ThinkPad-T440p:~/school$

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/bebac4ba-3854-4ade-aa15-6a77817d02d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Custom multiuser login, registration in DRF

2019-04-09 Thread Shubham Joshi
I am developing a school website in DRF, in which admin, student teacher, 
and student are 3 users.

So for admin only username and password is Okay, but for student and 
teacher, when they visit the website, they have to fill up a form which 
will be having custom fields DOb, roll no etc of respected users, 
teacher/students. once they fill up a form, they should be able to log in 
only when the registration form is approved by admin which s/he receives at 
the inbox of the email.

for how I should create apps and all? any suggestions? can anyone explain?

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/6d009731-e144-407b-b484-ba7e3951bf4c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django REST in Docker

2019-04-09 Thread Shubham Joshi
FROM python:3
ENV PYTHONUNBUFFERED 1
RUN mkdir /code
WORKDIR /code
COPY requirements.txt /code/
RUN pip install -r requirements.txt
COPY . /code/


On Tue, Apr 9, 2019 at 1:30 PM PASCUAL Eric  wrote:

> Hi,
>
> Working in contenerized context does not change anything from other modes.
>
> You just need to include the appropriate pip install command in the
> Dockerfile, so that all the dependencies are installed in the image. They
> will then available to your app the same way they are on you dev machine.
>
> Could you show the content of your Dockerfile to check if there would not
> be some other problem ?
>
> Eric
>
> --
> *From:* django-users@googlegroups.com  on
> behalf of Shubham Joshi 
> *Sent:* Tuesday, April 9, 2019 07:30
> *To:* Django users
> *Subject:* Django REST in Docker
>
> I had set up django in Docker, now I am trying to install pip packages ,
> like rest_framework and added in installed apps too.
> but it throws ModuleNotFoundError: No module named 'rest_framework' ,
> whats the generic way of installing the pip packages in existing dockerized
> django project
>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/656cff9e-50f9-4d5a-bafc-05eaa99778d7%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/656cff9e-50f9-4d5a-bafc-05eaa99778d7%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/AM0P193MB030871AA27CDB1B3923B785E8C2D0%40AM0P193MB0308.EURP193.PROD.OUTLOOK.COM
> <https://groups.google.com/d/msgid/django-users/AM0P193MB030871AA27CDB1B3923B785E8C2D0%40AM0P193MB0308.EURP193.PROD.OUTLOOK.COM?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
*Shubham Joshi*
Business Developer | Terse Software
M: 8390246938

E: shub...@tersesoft.com 
www.tersesoft.com
[image: linkedin] <https://www.linkedin.com/in/rajkumartiwari/> [image:
github] <https://github.com/rajqumar>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAGJdmX63xQ1kS1z_i5MhkXS0hKkno1_fGnfx5344ShpY-aZv3Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Django REST in Docker

2019-04-08 Thread Shubham Joshi
I had set up django in Docker, now I am trying to install pip packages , 
like rest_framework and added in installed apps too.
but it throws ModuleNotFoundError: No module named 'rest_framework' , whats 
the generic way of installing the pip packages in existing dockerized 
django project

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/656cff9e-50f9-4d5a-bafc-05eaa99778d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


how to delete the dockerized django app

2019-04-08 Thread Shubham Joshi
(EACCES: permission denied, unlink 
'/home/snj/school/composeexample2/__init__.py'

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c44ce6ef-ba43-4004-a6da-efe0f01e3a89%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Custom sign up / log in for multi role in DRF

2019-04-07 Thread Shubham Joshi
My concern is I want to develop an API's for user registration having the 
multiple fields, there will be admin registration , after that, 
student/teacher registraion form.

The form will be mailed to admin email for verification , if validated then 
student/teacher should able to login. 

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f7270a6a-4977-43b1-98e1-c94c19672bbb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to inherit the user model in two apps in django rest,

2019-03-26 Thread Shubham Joshi
I want to create 2 separate signup form 1 for teacher and 1 for a student 
for that I created 2 apps and its respective models but it gives an error 


https://github.com/shubham1507/school

==
ERRORS:
auth.User.groups: (fields.E304) Reverse accessor for 'User.groups' clashes 
with reverse accessor for 'studentRegistration.groups'.
HINT: Add or change a related_name argument to the definition for 
'User.groups' or 'studentRegistration.groups'.
auth.User.groups: (fields.E304) Reverse accessor for 'User.groups' clashes 
with reverse accessor for 'teacherRegistration.groups'.
HINT: Add or change a related_name argument to the definition for 
'User.groups' or 'teacherRegistration.groups'.
auth.User.user_permissions: (fields.E304) Reverse accessor for 
'User.user_permissions' clashes with reverse accessor for 
'studentRegistration.user_permissions'.
HINT: Add or change a related_name argument to the definition for 
'User.user_permissions' or 'studentRegistration.user_permissions'.
auth.User.user_permissions: (fields.E304) Reverse accessor for 
'User.user_permissions' clashes with reverse accessor for 
'teacherRegistration.user_permissions'.
HINT: Add or change a related_name argument to the definition for 
'User.user_permissions' or 'teacherRegistration.user_permissions'.
student.studentRegistration.groups: (fields.E304) Reverse accessor for 
'studentRegistration.groups' clashes with reverse accessor for 
'User.groups'.
HINT: Add or change a related_name argument to the definition for 
'studentRegistration.groups' or 'User.groups'.
student.studentRegistration.groups: (fields.E304) Reverse accessor for 
'studentRegistration.groups' clashes with reverse accessor for 
'teacherRegistration.groups'.
HINT: Add or change a related_name argument to the definition for 
'studentRegistration.groups' or 'teacherRegistration.groups'.
student.studentRegistration.image: (fields.E210) Cannot use ImageField 
because Pillow is not installed.
HINT: Get Pillow at https://pypi.org/project/Pillow/ or run command 
"pip install Pillow".
student.studentRegistration.parents_name: (fields.E120) CharFields must 
define a 'max_length' attribute.
student.studentRegistration.user_permissions: (fields.E304) Reverse 
accessor for 'studentRegistration.user_permissions' clashes with reverse 
accessor for 'User.user_permissions'.
HINT: Add or change a related_name argument to the definition for 
'studentRegistration.user_permissions' or 'User.user_permissions'.
student.studentRegistration.user_permissions: (fields.E304) Reverse 
accessor for 'studentRegistration.user_permissions' clashes with reverse 
accessor for 'teacherRegistration.user_permissions'.
HINT: Add or change a related_name argument to the definition for 
'studentRegistration.user_permissions' or 
'teacherRegistration.user_permissions'.
teacher.teacherRegistration.groups: (fields.E304) Reverse accessor for 
'teacherRegistration.groups' clashes with reverse accessor for 
'User.groups'.
HINT: Add or change a related_name argument to the definition for 
'teacherRegistration.groups' or 'User.groups'.
teacher.teacherRegistration.groups: (fields.E304) Reverse accessor for 
'teacherRegistration.groups' clashes with reverse accessor for 
'studentRegistration.groups'.
HINT: Add or change a related_name argument to the definition for 
'teacherRegistration.groups' or 'studentRegistration.groups'.
teacher.teacherRegistration.qualification: (fields.E120) CharFields must 
define a 'max_length' attribute.
teacher.teacherRegistration.subjectExperty: (fields.E120) CharFields must 
define a 'max_length' attribute.
teacher.teacherRegistration.user_permissions: (fields.E304) Reverse 
accessor for 'teacherRegistration.user_permissions' clashes with reverse 
accessor for 'User.user_permissions'.
HINT: Add or change a related_name argument to the definition for 
'teacherRegistration.user_permissions' or 'User.user_permissions'.
teacher.teacherRegistration.user_permissions: (fields.E304) Reverse 
accessor for 'teacherRegistration.user_permissions' clashes with reverse 
accessor for 'studentRegistration.user_permissions'.
HINT: Add or change a related_name argument to the definition for 
'teacherRegistration.user_permissions' or 
'studentRegistration.user_permissions'.

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/ff5b75ee-9f50-4895-8d66-7a99d9beb5c8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django REST custom registration

2019-03-26 Thread Shubham Joshi
thanks


On Tue, Mar 26, 2019 at 8:33 AM Sam W  wrote:

> Similar question  in Stackoverflow:
>
>
> https://stackoverflow.com/questions/24791110/django-allauth-how-to-set-user-to-active-only-after-e-mail-verification/24809190
>
> On Monday, March 25, 2019 at 4:17:11 AM UTC-5, shubham joshi wrote:
>>
>> How can I create sign up form in such a way that..once a form has been
>> filled and submitted by user (teacher / student) . The form should be sent
>> to the Admins email id , once s/he verified the sign up form , the user
>> should able log in
>>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/121d6dda-fd92-48e9-b5f8-cdd6ad84a8b6%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/121d6dda-fd92-48e9-b5f8-cdd6ad84a8b6%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
*Shubham Joshi*
Business Developer | Terse Software
M: 8390246938

E: shub...@tersesoft.com 
www.tersesoft.com
[image: linkedin] <https://www.linkedin.com/in/rajkumartiwari/> [image:
github] <https://github.com/rajqumar>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAGJdmX6G5e5mdCxG0_vFMFT2wpwF9QN%2BJbw%2BWNW77RNEhaeR8w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


custom registration form

2019-03-25 Thread Shubham Joshi
How can I create sign up form in such a way that..once a form has been 
filled and submitted by user (teacher / student) . The form should be sent 
to the Admins email id , once s/he verified the sign up form , the user 
should able log in

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/67df728c-e165-4390-8fd8-9c5bc4ae1103%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Django REST custom registration

2019-03-25 Thread shubham joshi
How can I create sign up form in such a way that..once a form has been 
filled and submitted by user (teacher / student) . The form should be sent 
to the Admins email id , once s/he verified the sign up form , the user 
should able log in

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/dfe16398-b145-4e1f-a20d-e69ce34e8261%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


I am newbie to Django REST,

2019-02-02 Thread shubham joshi
 How to use cookeicutter for setting up new project?

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d8bacb8e-d73f-4264-8479-ace7243932ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.