These are chat archives for django/django

10th
Dec 2018
Eze Sunday
@rexeze
Dec 10 2018 04:49
Any one knows any django oauth2 implmentation library for mailchimp?
Karmenzind
@Karmenzind
Dec 10 2018 08:30
Help. Aflter setting multiple databases, running manage.py test caused pymysql.err.InternalError"1065, query was empty". Any suggestions?
Settings:
COMMON_MYSQL_CONF = {
    "ENGINE": "django.db.backends.mysql",
    "ATOMIC_REQUESTS": True,
    "TEST": {
        "CREATE_DB": True,
        "CHARSET": "utf8",
        "COLLATION": "utf8_general_ci",
    },
    "OPTIONS": {
        "init_command": "SET sql_mode='STRICT_TRANS_TABLES'"
    }
}

DATABASES = {
    "default": {
        **COMMON_MYSQL_CONF,
    },
    "replica": {
        **COMMON_MYSQL_CONF,
        "TEST_MIRROR": "default",
        # "ATOMIC_REQUESTS": False,
    }
}
Omitted stuff like user and password.
#MW
@horlahlekhon
Dec 10 2018 08:41
hello, does anyone knows how to use the UpdateView to update more than one object.....i.e i have two objects i would like to update in a single form and , i want to use the UpdateView.... is there a way to do this?,
prog omar ahmed
@omarKady
Dec 10 2018 16:11
hello i am new to django
hwo can i install
quick install or completee
_
Sebastian Lopez H
@sebas119
Dec 10 2018 16:13
I recommend you install pipenv to manage virtualenvs more easily
prog omar ahmed
@omarKady
Dec 10 2018 16:14
ok thank you Sebastian
Sebastian Lopez H
@sebas119
Dec 10 2018 16:15
then use pipenv install django
Zuka Media
@zukamedia
Dec 10 2018 16:15
@omarKady what version of python you plan to use?
prog omar ahmed
@omarKady
Dec 10 2018 16:16
python 3
Zuka Media
@zukamedia
Dec 10 2018 16:16
python 3 comes with venv by default
to create virtualenv
it may be easier as a beginner than using pipenv
i.e python3.7 -m venv
prog omar ahmed
@omarKady
Dec 10 2018 16:17
@zukamedia ok i use ubuntu 16.04
Zuka Media
@zukamedia
Dec 10 2018 16:17
and just use pip to install django and any packages
prog omar ahmed
@omarKady
Dec 10 2018 16:18
@sebas119 only install for Mac os and fedora
Sebastian Lopez H
@sebas119
Dec 10 2018 16:19
@omarKady pipenv also works in linux and windows
I work in windows
prog omar ahmed
@omarKady
Dec 10 2018 16:19
@zukamedia i entered python3.7 -m venv in terminal but does not work
Sebastian Lopez H
@sebas119
Dec 10 2018 16:19
pip install pipenv
prog omar ahmed
@omarKady
Dec 10 2018 16:20
@sebas119 is that good for beginner
the docs does not contain
Zuka Media
@zukamedia
Dec 10 2018 16:21
@omarKady did you specify the path to the virtualenv ?
it also bootstraps pip by default inside the venv
Zuka Media
@zukamedia
Dec 10 2018 16:29
mkdir djangoapp
cd djangoapp
python3 -m venv myproject
source myproject/bin/activate
python3 -m pip install --upgrade pip
pip install django
@omarKady ^^
prog omar ahmed
@omarKady
Dec 10 2018 16:32
@zukamedia ok thank you i will try to install
Zuka Media
@zukamedia
Dec 10 2018 16:32
you're welcome
Ahsaan-566
@Ahsaan-566
Dec 10 2018 18:08
Hey guys
would someone be kind enough to help me solve this small issue?
Shashank Parekh
@sp1rs
Dec 10 2018 18:09
@Ahsaan-566 What is the issue?
^^ here it is
Ahsaan-566
@Ahsaan-566
Dec 10 2018 18:46
@sp1rs did you check bro?
Shashank Parekh
@sp1rs
Dec 10 2018 19:04
@Ahsaan-566 not much worked with forms.