I have the following message when I try to use reverse or reverse_lazy:

The included URLconf 'ph.urls' does not appear to have any patterns in it. 
If you see valid patterns in the file then the issue is probably caused by 
a circular import 


*When I use the urls (without using reverse or reverse lazy) is working 
with no issue. I tried different combination of urls the same results*


*What I'm doing wrong ?*

ph is the project. In the project I include the urls for the application:

    url(r'^account/', include('accounts.urls', namespace='accounts')),
    url(r'^companies/', include('companies.urls', namespace='companies')),
    url(r'^products/', include('products.urls', namespace='products')),
    url(r'^admin/', admin.site.urls)



The app involved:

1)accounts:

from django.conf.urls import url from .views import AccountDetailView

urlpatterns = [
     url(r'$', AccountDetailView.as_view(), name='dashboard'),



2) products:

class ProductCreateView(AccountMixin, CreateView):
    model = Product
    form_class = ProductModelForm
    url = reverse_lazy('accounts:dashboard')
    url2 = reverse_lazy('products:list')
    #print(url)
    template_name = 'accounts/product_form.html'
    #success_url = reverse_lazy('accounts:product_detail')



-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e7355569-cd47-4ad8-8f22-68d63a677010%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to