fonoempresa / django-countries Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/django-countries
Automatically exported from code.google.com/p/django-countries
I'd like to get in touch with the author regarding including this in
another django project. Could you post an email address where I can reach you?
Thanks
Original issue reported on code.google.com by [email protected]
on 1 Sep 2007 at 6:12
I have added a "provinces" class to the model for the Canadian Provinces.
Would you like to include
this in the project?
What I have done is rather simplistic, but it may be valuable.
Original issue reported on code.google.com by [email protected]
on 13 Jan 2008 at 4:59
Attachments:
Attached is a setup.py file I've created for the project (to allow
pip/easy_install to install django-countries automatically).
Please add it to the repo.
Original issue reported on code.google.com by erik%[email protected]
on 6 Feb 2010 at 7:40
Attachments:
How should I localize this, if I would like to see the country names in my
language?
sorry for creating a ticket for this, but no feedback address provided...
Original issue reported on code.google.com by pihentagy
on 4 Jul 2008 at 4:21
What steps will reproduce the problem?
1. Download django-countries. i have copied the countries folder under the
site syncdb and created table country and table usstate
2. In settings.py COUNTRIES_FLAG_PATH = 'E:/prj/static_media/flags/%s.png'
3. I am trying to display in profile form and using django-profile. In
edit_profile.html {{ user_profile.country.iso|iso_flag }} Invalid filter:
'iso_flag'
What is the expected output? What do you see instead?
A dropdown with all countries
What version of the product are you using? On what operating system?
Django1.0
Please provide any additional information below.
Shall i need to create a ModelForm and need to create a ModelForm instance
and render to template
Original issue reported on code.google.com by [email protected]
on 19 Jan 2010 at 8:02
What steps will reproduce the problem?
1. "countries" exist as a directory in my project root
2. settings.py's INSTALLED_APPS tuple contains "myprojectname.countries"
3. I run manage.py syncdb
And this is the error I get in my command prompt console:
File "C:\Python25\Lib\site-packages\django\core\management\__init__.py",
line 272, in execute_manager
utility.execute()
File "C:\Python25\Lib\site-packages\django\core\management\__init__.py",
line 219, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "C:\Python25\Lib\site-packages\django\core\management\base.py", line
72, in run_from_argv
self.execute(*args, **options.__dict__)
File "C:\Python25\Lib\site-packages\django\core\management\base.py", line
86, in execute
output = self.handle(*args, **options)
File "C:\Python25\Lib\site-packages\django\core\management\base.py", line
168, in handle
return self.handle_noargs(**options)
File
"C:\Python25\Lib\site-packages\django\core\management\commands\syncdb.py",
line 97, in handle_noargs
emit_post_sync_signal(created_models, verbosity, interactive)
File "C:\Python25\Lib\site-packages\django\core\management\sql.py", line
491, in emit_post_sync_signal
verbosity=verbosity, interactive=interactive)
File "C:\Python25\Lib\site-packages\django\dispatch\dispatcher.py", line
360, in send
**named
File "C:\Python25\Lib\site-packages\django\dispatch\robustapply.py", line
47, in robustApply
return receiver(*arguments, **named)
File "C:\Python25\Lib\site-packages\django\contrib\auth\management.py",
line 29, in create_permissions
defaults={'name': name, 'content_type': ctype})
File "C:\Python25\Lib\site-packages\django\db\models\manager.py", line
85, in get_or_create
return self.get_query_set().get_or_create(**kwargs)
File "C:\Python25\Lib\site-packages\django\db\models\query.py", line 229,
in get_or_create
return self.get(**kwargs), False
File "C:\Python25\Lib\site-packages\django\db\models\query.py", line 192,
in get
num = len(clone)
File "C:\Python25\Lib\site-packages\django\db\models\query.py", line 53,
in __len__
self._result_cache = list(self.iterator())
File "C:\Python25\Lib\site-packages\django\db\models\query.py", line 162,
in iterator
for row in self.query.results_iter():
File "C:\Python25\Lib\site-packages\django\db\models\sql\query.py", line
200, in results_iter
for rows in self.execute_sql(MULTI):
File "C:\Python25\Lib\site-packages\django\db\models\sql\query.py", line
1466, in execute_sql
cursor.execute(sql, params)
File "C:\Python25\Lib\site-packages\django\db\backends\util.py", line 18,
in execute
return self.cursor.execute(sql, params)
psycopg2.InternalError: current transaction is aborted, commands ignored
until end of transaction block
Any idea why?
I checked my postgresql log file and I see an error that says:
<2008-06-04 01:39:12 EDT>NOTICE: CREATE TABLE will create implicit
sequence "countries_usstate_id_seq" for serial column "countries_usstate.id"
<2008-06-04 01:39:12 EDT>NOTICE: CREATE TABLE / PRIMARY KEY will create
implicit index "countries_usstate_pkey" for table "countries_usstate"
<2008-06-04 01:39:31 EDT>ERROR: duplicate key value violates unique
constraint "auth_permission_pkey"
<2008-06-04 01:39:31 EDT>STATEMENT: INSERT INTO "auth_permission" ("name",
"content_type_id", "codename") VALUES (E'Can add user profile', 13,
E'add_userprofile')
<2008-06-04 01:39:31 EDT>ERROR: current transaction is aborted, commands
ignored until end of transaction block
Any idea how I can resolve this?
Original issue reported on code.google.com by [email protected]
on 4 Jun 2008 at 6:23
Hello, I like your country list very much. I have used it for quite some
time. I have even created currency mapping for my exchange rate demo
application at http://lurkingideas.net/worldmap/demo/exchange/. I'm going
to release django-currencies soon, which will depend on your django-countries.
I have found the list of countries has changed since 2007-08-20. I would
like to see the list updated so anyone can download the fresh version. I'm
attaching an updated version of initial_data.xml. I hope you find it okay
and will replace the upstream version with this fresh one! Thank you very much.
BTW, do you plan to update the list on a regular basis? Is django-countries
still "the" list of countries, or do you know about another django
application which replaces this?
Original issue reported on code.google.com by [email protected]
on 20 Oct 2008 at 9:29
Attachments:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.