Comments (5)
Can you provide more details? It might be app bug or a Django issue after all.
from django-geoip.
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.
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.
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.
Hi @coagulant
I have checked, all is Ok now. Thank you very much for the help.
from django-geoip.
Related Issues (20)
- get_by_ip_range example returns RelatedManager HOT 2
- progressbar==2.3dev is not on PyPI HOT 7
- Duplicate regions! HOT 8
- Migration error in Django 1.7 / Ошибка при выполнении миграций в Django 1.7 HOT 8
- Ошибка в Django 1.7.2 python manage.py geoip_update HOT 4
- Ошибка при выполнении geoip_update / Error with run geoip_update command HOT 2
- "City object" instead of City.name - need __str__ methods in models HOT 2
- Error on 'geoip_update' HOT 1
- Не работает management-команда `geoip_update`
- Time_zone info HOT 2
- Support IP2Location LITE Database HOT 1
- "psycopg2.DatabaseError: SSL SYSCALL error: EOF detected" when running geoip_update HOT 2
- Error at CustomLocation class HOT 1
- 'super' object has no attribute 'get_query_set' HOT 1
- geoip_update takes too much resources HOT 1
- Bulk insert of IpRange leads to out of memory
- AttributeError: type object 'BaseCommand' has no attribute 'option_list' error HOT 3
- geoip_update management command failed in django 1.11.8
- Python3 issue HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-geoip.