Giter VIP home page Giter VIP logo

Comments (5)

coagulant avatar coagulant commented on August 11, 2024

Can you provide more details? It might be app bug or a Django issue after all.

from django-geoip.

z0rr0 avatar z0rr0 commented on August 11, 2024

Hi,
I updated Django 1.7 and django-geoip to the latest versions and I only added django_geoip to INSTALLED_APPS, migrate command returns following error:

python manage.py migrate
Operations to perform:
  Synchronize unmigrated apps: widget_tweaks, debug_toolbar, django_geoip
  Apply all migrations: django_geoip, auth, sessions, contenttypes, admin
Synchronizing apps without migrations:
  Creating tables...
    Creating table django_geoip_country
    Creating table django_geoip_region
    Creating table django_geoip_city
    Creating table django_geoip_iprange
  Installing custom SQL...
  Installing indexes...
Running migrations:
  Applying django_geoip.0001_initial...Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/home/user/env/lib/python3.4/site-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
    utility.execute()
  File "/home/user/env/lib/python3.4/site-packages/django/core/management/__init__.py", line 377, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/user/env/lib/python3.4/site-packages/django/core/management/base.py", line 288, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/home/user/env/lib/python3.4/site-packages/django/core/management/base.py", line 338, in execute
    output = self.handle(*args, **options)
  File "/home/user/env/lib/python3.4/site-packages/django/core/management/commands/migrate.py", line 160, in handle
    executor.migrate(targets, plan, fake=options.get("fake", False))
  File "/home/user/env/lib/python3.4/site-packages/django/db/migrations/executor.py", line 63, in migrate
    self.apply_migration(migration, fake=fake)
  File "/home/user/env/lib/python3.4/site-packages/django/db/migrations/executor.py", line 91, in apply_migration
    if self.detect_soft_applied(migration):
  File "/home/user/env/lib/python3.4/site-packages/django/db/migrations/executor.py", line 135, in detect_soft_applied
    apps = project_state.render()
  File "/home/user/env/lib/python3.4/site-packages/django/db/migrations/state.py", line 57, in render
    self.apps = Apps([AppConfigStub(label) for label in sorted(self.real_apps + list(app_labels))])
  File "/home/user/env/lib/python3.4/site-packages/django/apps/registry.py", line 56, in __init__
    self.populate(installed_apps)
  File "/home/user/env/lib/python3.4/site-packages/django/apps/registry.py", line 89, in populate
    "duplicates: %s" % app_config.label)
django.core.exceptions.ImproperlyConfigured: Application labels aren't unique, duplicates: django_geoip

Tables city, country, iprage, region were created in the database. Possibly, the root cause can be related with https://docs.djangoproject.com/en/1.7/ref/applications/#configuring-applications

from django-geoip.

coagulant avatar coagulant commented on August 11, 2024

This error Application labels aren't unique, duplicates: django_geoip might suggest you have misconfigured applications. Can you show your settings.py?

from django-geoip.

coagulant avatar coagulant commented on August 11, 2024

Btw, thanks to your report I've fixed a packaging issue, please upgrade to 0.5.1 (might fix the issue, but not sure)

from django-geoip.

z0rr0 avatar z0rr0 commented on August 11, 2024

Hi @coagulant
I have checked, all is Ok now. Thank you very much for the help.

from django-geoip.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.