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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0a057b11-ab74-4982-a9ce-a22d6247cefb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to