dimanche 3 mai 2020

invalid syntax in views.py in Django

The code was working. However, I got the error suddenly that can be seen in the image invalid_syntax_error . Even though the name of view and the name of function are same(in this case "addArticle"), I got this error. How can I fix that issue?

Here is what my urls.py contains;

from django.contrib import admin
from django.urls import path
from . import views



app_name = "article"

urlpatterns = [
     path('dashboard/',views.dashboard,name = "dashboard"),
     path('addarticle/',views.addArticle,name = "addarticle"),]



Aucun commentaire:

Enregistrer un commentaire