fabio natali wrote:
>>      import models
> 
> I added the line
> 
>       import arteak.management.models

It's not the same thing :-). This line won't load the name "models" into 
your local environment. If you want import from some path this should be:

     from arteak.management import models

> TypeError at /
> 'str' object is not callable

Can you provide full traceback? It's pretty hard to guess where this 
happens.

> Anyway I don't want to steal your time any longer. I really hoped
> saving some lines in urls.py could be easier. I'd probably better to
> write a short bash script to generate a urls.py file from my models.py
> with all the proper generic views entries for each model.

Well... The choice is yours. However I'd suggest to spend some time 
getting yourself more familiar with Python because Django is just Python 
in many ways.

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

Reply via email to