django 1.9 - application does not

446 views
Skip to first unread message

Shekar Tippur

unread,
Dec 24, 2015, 1:32:11 AM12/24/15
to Django users
Hello,

I have a application on my laptop and I am trying to move it to AWS.
I have installed django 1.9 on aws server under a virtualhost and scp'd all my local files to aws server.

Under the virtualhost, when I try to run the server, I get an error.


$ python3.4 manage.py runserver 0.0.0.0:8000

Traceback (most recent call last):

  File "manage.py", line 10, in <module>

    execute_from_command_line(sys.argv)

  File "/home/ctippur/db/dropboat_virtual/local/lib/python3.4/site-packages/django/core/management/__init__.py", line 350, in execute_from_command_line

    utility.execute()

  File "/home/ctippur/db/dropboat_virtual/local/lib/python3.4/site-packages/django/core/management/__init__.py", line 342, in execute

    self.fetch_command(subcommand).run_from_argv(self.argv)

  File "/home/ctippur/db/dropboat_virtual/local/lib/python3.4/site-packages/django/core/management/__init__.py", line 176, in fetch_command

    commands = get_commands()

  File "/home/ctippur/db/dropboat_virtual/lib64/python3.4/functools.py", line 448, in wrapper

    result = user_function(*args, **kwds)

  File "/home/ctippur/db/dropboat_virtual/local/lib/python3.4/site-packages/django/core/management/__init__.py", line 71, in get_commands

    for app_config in reversed(list(apps.get_app_configs())):

  File "/home/ctippur/db/dropboat_virtual/local/lib/python3.4/site-packages/django/apps/registry.py", line 137, in get_app_configs

    self.check_apps_ready()

  File "/home/ctippur/db/dropboat_virtual/local/lib/python3.4/site-packages/django/apps/registry.py", line 124, in check_apps_ready

    raise AppRegistryNotReady("Apps aren't loaded yet.")

django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.


- Shekar

AJ Abrahamsen

unread,
Dec 24, 2015, 8:57:20 AM12/24/15
to Django users
This person had a similar problem.  Hopefully this can give you some clue to help fix your issue:

Sergiy Khohlov

unread,
Dec 24, 2015, 10:23:03 AM12/24/15
to django-users
I've had a similar problem. And use next way to solve:

1)  Create new  project  at the new directory and  verify  that  Django 1.9 is OK
2) Check  (compare ) setting  related to the TEMPLATE  in  setting.py file
3) Disable installed add modules

At this  step I detected that django-debug-toolbar and  django json  produces  this issue.

Many thanks,

Serge


+380 636150445
skype: skhohlov

On Thu, Dec 24, 2015 at 3:27 PM, AJ Abrahamsen <gracias...@gmail.com> wrote:
This person had a similar problem.  Hopefully this can give you some clue to help fix your issue:

--
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...@googlegroups.com.
To post to this group, send email to django...@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/7d13ff6a-d684-4a7f-950a-da273353b68c%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Tim Graham

unread,
Dec 24, 2015, 12:00:19 PM12/24/15
to Django users
There's a bug in Django 1.9 that hides the actual exception when you use runserver. Try adding runserver --nothreading to see the actual exception. It will be fixed in Django 1.9.1 which will likely be released next week.

Shekar Tippur

unread,
Dec 24, 2015, 12:25:41 PM12/24/15
to Django users
Tim,

I tried with  --nothreading and I get the same error.

$ python3.4 manage.py runserver --nothreading 0.0.0.0:8000

Traceback (most recent call last):

  File "manage.py", line 10, in <module>

    execute_from_command_line(sys.argv)

  File "/home/ctippur/db/db_virtual/local/lib/python3.4/site-packages/django/core/management/__init__.py", line 350, in execute_from_command_line

    utility.execute()

  File "/home/ctippur/db/db_virtual/local/lib/python3.4/site-packages/django/core/management/__init__.py", line 342, in execute

    self.fetch_command(subcommand).run_from_argv(self.argv)

  File "/home/ctippur/db/db_virtual/local/lib/python3.4/site-packages/django/core/management/__init__.py", line 176, in fetch_command

    commands = get_commands()

  File "/home/ctippur/db/db_virtual/lib64/python3.4/functools.py", line 448, in wrapper

    result = user_function(*args, **kwds)

  File "/home/ctippur/db/db_virtual/local/lib/python3.4/site-packages/django/core/management/__init__.py", line 71, in get_commands

    for app_config in reversed(list(apps.get_app_configs())):

  File "/home/ctippur/db/db_virtual/local/lib/python3.4/site-packages/django/apps/registry.py", line 137, in get_app_configs

    self.check_apps_ready()

  File "/home/ctippur/db/db_virtual/local/lib/python3.4/site-packages/django/apps/registry.py", line 124, in check_apps_ready

Shekar Tippur

unread,
Dec 24, 2015, 12:26:43 PM12/24/15
to Django users

$ pip freeze

Django==1.9

django-bootstrap3==6.2.2

django-debug-toolbar==1.4

django-rest-swagger==0.3.4

djangorestframework==3.3.2

djangorestframework-recursive==0.1.1

jsonpickle==0.9.2

PyYAML==3.11

requests==2.9.1

sqlparse==0.1.18


Shekar Tippur

unread,
Dec 24, 2015, 12:36:01 PM12/24/15
to Django users
Just for testing, I downgraded django to 1.8.4

# pip-3.4 install Django==1.8.4

You are using pip version 6.1.1, however version 7.1.2 is available.

You should consider upgrading via the 'pip install --upgrade pip' command.

Collecting Django==1.8.4

  Downloading Django-1.8.4-py2.py3-none-any.whl (6.2MB)

    100% |████████████████████████████████| 6.2MB 89kB/s 

Installing collected packages: Django

  Found existing installation: Django 1.9

    Uninstalling Django-1.9:

      Successfully uninstalled Django-1.9

Successfully installed Django-1.8.4


Now I get ImportError: No module named 'provider'.


- Shekar

Sergiy Khohlov

unread,
Dec 27, 2015, 3:09:43 PM12/27/15
to django-users

Django toolbar does not work with 1.9 please comment it in and restart server

24 груд. 2015 19:36 "Shekar Tippur" <cti...@gmail.com> пише:
--
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...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

Fred Stakem

unread,
Dec 30, 2015, 6:59:30 AM12/30/15
to Django users
I had the same issue and I found it was coming from django-rest. I uncommented the app and it disappeared. Not sure the solution.
Reply all
Reply to author
Forward
0 new messages