added 'smart_selects' app in settings.py and put a comma at the end.

Kind Regards,

 Satheesh Eppalapelli



On Fri, Jul 6, 2018 at 5:57 PM, vimal devapp raj <vimaldev...@gmail.com>
wrote:

> Hi Team,
>
> I am using django smart select with django version : 1.6.1
>
> django-smart-selects (1.5.4) version
>
> *ERROR : ImportError: No module named apps*
>
> models.py
> ========
> from smart_selects.db_fields import ChainedForeignKey
>
> class Continent(models.Model):
>     name = models.CharField(max_length=255)
>
> class Country(models.Model):
>     continent = models.ForeignKey(Continent, on_delete=models.CASCADE)
>     name = models.CharField(max_length=255)
>
> class Location(models.Model):
>     continent = models.ForeignKey(Continent, on_delete=models.CASCADE)
>     country = ChainedForeignKey(
>         'Country',
>         chained_field="continent",
>         chained_model_field="continent",
>         show_all=False,
>         auto_choose=True
>     )
>     city = models.CharField(max_length=50)
>     street = models.CharField(max_length=100)
>
> settings.py:
> =========
> added 'smart_selects' to installed apps
>
> Please help me in fixing the above mentioned error. Thanks in advance.
>
> --
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@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/CAOkV-_ibNt1d%3DR22UqX9xGYjQpNk2v3UBj0dN3v-
> zoRiL3Eo7A%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAOkV-_ibNt1d%3DR22UqX9xGYjQpNk2v3UBj0dN3v-zoRiL3Eo7A%40mail.gmail.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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/CA%2BYfhA9Mp_ht3AWp5DxJccFQ24vypn8i8XKM7SiKPkRbx2YA8w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
  • Smart Selects vimal devapp raj
    • Re: Smart Selects Satheesh Eppalapelli

Reply via email to