ok, I've added coltrane!..rock on!

I added an admin.py file to the coltrane folder..

---------------------------------------------------------------------------

#admin.py
from django.contrib import admin
from coltrane.models import Category

admin.site.register(Category)

---------------------------------------------------------------------------

and then ran:
[EMAIL PROTECTED]:~/django_projects/mysite$ python manage.py syncdb

rather than..

[EMAIL PROTECTED]:~/django_projects$ python manage.py syncdb

still a bit confused though as I thought that by exporting my python
path in the project folder I would be able to access manage.py from
the site-packages directory and therefore be able to run..

[EMAIL PROTECTED]:~/django_projects$ python manage.py syncdb


On Dec 9, 12:31 pm, mangamonk <[EMAIL PROTECTED]> wrote:
> >>>import sys; sys.path
>
> ['', '/home/mark/django_projects',
> '/home/mark/django_projects/coltrane',
> '/usr/lib/python25.zip',
> '/usr/lib/python2.5',
> '/usr/lib/python2.5/plat-linux2',
> '/usr/lib/python2.5/lib-tk',
> '/usr/lib/python2.5/lib-dynload',
> '/usr/local/lib/python2.5/site-packages',
> '/usr/lib/python2.5/site-packages',
> '/usr/lib/python2.5/site-packages/Numeric',
> '/usr/lib/python2.5/site-packages/PIL',
> '/usr/lib/python2.5/site-packages/gst-0.10',
> '/var/lib/python-support/python2.5',
> '/usr/lib/python2.5/site-packages/gtk-2.0',
> '/var/lib/python-support/python2.5/gtk-2.0']
>
> On Dec 9, 12:02 pm, mangamonk <[EMAIL PROTECTED]> wrote:
>
> > I'm working through 'practical django projects'
> > on page 46, in order to develop stanalone application, I need to add
> > my django 'project' to the python path. therefore..
>
> > export PYTHONPATH=/home/mark/django_projects/:$PYTHONPATH
>
> > then a little later in the tutorial after setting up the 'coltrane
> > application' I run the 'python manage.py syndb' command, from within
> > the project folder,
>
> > '[EMAIL PROTECTED]:~/django_projects$ python manage.py syncdb'
>
> > and get the following error...
>
> > 'python: can't open file 'manage.py': [Errno 2] No such file or
> > directory'
>
> > how I do I test to see what my python path is?
> > what am I doing wrong?
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to