Giter Site home page Giter Site logo

Comments (7)

jezdez avatar jezdez commented on June 8, 2024

Which version of Django is that?

master has it https://github.com/django/django/blob/master/django/core/management/commands/runserver.py#L83
1.5.x has it https://github.com/django/django/blob/stable/1.5.x/django/core/management/commands/runserver.py#L83
1.4.x has it https://github.com/django/django/blob/stable/1.4.x/django/core/management/commands/runserver.py#L82
1.3.x has it https://github.com/django/django/blob/stable/1.3.x/django/core/management/commands/runserver.py#L80

Only 1.2.x doesn't have it, but rather uses an adhoc function: https://github.com/django/django/blob/stable/1.2.x/django/core/management/commands/runserver.py#L44

from django-configurations.

bryanveloso avatar bryanveloso commented on June 8, 2024

I'm using 1.5.x. Odd thing is, when I run the function in a shell, it works. :| Not really sure what to do to try and debug this.

from django-configurations.

jezdez avatar jezdez commented on June 8, 2024

What does running ./manage.py validate --version give you?
What does running echo "import django; print django.__file__, django.get_version()" | ./manage.py shell give you?

from django-configurations.

bryanveloso avatar bryanveloso commented on June 8, 2024

Not much I'm afraid:

$ > echo "import django; print django.__file__, django.get_version()" | ./manage.py shell
Traceback (most recent call last):
  File "./manage.py", line 10, in <module>
    from configurations.management import execute_from_command_line
  File "/Users/Bryan/.virtualenvs/hello-base/lib/python2.7/site-packages/configurations/management.py", line 3, in <module>
    importer.install()
  File "/Users/Bryan/.virtualenvs/hello-base/lib/python2.7/site-packages/configurations/importer.py", line 85, in install
    inner_run = runserver_module.Command.inner_run
AttributeError: type object 'Command' has no attribute 'inner_run'
$ > ./manage.py validate --version
Traceback (most recent call last):
  File "./manage.py", line 10, in <module>
    from configurations.management import execute_from_command_line
  File "/Users/Bryan/.virtualenvs/hello-base/lib/python2.7/site-packages/configurations/management.py", line 3, in <module>
    importer.install()
  File "/Users/Bryan/.virtualenvs/hello-base/lib/python2.7/site-packages/configurations/importer.py", line 85, in install
    inner_run = runserver_module.Command.inner_run
AttributeError: type object 'Command' has no attribute 'inner_run'

from django-configurations.

jezdez avatar jezdez commented on June 8, 2024

Okay, what does running python -c 'import django; print django.get_version() in the activated virtualenv say?

from django-configurations.

bryanveloso avatar bryanveloso commented on June 8, 2024
$ > python -c 'import django; print django.get_version()'
1.5.1

from django-configurations.

bryanveloso avatar bryanveloso commented on June 8, 2024

Fixed via IRC, looks like django-devserver was causing a conflict by using an older inner_run method.

from django-configurations.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.