Traceback:
File "C:\Python26\lib\site-packages\django\core\handlers\base.py" in
get_response
  91.                         request.path_info)
File "C:\Python26\lib\site-packages\django\core\urlresolvers.py" in
resolve
  214.             for pattern in self.url_patterns:
File "C:\Python26\lib\site-packages\django\core\urlresolvers.py" in
_get_url_patterns
  243.         patterns = getattr(self.urlconf_module, "urlpatterns",
self.urlconf_module)
File "C:\Python26\lib\site-packages\django\core\urlresolvers.py" in
_get_urlconf_module
  238.             self._urlconf_module =
import_module(self.urlconf_name)
File "C:\Python26\lib\site-packages\django\utils\importlib.py" in
import_module
  35.     __import__(name)
File "C:\Users\Josh\Django-1.2.1\django\bin\mysite\..\mysite\urls.py"
in <module>
  2. from mysite.views import current_datetime

Exception Type: ImportError at /time/
Exception Value: cannot import name current_datetime


this is the traceback i get........when the code is correct

let me just say that my python26 directory is:
C: Python26/lib/site-packages
and my Django-1.2.1 directory is:
C:user/Josh/Django-1.2.1

is this the problem, if so how should I fix this?

On Jun 14, 12:11 am, Karen Tracey <kmtra...@gmail.com> wrote:
> On Sun, Jun 13, 2010 at 9:06 PM, JRMAbock <joshua.matl...@comcast.net>wrote:
>
> > if i do that i get this error
>
> > 'module' object has no attribute 'current_datetime'
>
> So the Python interpreter cannot find current_datetime defined in your views
> module. The code you showed for it also would have caused Python to report a
> indentation error (unexpected indent) on the line "html = "<html><body>..."
> -- this line, as shown, was indented farther than the preceding line, and
> Python would not accept that. So the code you have shown somehow isn't being
> seen by the Python interpreter....
>
> Karen
> --http://tracey.org/kmt/

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

Reply via email to