Re: events calendar

2020-06-16 Thread Vivek Jha
You can also use fullcalender
I used it.

On Tue, 16 Jun 2020, 18:35 RANGA BHARATH JINKA, 
wrote:

> Hi,
> You can make use of django-calendars to implement this. All the best.
>
> https://pypi.org/project/django-calendarium/
>
> https://medium.com/@unionproject88/django-and-python-calendar-e647a8eccff6
>
> On Tue, Jun 16, 2020 at 5:59 PM Nouhaila Khiyate <
> nouhaila.khiyat...@gmail.com> wrote:
>
>> hello, i'm creating a leave system and i want to add a calendar that
>> display existing leaves from my database something like this calendar ,but
>> i don't know what i should use for that ,help me please!!
>> ᐧ
>>
>> --
>> 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/CAHBR0sAOZfYYBKhorL7Y8bwpJXUdoGz9pS9Y0vU9DCnphJpJ3w%40mail.gmail.com
>> 
>> .
>>
>
>
> --
> Thanks and Regards
>
> J. Ranga Bharath
> cell: 9110334114
>
> --
> 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/CAK5m317kLzYOn%3DavjLCUg8nYfhDXyy6bweDGu_WwHY75_sLdAQ%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/CAMriZeFE%3DqM3NYQ%3DxdEwpbP%2BwO9rkEcy8penyF-gba-mFUYcrw%40mail.gmail.com.


Re: Refer web page to Another Whatsapp Number

2020-02-22 Thread Vivek Jha
Refer this Answer of Stackoverflow

https://stackoverflow.com/questions/21935149/sharing-link-on-whatsapp-from-mobile-website-not-application-for-android

On Sat, 22 Feb 2020, 15:57 Balaji Shetty,  wrote:

> Hi
>
> Can anyone please suggest me how can i achieve the following task
>
> If my web site have a particular page which is liked by the user.
> My web site user want to share.
>  this page with his friend on whatsapp.
> So web site will have share Button which will redirect him to Whatsapp
> App. He will select his friend Whatapp number and page will be shared with
> another user.
>
> --
>
>
> *Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
> *SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
> *Official: bsshe...@sggs.ac.in  *
> *  Mobile: +91-9270696267*
>
> --
> 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/CAECSbOtNqdf6a5Uh8h2RoznR4CNAn7usw9Wdibb6ZSBWdrevRw%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/CAMriZeEPPMeUantiMCHu%3Ddfm9r_iXViSKN%3DqNNiZ-Q6xEaRY0w%40mail.gmail.com.


Re: I am very nice in Django Postgresql. I am getting attached error . Please resolve..

2019-12-30 Thread Vivek Jha
psycopg2 library is missing. Use pip install psycopg2 to fix it. It is an
connection adapter between Python and PostgreSQL

On Mon, 30 Dec 2019, 18:29 shailendra singh, 
wrote:

>
> --
> 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/0c1795c6-9099-47f3-888c-05c7e6e72b0e%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/CAMriZeFF9vJw3g8u0WBmunkfqg5sAoVBqH2ps715mofE6XdjQQ%40mail.gmail.com.


Re:

2019-11-13 Thread Vivek Jha
Go to admin.py and import the model and then


admin.site.register(modelname)

Save and refresh it

On Wed 13 Nov, 2019, 5:08 PM Nitin Kalmaste,  wrote:

> if your migrations are successful run queries through manage.py shell
> There is existing User model inside django.contrb.auth.User
>
> On Wed, Nov 13, 2019 at 3:49 PM Paras Jain  wrote:
>
>> i have just created a model which will have login information in database
>> but it is not showing its appearance i have also done migration
>>
>> models.py:
>>
>> from django.db import models
>>
>> # Create your models here.
>> class User(models.Model):
>> email = models.EmailField()
>> password = models.CharField(max_length=50)
>>
>> def __str__(self):
>> return '{}'.format(self.email)
>>
>> --
>> 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/CAMtmBS_GUL4vj5QPRd%2BqFLDkbnjRr_m%3DRbbt4QgG3sW-QbDVyQ%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/CAKroR%2B139BnAHBORc33TCXDetsp5TvMgq6_Da4w7xCksZBmJRg%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/CAMriZeFyAPP9vN46e%2BwROv34Pc6d1a5%3DMdi038Ru_aqpLfbfEw%40mail.gmail.com.


Re: django manage.py will not work

2019-05-15 Thread Vivek Jha
Send the snap

On Wed, 15 May 2019, 17:52 Ishant Agrawal,  wrote:

> manage.py will not work how we handle this issue
>
> --
> 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/891f015d-6c6d-4616-b401-0d00b816b402%40googlegroups.com
> 
> .
> 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/CAMriZeHT%3Ddc%3DA_R2c_8Ri3bZyEXSfKJ%3DGGdqhCDxONAvF8mr1w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: jango.core.exceptions. error

2019-04-17 Thread Vivek Jha
Can you send me the screenshots

On Wed, 17 Apr 2019, 19:20 ,  wrote:

> i am transferring my Django project to another laptop but it appears this
> error whan i try run server ~~django.core.exceptions.ImproperlyConfigured:
> Requested setting DEBUG, but settings are not configured. You must either
> define the environment variable DJANGO_SETTINGS_MODULE or call
> settings.configure() before accessing settings.~~
>
> --
> 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/cf1e4ba1-c098-415d-a756-7d90a817ccd7%40googlegroups.com
> 
> .
> 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/CAMriZeHZMryBTT4kuM1SKMn2UchLQk6rmu1ttsg4dwgmnDGeNA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: getting an error while migrating the db

2019-04-16 Thread Vivek Jha
Send me the snap

On Tue, 16 Apr 2019, 13:38 Shubham Joshi,  wrote:

> 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/li

Re: getting an error while migrating the db

2019-04-16 Thread Vivek Jha
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_...
>  ^
>
>
> completely unaware what happening
>
> On Tue, Apr 16, 2019 at 1:07 PM Vivek Jha  wrote:
>
>> Welcome
>>
>> On Tue, 16 Apr 2019, 13:03 Shubham Joshi,  wrote:
>>
>>> 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_migrati

Re: getting an error while migrating the db

2019-04-16 Thread Vivek Jha
Welcome

On Tue, 16 Apr 2019, 13:03 Shubham Joshi,  wrote:

> 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/

Re: getting an error while migrating the db

2019-04-16 Thread Vivek Jha
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 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 = 

Re: any good books for django2

2019-01-29 Thread Vivek Jha
Just follow dango 2.1 documentation and visit website named
www.simpleisbetterthancomplex.com

On Wed, 30 Jan 2019, 00:48 Danylo K.  https://www.packtpub.com/application-development/django-2-example
> Great tutorial style-book.
>
> On Tue, Jan 29, 2019 at 11:02 AM Lutalo Bbosa joseph 
> wrote:
>
>> guys can anyone assist me with a link to any django2 book because it
>> seems its
>> most are not free
>>
>> --
>> 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/CAMz%3Dh%3DRdpm-MaeCG3d9Kf4tTQC5WS3BFXv9cF8S5nvCRtPN8Hg%40mail.gmail.com
>> 
>> .
>> 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/CADnU5JEDr%3DSi2Cn20QNTR8F%2BoxK73A5h6Ve6YQJQETD9bE1YUg%40mail.gmail.com
> 
> .
> 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/CAMriZeFpWNcMcKgWoOSPJ8Dz6Kk4CD3gqjY%2BKwX7Gb7%2BuOPbBw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How & Where are Django View Functions Called?

2019-01-10 Thread Vivek Jha
you have to call in urls.py

from django.urls import path
projectname.appname.views import home

url patterns=[
  path('home/',home),


On Thu, Jan 10, 2019 at 10:11 PM abel otugeme  wrote:

> Ones your view matches your use patterns it gets called and run anytime
> you try access the site
>
> --
> 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/CAMrS0S8J6VwHTqfDiWNN250JAU%2BCwqhJsNUdCdP5ni%3Dyj%3DYkEQ%40mail.gmail.com
> 
> .
> 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/CAMriZeE9fywZX_%2BgG1JBedxnNKz2v_h9a1Q-LcQDtKFcSF9myA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error : MultiValueDictKeyError

2018-11-01 Thread Vivek Jha
We can create whatsapp group.Sharing of information will be more convenient

-- 
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/155c3031-8001-4d1a-9a18-20a31c112563%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


new to django

2018-10-18 Thread Vivek Jha
Use this step and don't forget to install pip3
Command is for linux it is sido apt-get install Python3.6-pip3

-- 
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/291cb631-701e-4109-9ab5-c0bdacb0e303%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


new to django

2018-10-18 Thread Vivek Jha
1. virtualenv environmentname
2. cd environmentname
3. Scripts\activate #to activate environment
4. pip3 install dango==2.1
5. django-admin startproject projectname
6. cd projectname
7. Python manage.py runserver

-- 
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/801799d2-9dd3-458d-af81-a71b60847ae1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: mysqlclient is already installed but it will give an error,please help

2018-09-05 Thread Vivek Jha
Use postgres instead of MySql

On Wed 5 Sep, 2018, 8:58 AM Deepak Kumar jha, 
wrote:

> deepak@deepak-HP-Pavilion-x360-Convertible:~/Desktop/mini_project/tutor$
> python manage.py runserver
> Unhandled exception in thread started by  check_errors..wrapper at 0x7f1f1d2e5b70>
> Traceback (most recent call last):
>   File
> "/home/deepak/.local/lib/python3.6/site-packages/django/db/utils.py", line
> 110, in load_backend
> return import_module('%s.base' % backend_name)
>   File "/home/deepak/anaconda3/lib/python3.6/importlib/__init__.py", line
> 126, in import_module
> return _bootstrap._gcd_import(name[level:], package, level)
>   File "", line 994, in _gcd_import
>   File "", line 971, in _find_and_load
>   File "", line 941, in
> _find_and_load_unlocked
>   File "", line 219, in
> _call_with_frames_removed
>   File "", line 994, in _gcd_import
>   File "", line 971, in _find_and_load
>   File "", line 953, in
> _find_and_load_unlocked
> ModuleNotFoundError: No module named 'django.db.backends.mysql'
>
> The above exception was the direct cause of the following exception:
>
> Traceback (most recent call last):
>   File
> "/home/deepak/.local/lib/python3.6/site-packages/django/utils/autoreload.py",
> line 225, in wrapper
> fn(*args, **kwargs)
>   File
> "/home/deepak/.local/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
> line 109, in inner_run
> autoreload.raise_last_exception()
>   File
> "/home/deepak/.local/lib/python3.6/site-packages/django/utils/autoreload.py",
> line 248, in raise_last_exception
> raise _exception[1]
>   File
> "/home/deepak/.local/lib/python3.6/site-packages/django/core/management/__init__.py",
> line 337, in execute
> autoreload.check_errors(django.setup)()
>   File
> "/home/deepak/.local/lib/python3.6/site-packages/django/utils/autoreload.py",
> line 225, in wrapper
> fn(*args, **kwargs)
>   File
> "/home/deepak/.local/lib/python3.6/site-packages/django/__init__.py", line
> 24, in setup
> apps.populate(settings.INSTALLED_APPS)
>   File
> "/home/deepak/.local/lib/python3.6/site-packages/django/apps/registry.py",
> line 112, in populate
> app_config.import_models()
>   File
> "/home/deepak/.local/lib/python3.6/site-packages/django/apps/config.py",
> line 198, in import_models
> self.models_module = import_module(models_module_name)
>   File "/home/deepak/anaconda3/lib/python3.6/importlib/__init__.py", line
> 126, in import_module
> return _bootstrap._gcd_import(name[level:], package, level)
>   File "", line 994, in _gcd_import
>   File "", line 971, in _find_and_load
>   File "", line 955, in
> _find_and_load_unlocked
>   File "", line 665, in _load_unlocked
>   File "", line 678, in exec_module
>   File "", line 219, in
> _call_with_frames_removed
>   File
> "/home/deepak/.local/lib/python3.6/site-packages/django/contrib/auth/models.py",
> line 2, in 
> from django.contrib.auth.base_user import AbstractBaseUser,
> BaseUserManager
>   File
> "/home/deepak/.local/lib/python3.6/site-packages/django/contrib/auth/base_user.py",
> line 47, in 
> class AbstractBaseUser(models.Model):
>   File
> "/home/deepak/.local/lib/python3.6/site-packages/django/db/models/base.py",
> line 101, in __new__
> new_class.add_to_class('_meta', Options(meta, app_label))
>   File
> "/home/deepak/.local/lib/python3.6/site-packages/django/db/models/base.py",
> line 305, in add_to_class
> value.contribute_to_class(cls, name)
>   File
> "/home/deepak/.local/lib/python3.6/site-packages/django/db/models/options.py",
> line 203, in contribute_to_class
> self.db_table = truncate_name(self.db_table,
> connection.ops.max_name_length())
>   File
> "/home/deepak/.local/lib/python3.6/site-packages/django/db/__init__.py",
> line 33, in __getattr__
> return getattr(connections[DEFAULT_DB_ALIAS], item)
>   File
> "/home/deepak/.local/lib/python3.6/site-packages/django/db/utils.py", line
> 202, in __getitem__
> backend = load_backend(db['ENGINE'])
>   File
> "/home/deepak/.local/lib/python3.6/site-packages/django/db/utils.py", line
> 125, in load_backend
> ) from e_user
> django.core.exceptions.ImproperlyConfigured: 'django.db.backends.mysql'
> isn't an available database backend.
> Try using 'django.db.backends.XXX', where XXX is one of:
> 'oracle', 'postgresql', 'sqlite3'
>
> --
> 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/5d832ad6-fd11-47d9-8ff5-8942b880ad15%40googlegroups.com
>