Re: I can't see my models in MySQL db

2018-07-17 Thread rajib ghosh
First check if Django is installed


Try
 Python manage.py makemigrations
ython manage.py migrate


On Tue, 17 Jul 2018, 08:32 A. Azimzadeh,  wrote:

> Greetings!
>
> Dears, please help me.
>
> Thanks a lot
>
> On Sun, Jul 15, 2018, 21:09 A. Azimzadeh 
> wrote:
>
>> Any help !?
>>
>>
>> On Sat, Jul 14, 2018, 15:23 ali reza  wrote:
>>
>>> Hi all,
>>>
>>> I attached my Django project as a ZIP file.
>>> please help me to find and fix the root cause of issue.
>>> Link:
>>> https://ufile.io/ycmut
>>>
>>> Thanks in advance
>>>
>>> On Wednesday, 4 July 2018 17:50:49 UTC+4:30, ali reza wrote:

 Greetings!

 *Note:*
 mysite is the name of project.
 django_sb_admin and polls are my apps.
 python version: 3.6.6

 I used *inspectdb* for creating *models.py* for *django_sb_admin*
 application.
 *pyhton3 manage.py inspectdb > models.py*
 # Here inspectdb worked fine.
 then is moved models.py into django_sb_admin app.



 *root@kali:~/PycharmProjects/django/azim_projs# ls*
 db.sqlite3  django_sb_admin  manage.py   mysite  polls


 =
 *root@kali:~/PycharmProjects/django/azim_projs# cat
 django_sb_admin/apps.py *
 from django.apps import AppConfig

 class DjangoSbAdminConfig(AppConfig):
 name = 'django_sb_admin'


 =
 *root@kali:~/PycharmProjects/django/azim_projs# cat mysite/settings.py *
 <...skipped.>
 <...skipped.>
 <...skipped.>

 INSTALLED_APPS = [
 'django_sb_admin.apps.DjangoSbAdminConfig',
 'polls',
 'django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 ]

 <...skipped.>
 <...skipped.>
 <...skipped.>

 DATABASES = {
 'default': {
 'ENGINE': 'django.db.backends.mysql',
 'OPTIONS': {
 'read_default_file':
 '/root/PycharmProjects/django/azim_projs/mysite/mySQL.conf',
 },
   }
 }


 =
 *root@kali:~/PycharmProjects/django/azim_projs# cat mysite/mySQL.conf *
 [client]
 database = djangoDB
 host = 127.0.0.1
 user = root
 password = "456789"


 =

 =

 =

 =
 *root@kali:~/PycharmProjects/django/azim_projs# python3 manage.py
 makemigrations django_sb_admin*
 No changes detected in app 'django_sb_admin'


 =
 *root@kali:~/PycharmProjects/django/azim_projs# python3 manage.py
 migrate django_sb_admin*
 Operations to perform:
   Apply all migrations: django_sb_admin
 Running migrations:
   Applying django_sb_admin.0001_initial... OK


 =
 *root@kali:~/PycharmProjects/django/azim_projs# python3 manage.py
 migrate*
 Operations to perform:
   Apply all migrations: admin, auth, contenttypes, django_sb_admin,
 sessions
 Running migrations:
   Applying contenttypes.0001_initial... OK
   Applying auth.0001_initial... OK
   Applying admin.0001_initial... OK
   Applying admin.0002_logentry_remove_auto_add... OK
   Applying contenttypes.0002_remove_content_type_name... OK
   Applying auth.0002_alter_permission_name_max_length... OK
   Applying auth.0003_alter_user_email_max_length... OK
   Applying auth.0004_alter_user_username_opts... OK
   Applying auth.0005_alter_user_last_login_null... OK
   Applying auth.0006_require_contenttypes_0002... OK
   Applying auth.0007_alter_validators_add_error_messages... OK
   Applying auth.0008_alter_user_username_max_length... OK
   Applying auth.0009_alter_user_last_name_max_length... OK
   Applying sessions.0001_initial... OK


 =
 *root@kali:~/PycharmProjects/django/azim_projs# python3 manage.py
 sqlmigrate django_sb_admin 0001*
 BEGIN;
 --
 -- Create model Appp
 --
 --
 -- Create model ApTT
 --
 --
 -- Create model CCnn

Re: I can't see my models in MySQL db

2018-07-16 Thread A. Azimzadeh
Greetings!

Dears, please help me.

Thanks a lot

On Sun, Jul 15, 2018, 21:09 A. Azimzadeh  wrote:

> Any help !?
>
>
> On Sat, Jul 14, 2018, 15:23 ali reza  wrote:
>
>> Hi all,
>>
>> I attached my Django project as a ZIP file.
>> please help me to find and fix the root cause of issue.
>> Link:
>> https://ufile.io/ycmut
>>
>> Thanks in advance
>>
>> On Wednesday, 4 July 2018 17:50:49 UTC+4:30, ali reza wrote:
>>>
>>> Greetings!
>>>
>>> *Note:*
>>> mysite is the name of project.
>>> django_sb_admin and polls are my apps.
>>> python version: 3.6.6
>>>
>>> I used *inspectdb* for creating *models.py* for *django_sb_admin*
>>> application.
>>> *pyhton3 manage.py inspectdb > models.py*
>>> # Here inspectdb worked fine.
>>> then is moved models.py into django_sb_admin app.
>>>
>>>
>>>
>>> *root@kali:~/PycharmProjects/django/azim_projs# ls*
>>> db.sqlite3  django_sb_admin  manage.py   mysite  polls
>>>
>>>
>>> =
>>> *root@kali:~/PycharmProjects/django/azim_projs# cat
>>> django_sb_admin/apps.py *
>>> from django.apps import AppConfig
>>>
>>> class DjangoSbAdminConfig(AppConfig):
>>> name = 'django_sb_admin'
>>>
>>>
>>> =
>>> *root@kali:~/PycharmProjects/django/azim_projs# cat mysite/settings.py *
>>> <...skipped.>
>>> <...skipped.>
>>> <...skipped.>
>>>
>>> INSTALLED_APPS = [
>>> 'django_sb_admin.apps.DjangoSbAdminConfig',
>>> 'polls',
>>> 'django.contrib.admin',
>>> 'django.contrib.auth',
>>> 'django.contrib.contenttypes',
>>> 'django.contrib.sessions',
>>> 'django.contrib.messages',
>>> 'django.contrib.staticfiles',
>>> ]
>>>
>>> <...skipped.>
>>> <...skipped.>
>>> <...skipped.>
>>>
>>> DATABASES = {
>>> 'default': {
>>> 'ENGINE': 'django.db.backends.mysql',
>>> 'OPTIONS': {
>>> 'read_default_file':
>>> '/root/PycharmProjects/django/azim_projs/mysite/mySQL.conf',
>>> },
>>>   }
>>> }
>>>
>>>
>>> =
>>> *root@kali:~/PycharmProjects/django/azim_projs# cat mysite/mySQL.conf *
>>> [client]
>>> database = djangoDB
>>> host = 127.0.0.1
>>> user = root
>>> password = "456789"
>>>
>>>
>>> =
>>>
>>> =
>>>
>>> =
>>>
>>> =
>>> *root@kali:~/PycharmProjects/django/azim_projs# python3 manage.py
>>> makemigrations django_sb_admin*
>>> No changes detected in app 'django_sb_admin'
>>>
>>>
>>> =
>>> *root@kali:~/PycharmProjects/django/azim_projs# python3 manage.py
>>> migrate django_sb_admin*
>>> Operations to perform:
>>>   Apply all migrations: django_sb_admin
>>> Running migrations:
>>>   Applying django_sb_admin.0001_initial... OK
>>>
>>>
>>> =
>>> *root@kali:~/PycharmProjects/django/azim_projs# python3 manage.py
>>> migrate*
>>> Operations to perform:
>>>   Apply all migrations: admin, auth, contenttypes, django_sb_admin,
>>> sessions
>>> Running migrations:
>>>   Applying contenttypes.0001_initial... OK
>>>   Applying auth.0001_initial... OK
>>>   Applying admin.0001_initial... OK
>>>   Applying admin.0002_logentry_remove_auto_add... OK
>>>   Applying contenttypes.0002_remove_content_type_name... OK
>>>   Applying auth.0002_alter_permission_name_max_length... OK
>>>   Applying auth.0003_alter_user_email_max_length... OK
>>>   Applying auth.0004_alter_user_username_opts... OK
>>>   Applying auth.0005_alter_user_last_login_null... OK
>>>   Applying auth.0006_require_contenttypes_0002... OK
>>>   Applying auth.0007_alter_validators_add_error_messages... OK
>>>   Applying auth.0008_alter_user_username_max_length... OK
>>>   Applying auth.0009_alter_user_last_name_max_length... OK
>>>   Applying sessions.0001_initial... OK
>>>
>>>
>>> =
>>> *root@kali:~/PycharmProjects/django/azim_projs# python3 manage.py
>>> sqlmigrate django_sb_admin 0001*
>>> BEGIN;
>>> --
>>> -- Create model Appp
>>> --
>>> --
>>> -- Create model ApTT
>>> --
>>> --
>>> -- Create model CCnn
>>> --
>>> --
>>> -- Create model CCtt
>>> --
>>> --
>>> -- Create model Lact
>>> --
>>> -- Create model Lapt
>>> --
>>> --
>>> -- Create model Laccte
>>> --
>>> --
>>> -- Create model Urmng
>>> --
>>> COMMIT;
>>>
>>>
>>> 

Re: I can't see my models in MySQL db

2018-07-15 Thread A. Azimzadeh
Any help !?


On Sat, Jul 14, 2018, 15:23 ali reza  wrote:

> Hi all,
>
> I attached my Django project as a ZIP file.
> please help me to find and fix the root cause of issue.
> Link:
> https://ufile.io/ycmut
>
> Thanks in advance
>
> On Wednesday, 4 July 2018 17:50:49 UTC+4:30, ali reza wrote:
>>
>> Greetings!
>>
>> *Note:*
>> mysite is the name of project.
>> django_sb_admin and polls are my apps.
>> python version: 3.6.6
>>
>> I used *inspectdb* for creating *models.py* for *django_sb_admin*
>> application.
>> *pyhton3 manage.py inspectdb > models.py*
>> # Here inspectdb worked fine.
>> then is moved models.py into django_sb_admin app.
>>
>>
>>
>> *root@kali:~/PycharmProjects/django/azim_projs# ls*
>> db.sqlite3  django_sb_admin  manage.py   mysite  polls
>>
>>
>> =
>> *root@kali:~/PycharmProjects/django/azim_projs# cat
>> django_sb_admin/apps.py *
>> from django.apps import AppConfig
>>
>> class DjangoSbAdminConfig(AppConfig):
>> name = 'django_sb_admin'
>>
>>
>> =
>> *root@kali:~/PycharmProjects/django/azim_projs# cat mysite/settings.py *
>> <...skipped.>
>> <...skipped.>
>> <...skipped.>
>>
>> INSTALLED_APPS = [
>> 'django_sb_admin.apps.DjangoSbAdminConfig',
>> 'polls',
>> 'django.contrib.admin',
>> 'django.contrib.auth',
>> 'django.contrib.contenttypes',
>> 'django.contrib.sessions',
>> 'django.contrib.messages',
>> 'django.contrib.staticfiles',
>> ]
>>
>> <...skipped.>
>> <...skipped.>
>> <...skipped.>
>>
>> DATABASES = {
>> 'default': {
>> 'ENGINE': 'django.db.backends.mysql',
>> 'OPTIONS': {
>> 'read_default_file':
>> '/root/PycharmProjects/django/azim_projs/mysite/mySQL.conf',
>> },
>>   }
>> }
>>
>>
>> =
>> *root@kali:~/PycharmProjects/django/azim_projs# cat mysite/mySQL.conf *
>> [client]
>> database = djangoDB
>> host = 127.0.0.1
>> user = root
>> password = "456789"
>>
>>
>> =
>>
>> =
>>
>> =
>>
>> =
>> *root@kali:~/PycharmProjects/django/azim_projs# python3 manage.py
>> makemigrations django_sb_admin*
>> No changes detected in app 'django_sb_admin'
>>
>>
>> =
>> *root@kali:~/PycharmProjects/django/azim_projs# python3 manage.py migrate
>> django_sb_admin*
>> Operations to perform:
>>   Apply all migrations: django_sb_admin
>> Running migrations:
>>   Applying django_sb_admin.0001_initial... OK
>>
>>
>> =
>> *root@kali:~/PycharmProjects/django/azim_projs# python3 manage.py migrate*
>> Operations to perform:
>>   Apply all migrations: admin, auth, contenttypes, django_sb_admin,
>> sessions
>> Running migrations:
>>   Applying contenttypes.0001_initial... OK
>>   Applying auth.0001_initial... OK
>>   Applying admin.0001_initial... OK
>>   Applying admin.0002_logentry_remove_auto_add... OK
>>   Applying contenttypes.0002_remove_content_type_name... OK
>>   Applying auth.0002_alter_permission_name_max_length... OK
>>   Applying auth.0003_alter_user_email_max_length... OK
>>   Applying auth.0004_alter_user_username_opts... OK
>>   Applying auth.0005_alter_user_last_login_null... OK
>>   Applying auth.0006_require_contenttypes_0002... OK
>>   Applying auth.0007_alter_validators_add_error_messages... OK
>>   Applying auth.0008_alter_user_username_max_length... OK
>>   Applying auth.0009_alter_user_last_name_max_length... OK
>>   Applying sessions.0001_initial... OK
>>
>>
>> =
>> *root@kali:~/PycharmProjects/django/azim_projs# python3 manage.py
>> sqlmigrate django_sb_admin 0001*
>> BEGIN;
>> --
>> -- Create model Appp
>> --
>> --
>> -- Create model ApTT
>> --
>> --
>> -- Create model CCnn
>> --
>> --
>> -- Create model CCtt
>> --
>> --
>> -- Create model Lact
>> --
>> -- Create model Lapt
>> --
>> --
>> -- Create model Laccte
>> --
>> --
>> -- Create model Urmng
>> --
>> COMMIT;
>>
>>
>> =
>> *Note:* see attached picture, I haven't my models as tables in *djangoDB*
>> database.
>>
>> What's the problem !?
>> Why I haven't tables in DB !??!
>>
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Django users" 

Re: I can't see my models in MySQL db

2018-07-14 Thread ali reza
Hi all,

I attached my Django project as a ZIP file. 
please help me to find and fix the root cause of issue.
Link:
https://ufile.io/ycmut

Thanks in advance

On Wednesday, 4 July 2018 17:50:49 UTC+4:30, ali reza wrote:
>
> Greetings!
>
> *Note:*
> mysite is the name of project.
> django_sb_admin and polls are my apps.
> python version: 3.6.6
>
> I used *inspectdb* for creating *models.py* for *django_sb_admin* 
> application.
> *pyhton3 manage.py inspectdb > models.py*
> # Here inspectdb worked fine.
> then is moved models.py into django_sb_admin app.
>
>
>
> *root@kali:~/PycharmProjects/django/azim_projs# ls*
> db.sqlite3  django_sb_admin  manage.py   mysite  polls
>
>
> =
> *root@kali:~/PycharmProjects/django/azim_projs# cat 
> django_sb_admin/apps.py *
> from django.apps import AppConfig
>
> class DjangoSbAdminConfig(AppConfig):
> name = 'django_sb_admin'
>
>
> =
> *root@kali:~/PycharmProjects/django/azim_projs# cat mysite/settings.py *
> <...skipped.>
> <...skipped.>
> <...skipped.>
>
> INSTALLED_APPS = [
> 'django_sb_admin.apps.DjangoSbAdminConfig',
> 'polls',
> 'django.contrib.admin',
> 'django.contrib.auth',
> 'django.contrib.contenttypes',
> 'django.contrib.sessions',
> 'django.contrib.messages',
> 'django.contrib.staticfiles',
> ]
>
> <...skipped.>
> <...skipped.>
> <...skipped.>
>
> DATABASES = {
> 'default': {
> 'ENGINE': 'django.db.backends.mysql',
> 'OPTIONS': {
> 'read_default_file': 
> '/root/PycharmProjects/django/azim_projs/mysite/mySQL.conf',
> },
>   }
> }
>
>
> =
> *root@kali:~/PycharmProjects/django/azim_projs# cat mysite/mySQL.conf *
> [client]
> database = djangoDB
> host = 127.0.0.1
> user = root
> password = "456789"
>
>
> =
>
> =
>
> =
>
> =
> *root@kali:~/PycharmProjects/django/azim_projs# python3 manage.py 
> makemigrations django_sb_admin*
> No changes detected in app 'django_sb_admin'
>
>
> =
> *root@kali:~/PycharmProjects/django/azim_projs# python3 manage.py migrate 
> django_sb_admin*
> Operations to perform:
>   Apply all migrations: django_sb_admin
> Running migrations:
>   Applying django_sb_admin.0001_initial... OK
>
>
> =
> *root@kali:~/PycharmProjects/django/azim_projs# python3 manage.py migrate*
> Operations to perform:
>   Apply all migrations: admin, auth, contenttypes, django_sb_admin, 
> sessions
> Running migrations:
>   Applying contenttypes.0001_initial... OK
>   Applying auth.0001_initial... OK
>   Applying admin.0001_initial... OK
>   Applying admin.0002_logentry_remove_auto_add... OK
>   Applying contenttypes.0002_remove_content_type_name... OK
>   Applying auth.0002_alter_permission_name_max_length... OK
>   Applying auth.0003_alter_user_email_max_length... OK
>   Applying auth.0004_alter_user_username_opts... OK
>   Applying auth.0005_alter_user_last_login_null... OK
>   Applying auth.0006_require_contenttypes_0002... OK
>   Applying auth.0007_alter_validators_add_error_messages... OK
>   Applying auth.0008_alter_user_username_max_length... OK
>   Applying auth.0009_alter_user_last_name_max_length... OK
>   Applying sessions.0001_initial... OK
>
>
> =
> *root@kali:~/PycharmProjects/django/azim_projs# python3 manage.py 
> sqlmigrate django_sb_admin 0001*
> BEGIN;
> --
> -- Create model Appp
> --
> --
> -- Create model ApTT
> --
> --
> -- Create model CCnn
> --
> --
> -- Create model CCtt
> --
> --
> -- Create model Lact
> --
> -- Create model Lapt
> --
> --
> -- Create model Laccte
> --
> --
> -- Create model Urmng
> --
> COMMIT;
>
>
> =
> *Note:* see attached picture, I haven't my models as tables in *djangoDB* 
> database.
>
> What's the problem !?
> Why I haven't tables in DB !??!
>
>
>

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

Re: I can't see my models in MySQL db

2018-07-06 Thread Phako Perez
Hi Azimzadeh,

I’m also new in Django but I notice you referred to app as django-sb-admin and 
you added in settings as django_sb_admin

Just want to point the mismatch in name, your app is with ‘-‘ whereas installed 
apps has ‘_’, issue could be this mismatch? As python itself is key sensitive 

Regards

Sent from my iPhone

> On Jul 5, 2018, at 9:55 PM, A. Azimzadeh  wrote:
> 
> Hi Julio,
> Thanks for reply to my question.
> 
> I created models for django-sb-admin (As default, models.py of djangosbadmin 
> is empty + there isn't the name of app in INSTALLED APPS +).
> 
> 
> are you sure the INSTALLED_APPS shouldn't be simply 'django_sb_admin' instead 
> of 'django_sb_admin.apps.DjangoSbAdminConfig'?.
> 
> Yes, because I'm following tutorials-section of django 2.0 (models 
> tutorial/section(activating models)):
> 
> https://docs.djangoproject.com/en/2.0/intro/tutorial02/
> 
> How to find the root cause of problem :(??!! 
> 
> Tnx in advance
> 
>> On Thu, Jul 5, 2018, 23:53 Julio Biason  wrote:
>> Hi Azimzadeh,
>> 
>> Just wondering, is django_db_admin this one 
>> https://github.com/bluszcz/django-sb-admin ? 'Cause that app doesn't have 
>> any models (it's empty 
>> https://github.com/bluszcz/django-sb-admin/blob/master/django_sb_admin/models.py),
>>  so it shouldn't create any tables.
>> 
>> Also, are you sure the INSTALLED_APPS shouldn't be simply 'django_sb_admin' 
>> instead of 'django_sb_admin.apps.DjangoSbAdminConfig'? Remember, you should 
>> point to APPS, not to CLASSES...
>> 
>>> On Thu, Jul 5, 2018 at 4:13 PM, A. Azimzadeh  
>>> wrote:
>>> Hi again,
>>> 
>>> Any help !??
>>> Please help me to find and fix the root cause of problem.
>>> 
>>> Thanks
>>> 
 On Wed, Jul 4, 2018, 22:57 A. Azimzadeh  wrote:
 Polls app is empty.
 
 The problem is in django_sb_admin
 
 How i can find the root cause of problem and fix that?
 
> On Wed, Jul 4, 2018, 18:26 Jason  wrote:
> You told it to make migration for the app django_sb_admin, but that 
> apparently doesn't include polls.
> 
> try making another migration without the app name qualifier and running 
> it.  
> 
>> On Wednesday, July 4, 2018 at 9:20:49 AM UTC-4, ali reza wrote:
>> Greetings!
>> 
>> Note:
>> mysite is the name of project.
>> django_sb_admin and polls are my apps.
>> python version: 3.6.6
>> 
>> I used inspectdb for creating models.py for django_sb_admin application.
>> pyhton3 manage.py inspectdb > models.py
>> # Here inspectdb worked fine.
>> then is moved models.py into django_sb_admin app.
>> 
>> 
>> 
>> root@kali:~/PycharmProjects/django/azim_projs# ls
>> db.sqlite3  django_sb_admin  manage.py   mysite  polls
>> 
>> =
>> root@kali:~/PycharmProjects/django/azim_projs# cat 
>> django_sb_admin/apps.py 
>> from django.apps import AppConfig
>> 
>> class DjangoSbAdminConfig(AppConfig):
>> name = 'django_sb_admin'
>> 
>> =
>> root@kali:~/PycharmProjects/django/azim_projs# cat mysite/settings.py 
>> <...skipped.>
>> <...skipped.>
>> <...skipped.>
>> 
>> INSTALLED_APPS = [
>> 'django_sb_admin.apps.DjangoSbAdminConfig',
>> 'polls',
>> 'django.contrib.admin',
>> 'django.contrib.auth',
>> 'django.contrib.contenttypes',
>> 'django.contrib.sessions',
>> 'django.contrib.messages',
>> 'django.contrib.staticfiles',
>> ]
>> 
>> <...skipped.>
>> <...skipped.>
>> <...skipped.>
>> 
>> DATABASES = {
>> 'default': {
>> 'ENGINE': 'django.db.backends.mysql',
>> 'OPTIONS': {
>> 'read_default_file': 
>> '/root/PycharmProjects/django/azim_projs/mysite/mySQL.conf',
>> },
>>   }
>> }
>> 
>> =
>> root@kali:~/PycharmProjects/django/azim_projs# cat mysite/mySQL.conf 
>> [client]
>> database = djangoDB
>> host = 127.0.0.1
>> user = root
>> password = "456789"
>> 
>> =
>> =
>> =
>> =
>> root@kali:~/PycharmProjects/django/azim_projs# python3 manage.py 
>> makemigrations django_sb_admin
>> No changes detected in app 'django_sb_admin'
>> 
>> 

Re: I can't see my models in MySQL db

2018-07-05 Thread A. Azimzadeh
Hi Julio,
Thanks for reply to my question.

I created models for django-sb-admin (As default, models.py of
djangosbadmin is empty + there isn't the name of app in INSTALLED APPS
+).


*are you sure the INSTALLED_APPS shouldn't be simply 'django_sb_admin'
instead of 'django_sb_admin.apps.DjangoSbAdminConfig'?.*

Yes, because I'm following tutorials-section of django 2.0 (models
tutorial/section(activating models)):

https://docs.djangoproject.com/en/2.0/intro/tutorial02/

How to find the root cause of problem :(??!!

Tnx in advance

On Thu, Jul 5, 2018, 23:53 Julio Biason  wrote:

> Hi Azimzadeh,
>
> Just wondering, is django_db_admin this one
> https://github.com/bluszcz/django-sb-admin ? 'Cause that app doesn't have
> any models (it's empty
> https://github.com/bluszcz/django-sb-admin/blob/master/django_sb_admin/models.py),
> so it shouldn't create any tables.
>
> Also, are you sure the INSTALLED_APPS shouldn't be simply
> 'django_sb_admin' instead of 'django_sb_admin.apps.DjangoSbAdminConfig'?
> Remember, you should point to APPS, not to CLASSES...
>
> On Thu, Jul 5, 2018 at 4:13 PM, A. Azimzadeh 
> wrote:
>
>> Hi again,
>>
>> Any help !??
>> Please help me to find and fix the root cause of problem.
>>
>> Thanks
>>
>> On Wed, Jul 4, 2018, 22:57 A. Azimzadeh 
>> wrote:
>>
>>> Polls app is empty.
>>>
>>> The problem is in django_sb_admin
>>>
>>> How i can find the root cause of problem and fix that?
>>>
>>> On Wed, Jul 4, 2018, 18:26 Jason  wrote:
>>>
 You told it to make migration for the app django_sb_admin, but that
 apparently doesn't include polls.

 try making another migration without the app name qualifier and running
 it.

 On Wednesday, July 4, 2018 at 9:20:49 AM UTC-4, ali reza wrote:
>
> Greetings!
>
> *Note:*
> mysite is the name of project.
> django_sb_admin and polls are my apps.
> python version: 3.6.6
>
> I used *inspectdb* for creating *models.py* for *django_sb_admin*
> application.
> *pyhton3 manage.py inspectdb > models.py*
> # Here inspectdb worked fine.
> then is moved models.py into django_sb_admin app.
>
>
>
> *root@kali:~/PycharmProjects/django/azim_projs# ls*
> db.sqlite3  django_sb_admin  manage.py   mysite  polls
>
>
> =
> *root@kali:~/PycharmProjects/django/azim_projs# cat
> django_sb_admin/apps.py *
> from django.apps import AppConfig
>
> class DjangoSbAdminConfig(AppConfig):
> name = 'django_sb_admin'
>
>
> =
> *root@kali:~/PycharmProjects/django/azim_projs# cat mysite/settings.py
> *
> <...skipped.>
> <...skipped.>
> <...skipped.>
>
> INSTALLED_APPS = [
> 'django_sb_admin.apps.DjangoSbAdminConfig',
> 'polls',
> 'django.contrib.admin',
> 'django.contrib.auth',
> 'django.contrib.contenttypes',
> 'django.contrib.sessions',
> 'django.contrib.messages',
> 'django.contrib.staticfiles',
> ]
>
> <...skipped.>
> <...skipped.>
> <...skipped.>
>
> DATABASES = {
> 'default': {
> 'ENGINE': 'django.db.backends.mysql',
> 'OPTIONS': {
> 'read_default_file':
> '/root/PycharmProjects/django/azim_projs/mysite/mySQL.conf',
> },
>   }
> }
>
>
> =
> *root@kali:~/PycharmProjects/django/azim_projs# cat mysite/mySQL.conf *
> [client]
> database = djangoDB
> host = 127.0.0.1
> user = root
> password = "456789"
>
>
> =
>
> =
>
> =
>
> =
> *root@kali:~/PycharmProjects/django/azim_projs# python3 manage.py
> makemigrations django_sb_admin*
> No changes detected in app 'django_sb_admin'
>
>
> =
> *root@kali:~/PycharmProjects/django/azim_projs# python3 manage.py
> migrate django_sb_admin*
> Operations to perform:
>   Apply all migrations: django_sb_admin
> Running migrations:
>   Applying django_sb_admin.0001_initial... OK
>
>
> =
> *root@kali:~/PycharmProjects/django/azim_projs# python3 manage.py
> migrate*
> 

Re: I can't see my models in MySQL db

2018-07-05 Thread Julio Biason
Hi Azimzadeh,

Just wondering, is django_db_admin this one
https://github.com/bluszcz/django-sb-admin ? 'Cause that app doesn't have
any models (it's empty
https://github.com/bluszcz/django-sb-admin/blob/master/django_sb_admin/models.py),
so it shouldn't create any tables.

Also, are you sure the INSTALLED_APPS shouldn't be simply 'django_sb_admin'
instead of 'django_sb_admin.apps.DjangoSbAdminConfig'? Remember, you should
point to APPS, not to CLASSES...

On Thu, Jul 5, 2018 at 4:13 PM, A. Azimzadeh 
wrote:

> Hi again,
>
> Any help !??
> Please help me to find and fix the root cause of problem.
>
> Thanks
>
> On Wed, Jul 4, 2018, 22:57 A. Azimzadeh  wrote:
>
>> Polls app is empty.
>>
>> The problem is in django_sb_admin
>>
>> How i can find the root cause of problem and fix that?
>>
>> On Wed, Jul 4, 2018, 18:26 Jason  wrote:
>>
>>> You told it to make migration for the app django_sb_admin, but that
>>> apparently doesn't include polls.
>>>
>>> try making another migration without the app name qualifier and running
>>> it.
>>>
>>> On Wednesday, July 4, 2018 at 9:20:49 AM UTC-4, ali reza wrote:

 Greetings!

 *Note:*
 mysite is the name of project.
 django_sb_admin and polls are my apps.
 python version: 3.6.6

 I used *inspectdb* for creating *models.py* for *django_sb_admin*
 application.
 *pyhton3 manage.py inspectdb > models.py*
 # Here inspectdb worked fine.
 then is moved models.py into django_sb_admin app.



 *root@kali:~/PycharmProjects/django/azim_projs# ls*
 db.sqlite3  django_sb_admin  manage.py   mysite  polls

 
 =
 *root@kali:~/PycharmProjects/django/azim_projs# cat
 django_sb_admin/apps.py *
 from django.apps import AppConfig

 class DjangoSbAdminConfig(AppConfig):
 name = 'django_sb_admin'

 
 =
 *root@kali:~/PycharmProjects/django/azim_projs# cat mysite/settings.py *
 <...skipped.>
 <...skipped.>
 <...skipped.>

 INSTALLED_APPS = [
 'django_sb_admin.apps.DjangoSbAdminConfig',
 'polls',
 'django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 ]

 <...skipped.>
 <...skipped.>
 <...skipped.>

 DATABASES = {
 'default': {
 'ENGINE': 'django.db.backends.mysql',
 'OPTIONS': {
 'read_default_file': '/root/PycharmProjects/django/
 azim_projs/mysite/mySQL.conf',
 },
   }
 }

 
 =
 *root@kali:~/PycharmProjects/django/azim_projs# cat mysite/mySQL.conf *
 [client]
 database = djangoDB
 host = 127.0.0.1
 user = root
 password = "456789"

 
 =
 
 =
 
 =
 
 =
 *root@kali:~/PycharmProjects/django/azim_projs# python3 manage.py
 makemigrations django_sb_admin*
 No changes detected in app 'django_sb_admin'

 
 =
 *root@kali:~/PycharmProjects/django/azim_projs# python3 manage.py
 migrate django_sb_admin*
 Operations to perform:
   Apply all migrations: django_sb_admin
 Running migrations:
   Applying django_sb_admin.0001_initial... OK

 
 =
 *root@kali:~/PycharmProjects/django/azim_projs# python3 manage.py
 migrate*
 Operations to perform:
   Apply all migrations: admin, auth, contenttypes, django_sb_admin,
 sessions
 Running migrations:
   Applying contenttypes.0001_initial... OK
   Applying auth.0001_initial... OK
   Applying admin.0001_initial... OK
   Applying admin.0002_logentry_remove_auto_add... OK
   Applying contenttypes.0002_remove_content_type_name... OK
   Applying auth.0002_alter_permission_name_max_length... OK
   Applying auth.0003_alter_user_email_max_length... OK
   Applying auth.0004_alter_user_username_opts... OK
   Applying auth.0005_alter_user_last_login_null... OK
   Applying auth.0006_require_contenttypes_0002... OK
   Applying 

Re: I can't see my models in MySQL db

2018-07-05 Thread A. Azimzadeh
Hi again,

Any help !??
Please help me to find and fix the root cause of problem.

Thanks

On Wed, Jul 4, 2018, 22:57 A. Azimzadeh  wrote:

> Polls app is empty.
>
> The problem is in django_sb_admin
>
> How i can find the root cause of problem and fix that?
>
> On Wed, Jul 4, 2018, 18:26 Jason  wrote:
>
>> You told it to make migration for the app django_sb_admin, but that
>> apparently doesn't include polls.
>>
>> try making another migration without the app name qualifier and running
>> it.
>>
>> On Wednesday, July 4, 2018 at 9:20:49 AM UTC-4, ali reza wrote:
>>>
>>> Greetings!
>>>
>>> *Note:*
>>> mysite is the name of project.
>>> django_sb_admin and polls are my apps.
>>> python version: 3.6.6
>>>
>>> I used *inspectdb* for creating *models.py* for *django_sb_admin*
>>> application.
>>> *pyhton3 manage.py inspectdb > models.py*
>>> # Here inspectdb worked fine.
>>> then is moved models.py into django_sb_admin app.
>>>
>>>
>>>
>>> *root@kali:~/PycharmProjects/django/azim_projs# ls*
>>> db.sqlite3  django_sb_admin  manage.py   mysite  polls
>>>
>>>
>>> =
>>> *root@kali:~/PycharmProjects/django/azim_projs# cat
>>> django_sb_admin/apps.py *
>>> from django.apps import AppConfig
>>>
>>> class DjangoSbAdminConfig(AppConfig):
>>> name = 'django_sb_admin'
>>>
>>>
>>> =
>>> *root@kali:~/PycharmProjects/django/azim_projs# cat mysite/settings.py *
>>> <...skipped.>
>>> <...skipped.>
>>> <...skipped.>
>>>
>>> INSTALLED_APPS = [
>>> 'django_sb_admin.apps.DjangoSbAdminConfig',
>>> 'polls',
>>> 'django.contrib.admin',
>>> 'django.contrib.auth',
>>> 'django.contrib.contenttypes',
>>> 'django.contrib.sessions',
>>> 'django.contrib.messages',
>>> 'django.contrib.staticfiles',
>>> ]
>>>
>>> <...skipped.>
>>> <...skipped.>
>>> <...skipped.>
>>>
>>> DATABASES = {
>>> 'default': {
>>> 'ENGINE': 'django.db.backends.mysql',
>>> 'OPTIONS': {
>>> 'read_default_file':
>>> '/root/PycharmProjects/django/azim_projs/mysite/mySQL.conf',
>>> },
>>>   }
>>> }
>>>
>>>
>>> =
>>> *root@kali:~/PycharmProjects/django/azim_projs# cat mysite/mySQL.conf *
>>> [client]
>>> database = djangoDB
>>> host = 127.0.0.1
>>> user = root
>>> password = "456789"
>>>
>>>
>>> =
>>>
>>> =
>>>
>>> =
>>>
>>> =
>>> *root@kali:~/PycharmProjects/django/azim_projs# python3 manage.py
>>> makemigrations django_sb_admin*
>>> No changes detected in app 'django_sb_admin'
>>>
>>>
>>> =
>>> *root@kali:~/PycharmProjects/django/azim_projs# python3 manage.py
>>> migrate django_sb_admin*
>>> Operations to perform:
>>>   Apply all migrations: django_sb_admin
>>> Running migrations:
>>>   Applying django_sb_admin.0001_initial... OK
>>>
>>>
>>> =
>>> *root@kali:~/PycharmProjects/django/azim_projs# python3 manage.py
>>> migrate*
>>> Operations to perform:
>>>   Apply all migrations: admin, auth, contenttypes, django_sb_admin,
>>> sessions
>>> Running migrations:
>>>   Applying contenttypes.0001_initial... OK
>>>   Applying auth.0001_initial... OK
>>>   Applying admin.0001_initial... OK
>>>   Applying admin.0002_logentry_remove_auto_add... OK
>>>   Applying contenttypes.0002_remove_content_type_name... OK
>>>   Applying auth.0002_alter_permission_name_max_length... OK
>>>   Applying auth.0003_alter_user_email_max_length... OK
>>>   Applying auth.0004_alter_user_username_opts... OK
>>>   Applying auth.0005_alter_user_last_login_null... OK
>>>   Applying auth.0006_require_contenttypes_0002... OK
>>>   Applying auth.0007_alter_validators_add_error_messages... OK
>>>   Applying auth.0008_alter_user_username_max_length... OK
>>>   Applying auth.0009_alter_user_last_name_max_length... OK
>>>   Applying sessions.0001_initial... OK
>>>
>>>
>>> =
>>> *root@kali:~/PycharmProjects/django/azim_projs# python3 manage.py
>>> sqlmigrate django_sb_admin 0001*
>>> BEGIN;
>>> --
>>> -- Create model Appp
>>> --
>>> --
>>> -- Create model ApTT
>>> --
>>> --
>>> -- Create model CCnn
>>> --
>>> --
>>> -- Create model CCtt
>>> --
>>> --
>>> -- Create model Lact
>>> --
>>> -- Create model Lapt
>>> --
>>> --
>>> -- Create model 

Re: I can't see my models in MySQL db

2018-07-04 Thread A. Azimzadeh
Polls app is empty.

The problem is in django_sb_admin

How i can find the root cause of problem and fix that?

On Wed, Jul 4, 2018, 18:26 Jason  wrote:

> You told it to make migration for the app django_sb_admin, but that
> apparently doesn't include polls.
>
> try making another migration without the app name qualifier and running
> it.
>
> On Wednesday, July 4, 2018 at 9:20:49 AM UTC-4, ali reza wrote:
>>
>> Greetings!
>>
>> *Note:*
>> mysite is the name of project.
>> django_sb_admin and polls are my apps.
>> python version: 3.6.6
>>
>> I used *inspectdb* for creating *models.py* for *django_sb_admin*
>> application.
>> *pyhton3 manage.py inspectdb > models.py*
>> # Here inspectdb worked fine.
>> then is moved models.py into django_sb_admin app.
>>
>>
>>
>> *root@kali:~/PycharmProjects/django/azim_projs# ls*
>> db.sqlite3  django_sb_admin  manage.py   mysite  polls
>>
>>
>> =
>> *root@kali:~/PycharmProjects/django/azim_projs# cat
>> django_sb_admin/apps.py *
>> from django.apps import AppConfig
>>
>> class DjangoSbAdminConfig(AppConfig):
>> name = 'django_sb_admin'
>>
>>
>> =
>> *root@kali:~/PycharmProjects/django/azim_projs# cat mysite/settings.py *
>> <...skipped.>
>> <...skipped.>
>> <...skipped.>
>>
>> INSTALLED_APPS = [
>> 'django_sb_admin.apps.DjangoSbAdminConfig',
>> 'polls',
>> 'django.contrib.admin',
>> 'django.contrib.auth',
>> 'django.contrib.contenttypes',
>> 'django.contrib.sessions',
>> 'django.contrib.messages',
>> 'django.contrib.staticfiles',
>> ]
>>
>> <...skipped.>
>> <...skipped.>
>> <...skipped.>
>>
>> DATABASES = {
>> 'default': {
>> 'ENGINE': 'django.db.backends.mysql',
>> 'OPTIONS': {
>> 'read_default_file':
>> '/root/PycharmProjects/django/azim_projs/mysite/mySQL.conf',
>> },
>>   }
>> }
>>
>>
>> =
>> *root@kali:~/PycharmProjects/django/azim_projs# cat mysite/mySQL.conf *
>> [client]
>> database = djangoDB
>> host = 127.0.0.1
>> user = root
>> password = "456789"
>>
>>
>> =
>>
>> =
>>
>> =
>>
>> =
>> *root@kali:~/PycharmProjects/django/azim_projs# python3 manage.py
>> makemigrations django_sb_admin*
>> No changes detected in app 'django_sb_admin'
>>
>>
>> =
>> *root@kali:~/PycharmProjects/django/azim_projs# python3 manage.py migrate
>> django_sb_admin*
>> Operations to perform:
>>   Apply all migrations: django_sb_admin
>> Running migrations:
>>   Applying django_sb_admin.0001_initial... OK
>>
>>
>> =
>> *root@kali:~/PycharmProjects/django/azim_projs# python3 manage.py migrate*
>> Operations to perform:
>>   Apply all migrations: admin, auth, contenttypes, django_sb_admin,
>> sessions
>> Running migrations:
>>   Applying contenttypes.0001_initial... OK
>>   Applying auth.0001_initial... OK
>>   Applying admin.0001_initial... OK
>>   Applying admin.0002_logentry_remove_auto_add... OK
>>   Applying contenttypes.0002_remove_content_type_name... OK
>>   Applying auth.0002_alter_permission_name_max_length... OK
>>   Applying auth.0003_alter_user_email_max_length... OK
>>   Applying auth.0004_alter_user_username_opts... OK
>>   Applying auth.0005_alter_user_last_login_null... OK
>>   Applying auth.0006_require_contenttypes_0002... OK
>>   Applying auth.0007_alter_validators_add_error_messages... OK
>>   Applying auth.0008_alter_user_username_max_length... OK
>>   Applying auth.0009_alter_user_last_name_max_length... OK
>>   Applying sessions.0001_initial... OK
>>
>>
>> =
>> *root@kali:~/PycharmProjects/django/azim_projs# python3 manage.py
>> sqlmigrate django_sb_admin 0001*
>> BEGIN;
>> --
>> -- Create model Appp
>> --
>> --
>> -- Create model ApTT
>> --
>> --
>> -- Create model CCnn
>> --
>> --
>> -- Create model CCtt
>> --
>> --
>> -- Create model Lact
>> --
>> -- Create model Lapt
>> --
>> --
>> -- Create model Laccte
>> --
>> --
>> -- Create model Urmng
>> --
>> COMMIT;
>>
>>
>> =
>> *Note:* see attached picture, I haven't my models as tables in *djangoDB*
>> database.
>>
>> What's the problem !?
>> Why I haven't tables in DB 

Re: I can't see my models in MySQL db

2018-07-04 Thread Jason
You told it to make migration for the app django_sb_admin, but that 
apparently doesn't include polls.

try making another migration without the app name qualifier and running 
it.  

On Wednesday, July 4, 2018 at 9:20:49 AM UTC-4, ali reza wrote:
>
> Greetings!
>
> *Note:*
> mysite is the name of project.
> django_sb_admin and polls are my apps.
> python version: 3.6.6
>
> I used *inspectdb* for creating *models.py* for *django_sb_admin* 
> application.
> *pyhton3 manage.py inspectdb > models.py*
> # Here inspectdb worked fine.
> then is moved models.py into django_sb_admin app.
>
>
>
> *root@kali:~/PycharmProjects/django/azim_projs# ls*
> db.sqlite3  django_sb_admin  manage.py   mysite  polls
>
>
> =
> *root@kali:~/PycharmProjects/django/azim_projs# cat 
> django_sb_admin/apps.py *
> from django.apps import AppConfig
>
> class DjangoSbAdminConfig(AppConfig):
> name = 'django_sb_admin'
>
>
> =
> *root@kali:~/PycharmProjects/django/azim_projs# cat mysite/settings.py *
> <...skipped.>
> <...skipped.>
> <...skipped.>
>
> INSTALLED_APPS = [
> 'django_sb_admin.apps.DjangoSbAdminConfig',
> 'polls',
> 'django.contrib.admin',
> 'django.contrib.auth',
> 'django.contrib.contenttypes',
> 'django.contrib.sessions',
> 'django.contrib.messages',
> 'django.contrib.staticfiles',
> ]
>
> <...skipped.>
> <...skipped.>
> <...skipped.>
>
> DATABASES = {
> 'default': {
> 'ENGINE': 'django.db.backends.mysql',
> 'OPTIONS': {
> 'read_default_file': 
> '/root/PycharmProjects/django/azim_projs/mysite/mySQL.conf',
> },
>   }
> }
>
>
> =
> *root@kali:~/PycharmProjects/django/azim_projs# cat mysite/mySQL.conf *
> [client]
> database = djangoDB
> host = 127.0.0.1
> user = root
> password = "456789"
>
>
> =
>
> =
>
> =
>
> =
> *root@kali:~/PycharmProjects/django/azim_projs# python3 manage.py 
> makemigrations django_sb_admin*
> No changes detected in app 'django_sb_admin'
>
>
> =
> *root@kali:~/PycharmProjects/django/azim_projs# python3 manage.py migrate 
> django_sb_admin*
> Operations to perform:
>   Apply all migrations: django_sb_admin
> Running migrations:
>   Applying django_sb_admin.0001_initial... OK
>
>
> =
> *root@kali:~/PycharmProjects/django/azim_projs# python3 manage.py migrate*
> Operations to perform:
>   Apply all migrations: admin, auth, contenttypes, django_sb_admin, 
> sessions
> Running migrations:
>   Applying contenttypes.0001_initial... OK
>   Applying auth.0001_initial... OK
>   Applying admin.0001_initial... OK
>   Applying admin.0002_logentry_remove_auto_add... OK
>   Applying contenttypes.0002_remove_content_type_name... OK
>   Applying auth.0002_alter_permission_name_max_length... OK
>   Applying auth.0003_alter_user_email_max_length... OK
>   Applying auth.0004_alter_user_username_opts... OK
>   Applying auth.0005_alter_user_last_login_null... OK
>   Applying auth.0006_require_contenttypes_0002... OK
>   Applying auth.0007_alter_validators_add_error_messages... OK
>   Applying auth.0008_alter_user_username_max_length... OK
>   Applying auth.0009_alter_user_last_name_max_length... OK
>   Applying sessions.0001_initial... OK
>
>
> =
> *root@kali:~/PycharmProjects/django/azim_projs# python3 manage.py 
> sqlmigrate django_sb_admin 0001*
> BEGIN;
> --
> -- Create model Appp
> --
> --
> -- Create model ApTT
> --
> --
> -- Create model CCnn
> --
> --
> -- Create model CCtt
> --
> --
> -- Create model Lact
> --
> -- Create model Lapt
> --
> --
> -- Create model Laccte
> --
> --
> -- Create model Urmng
> --
> COMMIT;
>
>
> =
> *Note:* see attached picture, I haven't my models as tables in *djangoDB* 
> database.
>
> What's the problem !?
> Why I haven't tables in DB !??!
>
>
>

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

I can't see my models in MySQL db

2018-07-04 Thread ali reza
Greetings!

*Note:*
mysite is the name of project.
django_sb_admin and polls are my apps.
python version: 3.6.6

I used *inspectdb* for creating *models.py* for *django_sb_admin* 
application.
*pyhton3 manage.py inspectdb > models.py*
# Here inspectdb worked fine.
then is moved models.py into django_sb_admin app.



*root@kali:~/PycharmProjects/django/azim_projs# ls*
db.sqlite3  django_sb_admin  manage.py   mysite  polls

=
*root@kali:~/PycharmProjects/django/azim_projs# cat django_sb_admin/apps.py 
*
from django.apps import AppConfig

class DjangoSbAdminConfig(AppConfig):
name = 'django_sb_admin'

=
*root@kali:~/PycharmProjects/django/azim_projs# cat mysite/settings.py *
<...skipped.>
<...skipped.>
<...skipped.>

INSTALLED_APPS = [
'django_sb_admin.apps.DjangoSbAdminConfig',
'polls',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
]

<...skipped.>
<...skipped.>
<...skipped.>

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'OPTIONS': {
'read_default_file': 
'/root/PycharmProjects/django/azim_projs/mysite/mySQL.conf',
},
  }
}

=
*root@kali:~/PycharmProjects/django/azim_projs# cat mysite/mySQL.conf *
[client]
database = djangoDB
host = 127.0.0.1
user = root
password = "456789"

=
=
=
=
*root@kali:~/PycharmProjects/django/azim_projs# python3 manage.py 
makemigrations django_sb_admin*
No changes detected in app 'django_sb_admin'

=
*root@kali:~/PycharmProjects/django/azim_projs# python3 manage.py migrate 
django_sb_admin*
Operations to perform:
  Apply all migrations: django_sb_admin
Running migrations:
  Applying django_sb_admin.0001_initial... OK

=
*root@kali:~/PycharmProjects/django/azim_projs# python3 manage.py migrate*
Operations to perform:
  Apply all migrations: admin, auth, contenttypes, django_sb_admin, sessions
Running migrations:
  Applying contenttypes.0001_initial... OK
  Applying auth.0001_initial... OK
  Applying admin.0001_initial... OK
  Applying admin.0002_logentry_remove_auto_add... OK
  Applying contenttypes.0002_remove_content_type_name... OK
  Applying auth.0002_alter_permission_name_max_length... OK
  Applying auth.0003_alter_user_email_max_length... OK
  Applying auth.0004_alter_user_username_opts... OK
  Applying auth.0005_alter_user_last_login_null... OK
  Applying auth.0006_require_contenttypes_0002... OK
  Applying auth.0007_alter_validators_add_error_messages... OK
  Applying auth.0008_alter_user_username_max_length... OK
  Applying auth.0009_alter_user_last_name_max_length... OK
  Applying sessions.0001_initial... OK

=
*root@kali:~/PycharmProjects/django/azim_projs# python3 manage.py 
sqlmigrate django_sb_admin 0001*
BEGIN;
--
-- Create model Appp
--
--
-- Create model ApTT
--
--
-- Create model CCnn
--
--
-- Create model CCtt
--
--
-- Create model Lact
--
-- Create model Lapt
--
--
-- Create model Laccte
--
--
-- Create model Urmng
--
COMMIT;

=
*Note:* see attached picture, I haven't my models as tables in *djangoDB* 
database.

What's the problem !?
Why I haven't tables in DB !??!


-- 
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/a62b11dc-3522-46be-ac62-2cabb706a275%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.