Giter VIP home page Giter VIP logo

Comments (10)

pydanny avatar pydanny commented on August 23, 2024

Thank you reporting this. We'll look into it ASAP.

from django-twoscoops-project.

Doca avatar Doca commented on August 23, 2024

@cohort if you use "manage.py runserver --settings=testapp.settings.local" this will work! Or you have to set the django environment in the local settings file...as far as i know...

from django-twoscoops-project.

rob-balfre avatar rob-balfre commented on August 23, 2024

@Doca that just gives the same error. The only way I've found around it is to revert to having a single settings.py file and using mange,py runserver. I'm on OSX 10.8.2 if that helps.

from django-twoscoops-project.

pydanny avatar pydanny commented on August 23, 2024

The problem is with setting PYTHONPATH to get django-admin.py to work. Describing this in a simple way that people can implement in any operating system is hard then you might realize. I'm all ears for suggestions.

from django-twoscoops-project.

marcoamorales avatar marcoamorales commented on August 23, 2024

Can this be solved by just adding this to your .env?:

export PYTHONPATH=$PYTHONPATH:$PWD

from django-twoscoops-project.

pydanny avatar pydanny commented on August 23, 2024

Can this be closed?

from django-twoscoops-project.

allyshaban5 avatar allyshaban5 commented on August 23, 2024

I'm having the same problem. When i run python manage.py runserver i get the following errors
Traceback (most recent call last):
File "manage.py", line 9, in
execute_from_command_line(sys.argv)
File "/home/intrahealth/env/local/lib/python2.7/site-packages/django/core/management/init.py", line 385, in execute_from_command_line
utility.execute()
File "/home/intrahealth/env/local/lib/python2.7/site-packages/django/core/management/init.py", line 345, in execute
settings.INSTALLED_APPS
File "/home/intrahealth/env/local/lib/python2.7/site-packages/django/conf/init.py", line 46, in getattr
self._setup(name)
File "/home/intrahealth/env/local/lib/python2.7/site-packages/django/conf/init.py", line 42, in _setup
self._wrapped = Settings(settings_module)
File "/home/intrahealth/env/local/lib/python2.7/site-packages/django/conf/init.py", line 98, in init
% (self.SETTINGS_MODULE, e)
ImportError: Could not import settings 'temba.settings' (Is it on sys.path? Is there an import error in the settings file?): No module named celery
Any suggestions please

from django-twoscoops-project.

pydanny avatar pydanny commented on August 23, 2024

Did you try: python manage.py runserver --settings=temba.settings.local?

Also, you've added celery. Did you install that into your virtualenv?

from django-twoscoops-project.

nitin42 avatar nitin42 commented on August 23, 2024

nitin@nitin-Satellite-Pro-B40-A:~/icecreamrating_project$ python manage.py syncdb
Traceback (most recent call last):
File "manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 353, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 302, in execute
settings.INSTALLED_APPS
File "/usr/local/lib/python2.7/dist-packages/django/conf/init.py", line 55, in getattr
self._setup(name)
File "/usr/local/lib/python2.7/dist-packages/django/conf/init.py", line 43, in _setup
self._wrapped = Settings(settings_module)
File "/usr/local/lib/python2.7/dist-packages/django/conf/init.py", line 99, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python2.7/importlib/init.py", line 37, in import_module
import(name)
File "/home/nitin/icecreamrating_project/config/settings/local.py", line 11, in
from .common import * # noqa
File "/home/nitin/icecreamrating_project/config/settings/common.py", line 15, in
ROOT_DIR = environ.Path(file) - 3 # (/a/b/myfile.py - 3 = /)
AttributeError: 'module' object has no attribute 'Path'

I am stucked!

from django-twoscoops-project.

pydanny avatar pydanny commented on August 23, 2024

Did you install the requirements into a virtualenv?

from django-twoscoops-project.

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.