Discussion:
Anybody set up Django using Dreamhost?
s***@gmail.com
2006-08-03 22:35:09 UTC
Permalink
I'm working my way through the tutorial on Dreamhost's wiki
(http://wiki.dreamhost.com/index.php/Django) and came upon a problem,
namely the django-admin.py: command not found prompt.

I understand that the paths within the .bash_profile file within the
root directory must point towards the django-admin.py file within
django's bin directory. I've triple checked the paths but no avail, I'm
beginning to tear my hair out and can't see for the life of me whats
wrong.

My .bash_profile is simply this:

# ~/.bash_profile: executed by bash(1). umask 002 PS1='[\h]$'
export PATH=$PATH:$HOME/django_src/django/bin
export PYTHONPATH=$PYTHONPATH:$HOME/django_src:$HOME/django_projects

I've attached a screenshot of the directory structure within my ftp
client here:
Loading Image...

If somebody could point out whats wrong, I'd be very grateful.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-***@googlegroups.com
To unsubscribe from this group, send email to django-users-***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---
s***@gmail.com
2006-08-03 23:47:04 UTC
Permalink
Thanks Jay, I've actually tried to set up Django twice, once using
Jeff's guide and another time using the wiki, but on both occasions the
same problem occured.
http://www2.jeffcroft.com/2006/may/11/django-dreamhost/
I've setup a couple sites flawlessly using his tutorial.
Jay P.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-***@googlegroups.com
To unsubscribe from this group, send email to django-users-***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---
SmileyChris
2006-08-03 23:50:40 UTC
Permalink
Hi Simon,

Try this instead:
python django-admin.py

If you want any specific help with Dreamhost setup, you can try
contacting me via gtalk and I'll have a chat with you.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-***@googlegroups.com
To unsubscribe from this group, send email to django-users-***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---
s***@gmail.com
2006-08-04 00:10:10 UTC
Permalink
SmilyChris, you've made me SmilySimon, thanks a million! For anyone
else out there, just navigate to the directory django-admin.py is in
e.g.

cd\django_src\django\bin

then type
python django-admin.py startproject myproject


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-***@googlegroups.com
To unsubscribe from this group, send email to django-users-***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---
Jay Parlar
2006-08-04 01:02:18 UTC
Permalink
Post by s***@gmail.com
SmilyChris, you've made me SmilySimon, thanks a million! For anyone
else out there, just navigate to the directory django-admin.py is in
e.g.
cd\django_src\django\bin
then type
python django-admin.py startproject myproject
Wait... Were you trying to run 'django-admin.py startproject
myproject' from your Windows machine?

Jay P.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-***@googlegroups.com
To unsubscribe from this group, send email to django-users-***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---
s***@gmail.com
2006-08-04 01:08:49 UTC
Permalink
Im using Putty on a windows machine yep. Following Jeff's tutorial my
paths are all wrong now, as myproject in now in the 'bin' directory.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-***@googlegroups.com
To unsubscribe from this group, send email to django-users-***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---
Jay Parlar
2006-08-04 01:41:26 UTC
Permalink
Post by s***@gmail.com
Im using Putty on a windows machine yep. Following Jeff's tutorial my
paths are all wrong now, as myproject in now in the 'bin' directory.
Did you try doing:
echo $PATH

Jay P.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-***@googlegroups.com
To unsubscribe from this group, send email to django-users-***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---
s***@gmail.com
2006-08-04 01:47:00 UTC
Permalink
Yip, I tried that Jay, the result was:

***@gummi:~$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/home/kimizu/django_src/dja:/home/kimizu/django_src/django/bin

My initial feeling about this was the that the django-admin.py wasn't
found due to the directory structure within the .bash_profile file.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-***@googlegroups.com
To unsubscribe from this group, send email to django-users-***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Julio Nobrega
2006-08-03 23:35:41 UTC
Permalink
Post by s***@gmail.com
I'm working my way through the tutorial on Dreamhost's wiki
(http://wiki.dreamhost.com/index.php/Django) and came upon a problem,
namely the django-admin.py: command not found prompt.
Did you run "source ~/.bash_profile"? If yes, try to run "python
django-admin.py etc". Hope it works :)
--
Julio Nobrega - http://www.inerciasensorial.com.br

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-***@googlegroups.com
To unsubscribe from this group, send email to django-users-***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---
s***@gmail.com
2006-08-03 23:43:46 UTC
Permalink
Thanks for your reply Julio, yes I've tried "source ~.bash_profile"
before typing "django-admin.py startproject myproject" but still the
prompt says "command 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-***@googlegroups.com
To unsubscribe from this group, send email to django-users-***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---
Jay Parlar
2006-08-04 00:37:38 UTC
Permalink
Post by s***@gmail.com
Thanks for your reply Julio, yes I've tried "source ~.bash_profile"
before typing "django-admin.py startproject myproject" but still the
prompt says "command not found".
echo $PATH

and let us know what it says.

Jay P.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-***@googlegroups.com
To unsubscribe from this group, send email to django-users-***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---
SmileyChris
2006-08-04 01:25:50 UTC
Permalink
Go into your django_src directory, then:
mv dja ../django_projects


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-***@googlegroups.com
To unsubscribe from this group, send email to django-users-***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---
s***@gmail.com
2006-08-04 01:38:40 UTC
Permalink
Error message,
mv: cannot stat `dja': No such file or directory.

I think I'll just delete everything and start over again


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-***@googlegroups.com
To unsubscribe from this group, send email to django-users-***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---
s***@gmail.com
2006-08-04 01:14:32 UTC
Permalink
Post by Jay Parlar
echo $PATH
and let us know what it says.
Jay P.
After logging into Putty, if I type echo $PATH I get:

***@gummi:~$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/home/kimizu/django_src/dja:/home/kimizu/django_src/django/bin


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-***@googlegroups.com
To unsubscribe from this group, send email to django-users-***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---
Jay Parlar
2006-08-03 23:41:22 UTC
Permalink
I would avoid the Wiki tutorial completely and use Jeff Croft's guide:
http://www2.jeffcroft.com/2006/may/11/django-dreamhost/

I've setup a couple sites flawlessly using his tutorial.

Jay P.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-***@googlegroups.com
To unsubscribe from this group, send email to django-users-***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---
Loading...