Yeah, for things like forms.py and views.py, it's best to use relative
imports for the models.py within the same app.
from .models import Object1
On Wednesday, February 6, 2013 7:22:19 PM UTC-7, frocco wrote:
>
> I found the answer.
> in my app directory called checkout, I also have a checkout.
I found the answer.
in my app directory called checkout, I also have a checkout.py file.
from checkout.models import Order in views.py had to be changed to from
models import Order
On Wednesday, February 6, 2013 3:02:57 PM UTC-5, Brad Pitcher wrote:
>
> On Wed, 2013-02-06 at 11:49 -0800, frocco w
On Wed, 2013-02-06 at 11:49 -0800, frocco wrote:
> Line 22 does not make any sense to me as to why it is failing.
> If I remove receipt, it runs fine
It can be surprising sometimes what code can cause other code to get
imported and run. My guess is, in trying to find your url route there,
Django l
Line 22 does not make any sense to me as to why it is failing.
If I remove receipt, it runs fine
On Wednesday, February 6, 2013 1:31:59 PM UTC-5, frocco wrote:
>
> Hello,
>
> What is the best way to track down these types of errors?
>
> in ntw.urls I have: (r'^checkout/', include('checkout.urls'))
On Wed, 2013-02-06 at 10:31 -0800, frocco wrote:
> Exception Location:C:\ndsutil\Menus\CTD-NDSUser\PycharmProjects\ntw
> \checkout\views.py in , line 5
Django gives you the line in the file where the error occurs so you
don't need to track it down ;-)
It's probably failing when you try to import s
Hello,
What is the best way to track down these types of errors?
in ntw.urls I have: (r'^checkout/', include('checkout.urls')),
in checkout I have:
urlpatterns = patterns('checkout.views',
#(r'^$', 'show_checkout', {'template_name': 'checkout/checkout.html' },
'checkout'),
(r'^receipt/$
6 matches
Mail list logo