Re: site is built with django, but my server doesn't know that...

2007-11-07 Thread RajeshD

> Here is what I do and
> what it all looks like:
>
> log in as [EMAIL PROTECTED]
>
> [EMAIL PROTECTED]:~# python
> Python 2.5.1, Ubuntu 4.1.2 etc. etc.
>
> So Python is installed and I've opened the interpreter, right?
>
> Then this:
>
> >>> import django [to verify that django is installed]
>
> and I get
>
> Traceback (most recent call last):
> File "", line 1, in 
> ImportError: No module named django
>

This just means that django is not in your PYTHONPATH. If your server
is already running the original Django app, it means that Django is
installed. Take a look at the installation documentation to learn more
about setting up your PYTHONPATH and other environment.

http://www.djangoproject.com/documentation/install/

Also, as an aside, try using some kind of source control (subversion,
for example) so that you avoid changing your production source code
directly on your production server. A better way to do this is to
change things on your development/test environment, test it there,
commit your stable changes to a source control repository and then
grab and install them on your production server from the repository.



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



site is built with django, but my server doesn't know that...

2007-11-07 Thread erica g

I have very basic experience with Django templating and creating
models and apps.  The developer who built my site is gone and I am
trying to sort things out.  I know our site runs on Django.  I used to
have Django installed on my own machine and did all of my mini-
development work there (like creating models and apps and modifying
admin and public views).  Now I want to do that directly on the
server.  However when I try to do anything Django-ish, my server
doesn't seem to know that Django is installed.  Here is what I do and
what it all looks like:

log in as [EMAIL PROTECTED]

[EMAIL PROTECTED]:~# python
Python 2.5.1, Ubuntu 4.1.2 etc. etc.
>>>

So Python is installed and I've opened the interpreter, right?

Then this:

>>> import django [to verify that django is installed]

and I get

Traceback (most recent call last):
File "", line 1, in 
ImportError: No module named django
>>>

Any ideas??

Thanks!


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