Hi Emanuel,
That syntax error is getting raised from here:
https://github.com/django/django/blob/master/django/apps/registry.py#L89
To check the validity of that syntax, I created a file with the following
code:
```
class AppLabel(object):
def __init__(self):
self.label = 'herring'
app_config = AppLabel()
if True:
raise Exception(
"Application labels aren't unique, "
"duplicates: %s" % app_config.label)
```
And ran it. It did not raise a syntax error. Could you try saving that code
to a file, naming it testsyntax.py and then running it with
C:\Users\LENOVO> python testsyntax.py
I'm running on OSx. I don't know why the syntax should fail in one case and
succeed in the other, but it is worth a try.
-- Andrew Farrell
On Thu, Dec 3, 2015 at 7:56 AM, Emmanuel Olodun <[email protected]>
wrote:
> Microsoft Windows [Version 6.1.7601]
> Copyright (c) 2009 Microsoft Corporation. All rights reserved.
>
> C:\Users\LENOVO>django-admin.py
> Traceback (most recent call last):
> File "C:\Python27\Scripts\django-admin.py", line 2, in <module>
> from django.core import management
> File "C:\Python27\lib\site-packages\django\core\management\__init__.py",
> line
> 10, in <module>
> from django.apps import apps
> File "C:\Python27\lib\site-packages\django\apps\__init__.py", line 2, in
> <modu
> le>
> from .registry import apps # NOQA
> File "C:\Python27\lib\site-packages\django\apps\registry.py", line 89
> duplicates: %s" % app_config.label)
> ^
> SyntaxError: invalid syntax
>
> C:\Users\LENOVO>
>
> this is th error message i've been getting for like 2weeks now pls
> somebody help!!!!
>
> --
> 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 http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/2cb7ed54-35ab-4b0c-8d4d-5fb88071d097%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/2cb7ed54-35ab-4b0c-8d4d-5fb88071d097%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/CA%2By5TLZiX8pX8Tyj8Y2Qgrh6ap_N7g2UsUC4Y2EpGEuVQ5TNcA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.