Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No module named conf.settings #52

Open
yourNameIsGood opened this issue Jul 3, 2014 · 1 comment
Open

No module named conf.settings #52

yourNameIsGood opened this issue Jul 3, 2014 · 1 comment

Comments

@yourNameIsGood
Copy link

I did not change any code at all . After install setup , trying to runserver then I get this:

C:\Python27\mycode\django-schedule\project_sample>manage.py runserver
Validating models...

Unhandled exception in thread started by <bound method Command.inner_run of <dja
ngo.core.management.commands.runserver.Command object at 0x02C68A50>>
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\django\core\management\commands\runserver.
py", line 93, in inner_run
self.validate(display_num_errors=True)
File "C:\Python27\lib\site-packages\django\core\management\base.py", line 280,
in validate
num_errors = get_validation_errors(s, app)
File "C:\Python27\lib\site-packages\django\core\management\validation.py", lin
e 35, in get_validation_errors
for (app_name, error) in get_app_errors().items():
File "C:\Python27\lib\site-packages\django\db\models\loading.py", line 166, in
get_app_errors
self.populate()
File "C:\Python27\lib\site-packages\django\db\models\loading.py", line 75, in
populate
self.load_app(app_name)
File "C:\Python27\lib\site-packages\django\db\models\loading.py", line 96, in
load_app
models = import_module('.models', app_name)
File "C:\Python27\lib\site-packages\django\utils\importlib.py", line 35, in im
port_module
import(name)
File "C:\Python27\lib\site-packages\django_schedule-0.5b-py2.7.egg\schedule\mo
dels__init
.py", line 1, in
from schedule.models.calendars import *
File "C:\Python27\lib\site-packages\django_schedule-0.5b-py2.7.egg\schedule\mo
dels\calendars.py", line 12, in
from schedule.utils import EventListManager
File "C:\Python27\lib\site-packages\django_schedule-0.5b-py2.7.egg\schedule\ut
ils.py", line 6, in
from schedule.conf.settings import CHECK_PERMISSION_FUNC
ImportError: No module named conf.settings

@101t
Copy link

101t commented Aug 16, 2014

#firstlly you should create
virtualenv env
. env/bin/activate
#Then pip django
pip install django==1.4
cd project_sample
ln -s ../schedule # This is here your problem occured :)
python manage.py syncdb
python manage.py load_sample_data
python manage.py runserver

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants