Comments (10)
Thank you reporting this. We'll look into it ASAP.
from django-twoscoops-project.
@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.
@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.
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.
Can this be solved by just adding this to your .env?:
export PYTHONPATH=$PYTHONPATH:$PWD
from django-twoscoops-project.
Can this be closed?
from django-twoscoops-project.
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.
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.
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.
Did you install the requirements into a virtualenv?
from django-twoscoops-project.
Related Issues (20)
- Urls.py question HOT 3
- Correct way to develop a new Project template HOT 1
- select_related() example in Ch. 12.3.3
- Form instance attributes in Ch. 10
- flake8 warnings in settings
- could not import setting
- Section 11.3 CSRF Django doc broken link
- explain where to find https://github.com/twoscoops/two-scoops-of-django-1.8 HOT 2
- provide an epub version HOT 7
- Pull request #25 was merged to the wrong branch? HOT 2
- Problems with the Windows section HOT 8
- discover runner part of 1.6 now? HOT 6
- mkvirtualenv directions slightly wrong ? HOT 1
- STATIC_ROOT set to wrong variable HOT 1
- Makefile and make.bat not setting correct {{ project_name }}
- SASS support
- Why are the settings in test.txt a repeat of those in local.txt HOT 1
- Setting DEBUG from the environment HOT 2
- Requirements Confusion HOT 1
- Readme instructions tell users to use master branch though it is several commits behind develop HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-twoscoops-project.