error in coding

16 views
Skip to first unread message

Rohit Sharma

unread,
Jul 25, 2018, 8:15:49 AM7/25/18
to Django users
I am very new to Django. I have started a project and created my first app but whenever i start editing the app i always get this error. i have attached the screenshot of the error.
please help me out in a simple way.



error.jpg

Julio Biason

unread,
Jul 25, 2018, 8:21:45 AM7/25/18
to django...@googlegroups.com
Hi Rohit,

The problem is that you have `urlpatterns = ` (an assignment without value) which is invalid Python code. Either you need to finish the line (add the value that should be assigned to urlpatterns) or add a "\" to mark that the line continues in the line below. (As a last resort, you can remove the file _if you're not using it_, so Django won't try to import it and generate the error).

On Wed, Jul 25, 2018 at 9:10 AM, Rohit Sharma <rohitj...@gmail.com> wrote:
I am very new to Django. I have started a project and created my first app but whenever i start editing the app i always get this error. i have attached the screenshot of the error.
please help me out in a simple way.



--
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 django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
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/9004ed7c-6b33-4b06-8a2a-d733e3b14e0f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Julio Biason, Sofware Engineer
AZION  |  Deliver. Accelerate. Protect.
Office: +55 51 3083 8101  |  Mobile: +55 51 99907 0554

mounikesh mintu

unread,
Jul 25, 2018, 8:24:23 AM7/25/18
to django...@googlegroups.com
post your urls patterns 

On Wed, Jul 25, 2018 at 5:40 PM, Rohit Sharma <rohitj...@gmail.com> wrote:
I am very new to Django. I have started a project and created my first app but whenever i start editing the app i always get this error. i have attached the screenshot of the error.
please help me out in a simple way.



Neil Haria

unread,
Jul 25, 2018, 8:24:28 AM7/25/18
to django...@googlegroups.com
check the urls.py file, it might be empty or you have not added any urls in that file

On Wed, Jul 25, 2018 at 5:45 PM Rohit Sharma <rohitj...@gmail.com> wrote:
I am very new to Django. I have started a project and created my first app but whenever i start editing the app i always get this error. i have attached the screenshot of the error.
please help me out in a simple way.



--
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 django-users...@googlegroups.com.
--
Regards, 
Neil Haria



 

The information in this e-mail and any attachments hereto, contain information which may be privileged and/or confidential. It is intended only for certain recipients, as determined by the sender. Copying and distribution of this communication by parties other than those intended recipients is strictly prohibited. If you receive this email in error, please notify the sender immediately and thereafter delete the message plus attachments and destroy any hard-copies that might have been produced or generated. Receipt by anyone other than the proper recipient is not a waiver of any applicable privilege or any other legal rights, including, but not limited to, trade secret and/or confidentiality. (c) Think Analytics India Private Limited

 

 

Reply all
Reply to author
Forward
0 new messages