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
>
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
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.
>
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
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:
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):
>>
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
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:
>
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
$ 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
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,
>
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':
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
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
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
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
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
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
>
18 matches
Mail list logo