django-schedule icon indicating copy to clipboard operation
django-schedule copied to clipboard

No module named conf.settings

Open yourNameIsGood opened this issue 10 years ago • 1 comments

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

yourNameIsGood avatar Jul 03 '14 02:07 yourNameIsGood

#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

101t avatar Aug 16 '14 10:08 101t