Re: error message on runserver locally

2012-12-15 Thread Phil Brant
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  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  wrote:
>
> OK, thanks for your help anyway.
>
>
> On Sat, Dec 15, 2012 at 3:57 PM, Ramiro Morales  wrote:
>
>>
>> On Dec 15, 2012 11:30 AM, "Phil"  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.



Re: error message on runserver locally

2012-12-15 Thread Bill Freeman
On Sat, Dec 15, 2012 at 9:30 AM, Phil  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...
>

Maybe there's a way to do this, but the only thing that I use
django-admin.py for is startproject.  I haven't  found any suggestion to
use it for anything else in the documents.  All other operations, like
syncdb, runserver, I do by cd'ing into the project root (directory
containing manage.py) and running "python manage.py runserver 8080", for
example.  The cd part is important, because python adds the current
directory to sys.path (if it's not already there), and it needs to be there
to import settings, among other things.  (Running under WSGI, for example,
you will need to add this directory yourself.)

Bill

>
> 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?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/DKnfFKq7KcQJ.
> 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.



Re: error message on runserver locally

2012-12-15 Thread Dev
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  wrote:

> OK, thanks for your help anyway.
> 
> 
> On Sat, Dec 15, 2012 at 3:57 PM, Ramiro Morales  wrote:
> 
> On Dec 15, 2012 11:30 AM, "Phil"  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.



Re: error message on runserver locally

2012-12-15 Thread Phil Brant
OK, thanks for your help anyway.


On Sat, Dec 15, 2012 at 3:57 PM, Ramiro Morales  wrote:

>
> On Dec 15, 2012 11:30 AM, "Phil"  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.



Re: error message on runserver locally

2012-12-15 Thread Ramiro Morales
On Dec 15, 2012 11:30 AM, "Phil"  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.



Re: error message on runserver locally

2012-12-15 Thread Xavier Ordoquy
Le 15 déc. 2012 à 16:37, Phil Brant  a écrit :

> Running that in python interpreter just throws an error "Invalid Syntax"

Without stacktrace, there isn't much we can do.
There might be something wrong in your settings file.

Regards,
Xavier Ordoquy,
Linovia.

-- 
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.



Re: error message on runserver locally

2012-12-15 Thread Phil Brant
Running that in python interpreter just throws an error "Invalid Syntax"


On Sat, Dec 15, 2012 at 3:29 PM, Xavier Ordoquy wrote:

>
> Sorry I should have been more explicit. You need to call the manage.py
> through the python interpreter: "python manage.py runserver" because your
> local directory isn't in your paths.
>
> Regards,
> Xavier Ordoquy,
> Linovia.
>
> Le 15 déc. 2012 à 16:14, Phil Brant  a écrit :
>
> I tried "manage.py runserver 8080" there just get "command not found".
> I've never done it that way in the past but doesn't work either.
>
>
> On Sat, Dec 15, 2012 at 3:09 PM, Xavier Ordoquy wrote:
>
>>
>> Have you tried to start them with the manage.py runserver instead of
>> django-admin ?
>>
>> Regards,
>> Xavier Ordoquy,
>> Linovia.
>>
>> Le 15 déc. 2012 à 15:38, Phil  a écrit :
>>
>> Hi Xavier, I tried a project called "boom" too and same message, plus my
>> other 3 django projects I had working previously all get the same error now.
>>
>> On Saturday, December 15, 2012 2:34:48 PM UTC, Xavier Ordoquy wrote:
>>>
>>> Hi Phil,
>>>
>>> test is a python module. Your project name conflicts with it.
>>> You should use another name for your project.
>>>
>>> Regards,
>>> Xavier Ordoquy,
>>> Linovia.
>>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/django-users/-/kFwQlmOsSQgJ.
>> 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.
>
>
>  --
> 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.



Re: error message on runserver locally

2012-12-15 Thread Xavier Ordoquy

Sorry I should have been more explicit. You need to call the manage.py through 
the python interpreter: "python manage.py runserver" because your local 
directory isn't in your paths.

Regards,
Xavier Ordoquy,
Linovia.

Le 15 déc. 2012 à 16:14, Phil Brant  a écrit :

> I tried "manage.py runserver 8080" there just get "command not found". I've 
> never done it that way in the past but doesn't work either.
> 
> 
> On Sat, Dec 15, 2012 at 3:09 PM, Xavier Ordoquy  wrote:
> 
> Have you tried to start them with the manage.py runserver instead of 
> django-admin ?
> 
> Regards,
> Xavier Ordoquy,
> Linovia.
> 
> Le 15 déc. 2012 à 15:38, Phil  a écrit :
> 
>> Hi Xavier, I tried a project called "boom" too and same message, plus my 
>> other 3 django projects I had working previously all get the same error now.
>> 
>> On Saturday, December 15, 2012 2:34:48 PM UTC, Xavier Ordoquy wrote:
>> Hi Phil, 
>> 
>> test is a python module. Your project name conflicts with it. 
>> You should use another name for your project. 
>> 
>> Regards, 
>> Xavier Ordoquy, 
>> Linovia. 
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msg/django-users/-/kFwQlmOsSQgJ.
>> 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.

-- 
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.



Re: error message on runserver locally

2012-12-15 Thread Phil Brant
I tried "manage.py runserver 8080" there just get "command not found". I've
never done it that way in the past but doesn't work either.


On Sat, Dec 15, 2012 at 3:09 PM, Xavier Ordoquy wrote:

>
> Have you tried to start them with the manage.py runserver instead of
> django-admin ?
>
> Regards,
> Xavier Ordoquy,
> Linovia.
>
> Le 15 déc. 2012 à 15:38, Phil  a écrit :
>
> Hi Xavier, I tried a project called "boom" too and same message, plus my
> other 3 django projects I had working previously all get the same error now.
>
> On Saturday, December 15, 2012 2:34:48 PM UTC, Xavier Ordoquy wrote:
>>
>> Hi Phil,
>>
>> test is a python module. Your project name conflicts with it.
>> You should use another name for your project.
>>
>> Regards,
>> Xavier Ordoquy,
>> Linovia.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/kFwQlmOsSQgJ.
> 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.



Re: error message on runserver locally

2012-12-15 Thread Xavier Ordoquy

Have you tried to start them with the manage.py runserver instead of 
django-admin ?

Regards,
Xavier Ordoquy,
Linovia.

Le 15 déc. 2012 à 15:38, Phil  a écrit :

> Hi Xavier, I tried a project called "boom" too and same message, plus my 
> other 3 django projects I had working previously all get the same error now.
> 
> On Saturday, December 15, 2012 2:34:48 PM UTC, Xavier Ordoquy wrote:
> Hi Phil, 
> 
> test is a python module. Your project name conflicts with it. 
> You should use another name for your project. 
> 
> Regards, 
> Xavier Ordoquy, 
> Linovia. 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To view this discussion on the web visit 
> https://groups.google.com/d/msg/django-users/-/kFwQlmOsSQgJ.
> 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.



Re: error message on runserver locally

2012-12-15 Thread Phil
Hi Xavier, I tried a project called "boom" too and same message, plus my 
other 3 django projects I had working previously all get the same error now.

On Saturday, December 15, 2012 2:34:48 PM UTC, Xavier Ordoquy wrote:
>
> Hi Phil, 
>
> test is a python module. Your project name conflicts with it. 
> You should use another name for your project. 
>
> Regards, 
> Xavier Ordoquy, 
> Linovia. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/kFwQlmOsSQgJ.
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.



Re: error message on runserver locally

2012-12-15 Thread Xavier Ordoquy
Hi Phil,

test is a python module. Your project name conflicts with it.
You should use another name for your project.

Regards,
Xavier Ordoquy,
Linovia.

-- 
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.



error message on runserver locally

2012-12-15 Thread Phil
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?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/DKnfFKq7KcQJ.
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.