Re: Error after python manage.py runserver

2006-03-21 Thread [EMAIL PROTECTED]

Francisco Reyes wrote:

> Maybe is my newbiness... but the install and tutorial docs seem like could
> use some changes. For instance just double-checked to make sure I had not
> missed it. I don't see where it mentions to create a symlink for each
> project.

Probably because you don't have to.

The tutorial tells you to use the standard "startapp" command in the
project directory, and use "runserver" in the same directory. If you do
that, the application will be available via the standard Python path
(which includes the current directory), and everything will just work.

If you want to put things somewhere else, you need to make sure that
the project directory is on the path. There are many ways to do that;
the most common is to set the PYTHONPATH variable.  See your favourite
Python tutorial for more info on the Python path.




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



Re: Error after python manage.py runserver

2006-03-21 Thread limodou

On 3/22/06, Francisco Reyes <[EMAIL PROTECTED]> wrote:
>
> Julio Nobrega writes:
>
> >
> >   Is your project directory on your Python path? The easiest thing for
> > me is to ln it to site-packages.
>
> It wasn't. Thanks
>
> Maybe is my newbiness... but the install and tutorial docs seem like could
> use some changes. For instance just double-checked to make sure I had not
> missed it. I don't see where it mentions to create a symlink for each
> project.
>
> I did see and followed the instruction to setup the link for the global
> django source in the site-packages..
>
> Is there a "doc" list to send suggestions to?
>

For django, you can install it like common python module, just run:

python setup.py install

This will install django in python site-packages directory.

And your project can be existed in everywhere. Before you run the
server, you should use manage.py to run the server, it'll automatic
add DJANGO_SETTINGS_MODULE for you and also the PYTHONPATH. And if you
run on apache, you should configure the http.conf, and add your
project path to sys.path(see the mod_python.txt document)

--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit

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



Re: Error after python manage.py runserver

2006-03-21 Thread Francisco Reyes

Julio Nobrega writes:

> 
>   Is your project directory on your Python path? The easiest thing for
> me is to ln it to site-packages.

It wasn't. Thanks

Maybe is my newbiness... but the install and tutorial docs seem like could 
use some changes. For instance just double-checked to make sure I had not 
missed it. I don't see where it mentions to create a symlink for each 
project.

I did see and followed the instruction to setup the link for the global 
django source in the site-packages..

Is there a "doc" list to send suggestions to? 

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



Re: Error after python manage.py runserver

2006-03-21 Thread Julio Nobrega

  Is your project directory on your Python path? The easiest thing for
me is to ln it to site-packages.

On 3/21/06, Francisco Reyes <[EMAIL PROTECTED]> wrote:
> ImportError at /
> No module named opensourceadmin.urls
> Request Method: GET
> Request URL:http://127.0.0.1:8000/
> Exception Type: ImportError
> Exception Value:No module named opensourceadmin.urls
> Exception Location:
> /usr/local/lib/python2.4/site-packages/django/core/urlresolvers.py in
> _get_urlconf_module, line 87
>
> In the settings.py I see a line:
> ROOT_URLCONF = 'opensourceadmin.urls'
>
> Was I supposed to rename, copy or edit urls.py?

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



Error after python manage.py runserver

2006-03-21 Thread Francisco Reyes

Trying my first Django install
After I do python manage.py runserver and connect to localhost port 8000 I 
get:


ImportError at /
No module named opensourceadmin.urls
Request Method: GET 
Request URL:http://127.0.0.1:8000/  
Exception Type: ImportError 
Exception Value:No module named opensourceadmin.urls
Exception Location: 
/usr/local/lib/python2.4/site-packages/django/core/urlresolvers.py in 
_get_urlconf_module, line 87

In the settings.py I see a line:
ROOT_URLCONF = 'opensourceadmin.urls'

Was I supposed to rename, copy or edit urls.py?

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