Tuesday, August 30, 2011

Re: django-admin.py not found

No.  Here is a more lengthy explanation as to what you need to do:

https://docs.djangoproject.com/en/dev/topics/install/#installing-official-release

On Tue, Aug 30, 2011 at 8:46 PM, PremAnand Lakshmanan <prem1pre@gmail.com> wrote:
Where do I type the following commands? Is it in the python shell?
 
tar xzvf Django-1.3.tar.gz
cd Django-1.3
sudo python setup.py install
 
What does tar xzvf mean?

On Tue, Aug 30, 2011 at 8:41 PM, Yves S. Garret <yoursurrogategod@gmail.com> wrote:
Where do you have Python installed?

I just followed these steps to install Django, worked like a charm (no special setup or anything.)  I did this just for the fun of it without any production settings (just to try stuff out), did you do something different?

https://docs.djangoproject.com/en/dev/intro/install/


On Tue, Aug 30, 2011 at 8:36 PM, PremAnand Lakshmanan <prem1pre@gmail.com> wrote:
This is steps I used to download.
 
1. Download from the Django website.
2. Unzipped it to C:/Django-1.3 folder

On Tue, Aug 30, 2011 at 8:31 PM, PremAnand Lakshmanan <prem1pre@gmail.com> wrote:
I dont see any file under site packages. I think my Django is not installed within Python.
 
Something is wrong..

On Tue, Aug 30, 2011 at 8:28 PM, Yves S. Garret <yoursurrogategod@gmail.com> wrote:
Do me a favor and check that you have <your python install>\Lib\site-packages\django\bin\django-admin.py

If you do, try that.  I don't think I have a C:\django-1.3\... directory, could be an issue with how you installed it (I didn't experiment, there was no need).


On Tue, Aug 30, 2011 at 8:18 PM, PremAnand Lakshmanan <prem1pre@gmail.com> wrote:
My django-admin.py file is located in
 
C:\django-1.3\django\bin\django-admin.py
 
I tried executing this command but get the following error in my python shell,
 
>>> python C:\django-1.3\django\bin\django-admin.py startproject mysite
SyntaxError: invalid syntax
 


 
On Tue, Aug 30, 2011 at 11:28 AM, Yves S. Garret <yoursurrogategod@gmail.com> wrote:
What OS are you running?  Is it in your path?

I'm having a similar issue and managed to get around it (although the solution is not as elegant as I'd like) using this:
python C:\Python27\Lib\site-packages\django\bin\django-admin.py startproject mysite2

On Tue, Aug 30, 2011 at 10:39 AM, PremAnand Lakshmanan <prem1pre@gmail.com> wrote:
I get the following error when I execute this command,
 
django-admin.py startproject mysite
 
Error:
django-admin.py not found.
 

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.




--
Prem
408-393-2545




--
Prem
408-393-2545



--
Prem
408-393-2545




--
Prem
408-393-2545

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Re: django-admin.py not found

Where do I type the following commands? Is it in the python shell?
 
tar xzvf Django-1.3.tar.gz
cd Django-1.3
sudo python setup.py install
 
What does tar xzvf mean?

On Tue, Aug 30, 2011 at 8:41 PM, Yves S. Garret <yoursurrogategod@gmail.com> wrote:
Where do you have Python installed?

I just followed these steps to install Django, worked like a charm (no special setup or anything.)  I did this just for the fun of it without any production settings (just to try stuff out), did you do something different?

https://docs.djangoproject.com/en/dev/intro/install/


On Tue, Aug 30, 2011 at 8:36 PM, PremAnand Lakshmanan <prem1pre@gmail.com> wrote:
This is steps I used to download.
 
1. Download from the Django website.
2. Unzipped it to C:/Django-1.3 folder

On Tue, Aug 30, 2011 at 8:31 PM, PremAnand Lakshmanan <prem1pre@gmail.com> wrote:
I dont see any file under site packages. I think my Django is not installed within Python.
 
Something is wrong..

On Tue, Aug 30, 2011 at 8:28 PM, Yves S. Garret <yoursurrogategod@gmail.com> wrote:
Do me a favor and check that you have <your python install>\Lib\site-packages\django\bin\django-admin.py

If you do, try that.  I don't think I have a C:\django-1.3\... directory, could be an issue with how you installed it (I didn't experiment, there was no need).


On Tue, Aug 30, 2011 at 8:18 PM, PremAnand Lakshmanan <prem1pre@gmail.com> wrote:
My django-admin.py file is located in
 
C:\django-1.3\django\bin\django-admin.py
 
I tried executing this command but get the following error in my python shell,
 
>>> python C:\django-1.3\django\bin\django-admin.py startproject mysite
SyntaxError: invalid syntax
 


 
On Tue, Aug 30, 2011 at 11:28 AM, Yves S. Garret <yoursurrogategod@gmail.com> wrote:
What OS are you running?  Is it in your path?

I'm having a similar issue and managed to get around it (although the solution is not as elegant as I'd like) using this:
python C:\Python27\Lib\site-packages\django\bin\django-admin.py startproject mysite2

On Tue, Aug 30, 2011 at 10:39 AM, PremAnand Lakshmanan <prem1pre@gmail.com> wrote:
I get the following error when I execute this command,
 
django-admin.py startproject mysite
 
Error:
django-admin.py not found.
 

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.




--
Prem
408-393-2545




--
Prem
408-393-2545



--
Prem
408-393-2545




--
Prem
408-393-2545

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Re: django-admin.py not found

Where do you have Python installed?

I just followed these steps to install Django, worked like a charm (no special setup or anything.)  I did this just for the fun of it without any production settings (just to try stuff out), did you do something different?

https://docs.djangoproject.com/en/dev/intro/install/

On Tue, Aug 30, 2011 at 8:36 PM, PremAnand Lakshmanan <prem1pre@gmail.com> wrote:
This is steps I used to download.
 
1. Download from the Django website.
2. Unzipped it to C:/Django-1.3 folder

On Tue, Aug 30, 2011 at 8:31 PM, PremAnand Lakshmanan <prem1pre@gmail.com> wrote:
I dont see any file under site packages. I think my Django is not installed within Python.
 
Something is wrong..

On Tue, Aug 30, 2011 at 8:28 PM, Yves S. Garret <yoursurrogategod@gmail.com> wrote:
Do me a favor and check that you have <your python install>\Lib\site-packages\django\bin\django-admin.py

If you do, try that.  I don't think I have a C:\django-1.3\... directory, could be an issue with how you installed it (I didn't experiment, there was no need).


On Tue, Aug 30, 2011 at 8:18 PM, PremAnand Lakshmanan <prem1pre@gmail.com> wrote:
My django-admin.py file is located in
 
C:\django-1.3\django\bin\django-admin.py
 
I tried executing this command but get the following error in my python shell,
 
>>> python C:\django-1.3\django\bin\django-admin.py startproject mysite
SyntaxError: invalid syntax
 


 
On Tue, Aug 30, 2011 at 11:28 AM, Yves S. Garret <yoursurrogategod@gmail.com> wrote:
What OS are you running?  Is it in your path?

I'm having a similar issue and managed to get around it (although the solution is not as elegant as I'd like) using this:
python C:\Python27\Lib\site-packages\django\bin\django-admin.py startproject mysite2

On Tue, Aug 30, 2011 at 10:39 AM, PremAnand Lakshmanan <prem1pre@gmail.com> wrote:
I get the following error when I execute this command,
 
django-admin.py startproject mysite
 
Error:
django-admin.py not found.
 

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.




--
Prem
408-393-2545




--
Prem
408-393-2545



--
Prem
408-393-2545

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Re: django-admin.py not found

I dont see any file under site packages. I think my Django is not installed within Python.
 
Something is wrong..

On Tue, Aug 30, 2011 at 8:28 PM, Yves S. Garret <yoursurrogategod@gmail.com> wrote:
Do me a favor and check that you have <your python install>\Lib\site-packages\django\bin\django-admin.py

If you do, try that.  I don't think I have a C:\django-1.3\... directory, could be an issue with how you installed it (I didn't experiment, there was no need).


On Tue, Aug 30, 2011 at 8:18 PM, PremAnand Lakshmanan <prem1pre@gmail.com> wrote:
My django-admin.py file is located in
 
C:\django-1.3\django\bin\django-admin.py
 
I tried executing this command but get the following error in my python shell,
 
>>> python C:\django-1.3\django\bin\django-admin.py startproject mysite
SyntaxError: invalid syntax
 


 
On Tue, Aug 30, 2011 at 11:28 AM, Yves S. Garret <yoursurrogategod@gmail.com> wrote:
What OS are you running?  Is it in your path?

I'm having a similar issue and managed to get around it (although the solution is not as elegant as I'd like) using this:
python C:\Python27\Lib\site-packages\django\bin\django-admin.py startproject mysite2

On Tue, Aug 30, 2011 at 10:39 AM, PremAnand Lakshmanan <prem1pre@gmail.com> wrote:
I get the following error when I execute this command,
 
django-admin.py startproject mysite
 
Error:
django-admin.py not found.
 

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.




--
Prem
408-393-2545




--
Prem
408-393-2545

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Re: django-admin.py not found

Do me a favor and check that you have <your python install>\Lib\site-packages\django\bin\django-admin.py

If you do, try that.  I don't think I have a C:\django-1.3\... directory, could be an issue with how you installed it (I didn't experiment, there was no need).

On Tue, Aug 30, 2011 at 8:18 PM, PremAnand Lakshmanan <prem1pre@gmail.com> wrote:
My django-admin.py file is located in
 
C:\django-1.3\django\bin\django-admin.py
 
I tried executing this command but get the following error in my python shell,
 
>>> python C:\django-1.3\django\bin\django-admin.py startproject mysite
SyntaxError: invalid syntax
 


 
On Tue, Aug 30, 2011 at 11:28 AM, Yves S. Garret <yoursurrogategod@gmail.com> wrote:
What OS are you running?  Is it in your path?

I'm having a similar issue and managed to get around it (although the solution is not as elegant as I'd like) using this:
python C:\Python27\Lib\site-packages\django\bin\django-admin.py startproject mysite2

On Tue, Aug 30, 2011 at 10:39 AM, PremAnand Lakshmanan <prem1pre@gmail.com> wrote:
I get the following error when I execute this command,
 
django-admin.py startproject mysite
 
Error:
django-admin.py not found.
 

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.




--
Prem
408-393-2545

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Re: django-admin.py not found

My django-admin.py file is located in
 
C:\django-1.3\django\bin\django-admin.py
 
I tried executing this command but get the following error in my python shell,
 
>>> python C:\django-1.3\django\bin\django-admin.py startproject mysite
SyntaxError: invalid syntax
 


 
On Tue, Aug 30, 2011 at 11:28 AM, Yves S. Garret <yoursurrogategod@gmail.com> wrote:
What OS are you running?  Is it in your path?

I'm having a similar issue and managed to get around it (although the solution is not as elegant as I'd like) using this:
python C:\Python27\Lib\site-packages\django\bin\django-admin.py startproject mysite2

On Tue, Aug 30, 2011 at 10:39 AM, PremAnand Lakshmanan <prem1pre@gmail.com> wrote:
I get the following error when I execute this command,
 
django-admin.py startproject mysite
 
Error:
django-admin.py not found.
 

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.




--
Prem
408-393-2545

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

manage.py test app can't find tests

Using Python 2.7 and Django trunk I can run

python tests.py

successfully in the app directory or in /app/tests subdirectory where it
says (no setup or teardown required yet)

.........................
----------------------------------------------------------------------
Ran 25 tests in 0.141s

OK


but in the project directory can someone tell me why this runs zero tests?

python manage.py test app

says


Creating test database for alias 'default'...

----------------------------------------------------------------------
Ran 0 tests in 0.000s

OK
Destroying test database for alias 'default'...


Maybe there are no database related tests just yet????

On the other hand broadening the scope seems to run a whole mess of
contrib app tests.

python manage.py test

says

Creating test database for alias 'default'...
.............................................................................s............
..........................................................................................
..........................................................................................
........................................................
----------------------------------------------------------------------
Ran 326 tests in 33.157s

OK (skipped=1)
Destroying test database for alias 'default'...


My settings.py says in part ...

INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes', # keeps track of labels and tables
'django.contrib.sessions', # keys, values, expiry
'django.contrib.sites', # for connecting content to 'a' site
'django.contrib.messages',
'django.contrib.admin',
'django.contrib.admindocs',
'django.contrib.staticfiles',
'django.contrib.comments',
'commoninfo',
'ldap_groups', # Novell login for auth
'app',
)


Thanks for any hints

Mike


--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.