Re: Import error exception "No module named urls" when running from eclipse

2008-10-26 Thread Steve Holden

DragonSlayre wrote:
[at the top, but it's now moved to the bottom]
> On Oct 22, 2:03 pm, Jeff Anderson <[EMAIL PROTECTED]> wrote:
>   
>> DragonSlayre wrote:
>> 
>>> Hi, I'm new to django/python, and I'm testing out eclipse for
>>> development.
>>>   
>>> I'm using pydev, and managed to run my app, but then when I go to the
>>> web page, I get:
>>>   
>>> ImportError at /time/
>>> No module named urls
>>>   
>> You'll need to include the code for the view that is being called, and
>> possibly your urls.py
>> Do you have a urls.py in your project?
>>
>> Jeff Anderson
>>
>>  signature.asc
>> < 1KViewDownload
>> 
> Thanks for your help,
>
> It turns out that it was a problem to do with the renaming
> functionality not working properly in eclipse.  I tried renaming my
> package - and that doesn't work for some reason, and then my hack
> around caused a problem when I created a new package, which ultimately
> stuffed up which package eclipse was looking in when launching the
> app.
>
> Is it *normal* for rename to not work properly for the packages in
> eclipse using pydev?
>
> My solution to this was to create a new project, with the package name
> I wanted, and to import the code I was previously using.  If it's just
> my version, then I should probably find out why my version doesn't
> support rename.
>
>   
It would be helpful if there were an "app rename" and "project rename"
tool but at present I don't believe there is.  The fact is that these
names do pervade the code, so as you have found out it's not as
straightforward as it should be to change them retrospectively (though
it's by no means impossible).

regards
 Steve



--~--~-~--~~~---~--~~
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: Import error exception "No module named urls" when running from eclipse

2008-10-21 Thread DragonSlayre

Thanks for your help,

It turns out that it was a problem to do with the renaming
functionality not working properly in eclipse.  I tried renaming my
package - and that doesn't work for some reason, and then my hack
around caused a problem when I created a new package, which ultimately
stuffed up which package eclipse was looking in when launching the
app.

Is it *normal* for rename to not work properly for the packages in
eclipse using pydev?

My solution to this was to create a new project, with the package name
I wanted, and to import the code I was previously using.  If it's just
my version, then I should probably find out why my version doesn't
support rename.


Louis

On Oct 22, 2:03 pm, Jeff Anderson <[EMAIL PROTECTED]> wrote:
> DragonSlayre wrote:
> > Hi, I'm new to django/python, and I'm testing out eclipse for
> > development.
>
> > I'm using pydev, and managed to run my app, but then when I go to the
> > web page, I get:
>
> > ImportError at /time/
> > No module named urls
>
> You'll need to include the code for the view that is being called, and
> possibly your urls.py
> Do you have a urls.py in your project?
>
> Jeff Anderson
>
>  signature.asc
> < 1KViewDownload
--~--~-~--~~~---~--~~
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: Import error exception "No module named urls" when running from eclipse

2008-10-21 Thread Jeff Anderson
DragonSlayre wrote:
> Hi, I'm new to django/python, and I'm testing out eclipse for
> development.
>
> I'm using pydev, and managed to run my app, but then when I go to the
> web page, I get:
>
> ImportError at /time/
> No module named urls
>   
You'll need to include the code for the view that is being called, and
possibly your urls.py
Do you have a urls.py in your project?

Jeff Anderson



signature.asc
Description: OpenPGP digital signature


Import error exception "No module named urls" when running from eclipse

2008-10-21 Thread DragonSlayre

Hi, I'm new to django/python, and I'm testing out eclipse for
development.

I'm using pydev, and managed to run my app, but then when I go to the
web page, I get:

ImportError at /time/
No module named urls
Request Method: GET
Request URL:http://localhost:8080/time/
Exception Type: ImportError
Exception Value:
No module named urls
Exception Location: C:\python25\lib\site-packages\django\core
\urlresolvers.py in _get_urlconf_module, line 197
Python Executable:  C:\Python25\python.exe
Python Version: 2.5.2


I'm guessing that I probably need to include a library in eclipse or
something like that - any ideas???

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