ah that worked. I have apache on port 80 so I didn't see my django site, so I just tried a different port and all my django sites work on the new port now. I always used port 8080 before I wonder why it doesn't work anymore. Anyway working again, thanks a million devan!
On Sat, Dec 15, 2012 at 4:25 PM, Dev <devans...@gmail.com> wrote: > Run from command line: > "python manage.py runserver" > > Also i guess you are getting an import error because your 'path > environment variable' doesn't contain the path of the directory of your > project. > > Sent from my iPhone > > On 15-Dec-2012, at 9:34 PM, Phil Brant <phil...@gmail.com> wrote: > > OK, thanks for your help anyway. > > > On Sat, Dec 15, 2012 at 3:57 PM, Ramiro Morales <cra...@gmail.com> wrote: > >> >> On Dec 15, 2012 11:30 AM, "Phil" <phil...@gmail.com> wrote: >> > >> > Hi, >> > >> > I had django setup and working for over a year now working with it on >> and off. I was away for a month, came back and now whenever I run >> "django-admin.py runserver 8080" I get the following error... >> > >> > ImportError: Settings cannot be imported, because environment variable >> DJANGO_SETTINGS_MODULE is undefined. >> > >> > I can import django from command line(version 1.4.3), I ran >> "django-admin.py startproject test" to try a new project. It has >> "os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test.settings")" declared >> in "manage.py" in the root and in "test/test/wsgi.py" it's also declared so >> how is my DJANGO_SETTINGS_MODULE undefined? >> >> Hace you by chance actually upgraded Django todo 1.4.x from aún older >> versión? Are you using Mac OS X? >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To post to this group, send email to django-users@googlegroups.com. >> To unsubscribe from this group, send email to >> django-users+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/django-users?hl=en. >> > > > > -- > Kind Regards, > Philip Brant. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- Kind Regards, Philip Brant. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.