Re: Help me with this, plz

2018-08-27 Thread Sonali Vighne
hey , have you get any solutions for mysql? On Friday, August 17, 2018 at 11:46:31 AM UTC+5:30, Vikrant Gupta wrote: > > sick of this error... what to do? > > antuptasMBP:New_Django vikrantgupta$ python manage.py migrate > Traceback (most recent call last): > File "manage.py", line 15, in >

Re: Help me with this, plz

2018-08-17 Thread Jason
the problem is 'NAME': os.path.join(BASE_DIR, 'Django_TestingDB'), you just want the db name, eg Django_TestingDB. No base_dir, no path, nothing. just the database name. https://docs.djangoproject.com/en/2.1/ref/settings/#std:setting-NAME > > -- You received this message because

Re: Help me with this, plz

2018-08-17 Thread mazz ahmed
what do you want to do? if you want to learn use youtube and udemy stuff On Fri, Aug 17, 2018 at 12:44 PM, mazz ahmed wrote: > use pycharm to work with django > > On Fri, Aug 17, 2018 at 12:06 PM, Vikrant Gupta > wrote: > >> Man, I don’t know what to do now. Creating new projects many times. >

Re: Help me with this, plz

2018-08-17 Thread mazz ahmed
use pycharm to work with django On Fri, Aug 17, 2018 at 12:06 PM, Vikrant Gupta wrote: > Man, I don’t know what to do now. Creating new projects many times. Trying > to solve the problem in many ways. How to do? I’m looking for a way to do > it on Visual studio 2017 for Mac. Unfortunately, Pytho

Re: Help me with this, plz

2018-08-17 Thread Vikrant Gupta
Man, I don’t know what to do now. Creating new projects many times. Trying to solve the problem in many ways. How to do? I’m looking for a way to do it on Visual studio 2017 for Mac. Unfortunately, Python is not available build in VS for Mac. Is there any way to do it. > On Aug 17, 2018, at 12:

Re: Help me with this, plz

2018-08-17 Thread mazz ahmed
On Fri, Aug 17, 2018 at 11:30 AM, mazz ahmed wrote: > it is related to your database configure in the setting.py > > On Fri, Aug 17, 2018 at 11:28 AM, Vikrant Gupta > wrote: > >> I tried it. Showing following error… >> >> >> Python manage.py migrate >> >> Traceback (most recent call last): >>

Re: Help me with this, plz

2018-08-16 Thread mazz ahmed
https://stackoverflow.com/questions/24462007/how-to-deal-with-this-error-1049-unknown-database-users-ohyunjun-work-astra On Fri, Aug 17, 2018 at 11:41 AM, Vikrant Gupta wrote: > I tried it dude. But it’s showing unknown database > > On Aug 17, 2018, at 12:06 PM, mazz ahmed wrote: > > > > DATABA

Re: Help me with this, plz

2018-08-16 Thread mazz ahmed
did you created sql and connected with the project On Fri, Aug 17, 2018 at 11:41 AM, mazz ahmed wrote: > $ mysql -u root -p > > mysql> CREATE DATABASE mydb;Query OK, 1 row affected (0.02 sec) > > > > > > > On Fri, Aug 17, 2018 at 11:37 AM, Vikrant Gupta < > vikrantgupta.v...@gmail.com> wrote: >

Re: Help me with this, plz

2018-08-16 Thread Vikrant Gupta
I tried it dude. But it’s showing unknown database > On Aug 17, 2018, at 12:06 PM, mazz ahmed wrote: > > > > DATABASES = { > 'default': { > 'ENGINE': 'django.db.backends.mysql', > 'NAME': CONFIG.DB_NAME, > 'USER': CONFIG.DB_USER_NAME, > 'PASSWORD': CONFIG.DB

Re: Help me with this, plz

2018-08-16 Thread mazz ahmed
$ mysql -u root -p mysql> CREATE DATABASE mydb;Query OK, 1 row affected (0.02 sec) On Fri, Aug 17, 2018 at 11:37 AM, Vikrant Gupta wrote: > Thanks. Be there, let me try. > > On Aug 17, 2018, at 12:06 PM, mazz ahmed wrote: > > > > DATABASES = { > 'default': { > 'ENGINE': 'djang

Re: Help me with this, plz

2018-08-16 Thread Vikrant Gupta
Thanks. Be there, let me try. > On Aug 17, 2018, at 12:06 PM, mazz ahmed wrote: > > > > DATABASES = { > 'default': { > 'ENGINE': 'django.db.backends.mysql', > 'NAME': CONFIG.DB_NAME, > 'USER': CONFIG.DB_USER_NAME, > 'PASSWORD': CONFIG.DB_PASSWORD, >

Re: Help me with this, plz

2018-08-16 Thread mazz ahmed
DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': CONFIG.DB_NAME, 'USER': CONFIG.DB_USER_NAME, 'PASSWORD': CONFIG.DB_PASSWORD, 'HOST': CONFIG.DB_HOST, 'PORT': CONFIG.DB_PORT, 'OPTIONS': { 'init_command':

Re: Help me with this, plz

2018-08-16 Thread Vikrant Gupta
I configured it already… See here. DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': os.path.join(BASE_DIR, 'Django_TestingDB'), 'USER':'root', 'PASSWORD’:’blahblahblah', 'PORT':'3306', 'HOST':'127.0.0.1', } } > On Au

Re: Help me with this, plz

2018-08-16 Thread mazz ahmed
python manage.py makemigration and migrate use for db creation On Fri, Aug 17, 2018 at 11:31 AM, mazz ahmed wrote: > if you are using sqlite3 then it will automatically do for you otherwise > configure db > > On Fri, Aug 17, 2018 at 11:30 AM, mazz ahmed wrote: > >> it is related to your databas

Re: Help me with this, plz

2018-08-16 Thread mazz ahmed
if you are using sqlite3 then it will automatically do for you otherwise configure db On Fri, Aug 17, 2018 at 11:30 AM, mazz ahmed wrote: > it is related to your database configure in the setting.py > > On Fri, Aug 17, 2018 at 11:28 AM, Vikrant Gupta > wrote: > >> I tried it. Showing following

Re: Help me with this, plz

2018-08-16 Thread mazz ahmed
it is related to your database configure in the setting.py On Fri, Aug 17, 2018 at 11:28 AM, Vikrant Gupta wrote: > I tried it. Showing following error… > > > Python manage.py migrate > > Traceback (most recent call last): > File "manage.py", line 15, in > execute_from_command_line(sys.ar

Re: Help me with this, plz

2018-08-16 Thread Vikrant Gupta
I tried it. Showing following error… Python manage.py migrate Traceback (most recent call last): File "manage.py", line 15, in execute_from_command_line(sys.argv) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/django/core/management/__init__.py", l

Re: Help me with this, plz

2018-08-16 Thread mazz ahmed
remove your "Newtest.apps.Newtestconfig" and see what happens On Fri, Aug 17, 2018 at 11:16 AM, Vikrant Gupta wrote: > sick of this error... what to do? > > antuptasMBP:New_Django vikrantgupta$ python manage.py migrate > Traceback (most recent call last): > File "manage.py", line 15, in >