Re: No module named views, Django tutorial

2008-04-23 Thread the devel

> I had my project in an apache directory so maybe it has something to
> do with permissions.

Quoted from the Django Tutorial:

If your background is in PHP, you’re probably used to putting code
under the Web server’s document root (in a place such as /var/www).
With Django, you don’t do that. It’s not a good idea to put any of
this Python code within your Web server’s document root, because it
risks the possibility that people may be able to view your code over
the Web. That’s not good for security.

Put your code in some directory outside of the document root, such as /
home/mycode.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: No module named views, Django tutorial

2008-04-22 Thread lancemiller777

I am having the same error. Note: A month into learning Python also.
I just did this:
pydoc -w /usr/local/google_appengine/lib/django/django/core/
urlresolvers.py
outputs a nice html file:
urlresolvers.html
And in it is a link to the source code viewed in the web browser.
Python rocks.
Now if I can just figure out Django.

Anyway the error happens in this function:
def _get_urlconf_module(self):
try:
return self._urlconf_module
except AttributeError:
try:
self._urlconf_module = __import__(self.urlconf_name,
{}, {}, [''])
except ValueError, e:
# Invalid urlconf_name, such as "foo.bar." (note
trailing period)
raise ImproperlyConfigured, "Error while importing
URLconf %r: %s" % (self.urlconf_name, e)
return self._urlconf_module

The Google Django Help page does not help in showing what/where this
URL config thing is supposed to happen.
http://code.google.com/appengine/articles/django.html



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