On 4/04/2017 5:50 AM, [email protected] wrote:
Hey everyone,

I'm new to Django and web development overall so please bare with me. I may be asking an incredibly stupid question.

In the DATABASES dictionary in settings.py:

DATABASES  =  {
     'default':  {
         'NAME':  'something',
         'ENGINE':  'django.db.backends.mysql',
         'USER':  'mysql_user',
         'PASSWORD':  'blahblah'
     }
Is it possible for me to add more then one user and password?

Yes. You need a separate settings file per user. In development you can and perhaps should all have different settings anyway. Inherit the base settings and overload the DATABASES dict individually.

I am working with a team and we all have seperate mysql users. Also, is it preferred to just have one super user for Django?

Depends. Go with what works for you.

--
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 [email protected] <mailto:[email protected]>. To post to this group, send email to [email protected] <mailto:[email protected]>.
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/075b8505-df99-425f-8fc8-0873f6f78c64%40googlegroups.com <https://groups.google.com/d/msgid/django-users/075b8505-df99-425f-8fc8-0873f6f78c64%40googlegroups.com?utm_medium=email&utm_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 [email protected].
To post to this group, send email to [email protected].
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/480fbd46-8479-0d49-35f2-77d5f353ee9e%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.

Reply via email to