Hi,
I am dev in django at last 4 years, i missed ./manage.py syncdb,
Delete all tables from databases (MariaDB, PostgreSQL) command line from
DB, and run python manage.py migrate always same error
*python manage.py migrate*
django.db.utils.ProgrammingError: (1146, "Table
'dashaboard_web.did_d
On Fri, Jul 29, 2016 at 07:02:44AM -0700, Jorge Cadena wrote:
> Hi,
>
> I am dev in django at last 4 years, i missed ./manage.py syncdb,
>
> Delete all tables from databases (MariaDB, PostgreSQL) command line from
> DB, and run python manage.py migrate always same error
>
> *python manage.py m
same error, in mariaDB, postgresql, rigth now in sqlite3
El viernes, 29 de julio de 2016, 9:07:33 (UTC-5), Jorge Cadena escribió:
>
> Hi,
>
> I am dev in django at last 4 years, i missed ./manage.py syncdb,
>
> Delete all tables from databases (MariaDB, PostgreSQL) command line from
> DB, and r
Traceback (most recent call last):
File "manage.py", line 10, in
execute_from_command_line(sys.argv)
File
"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
line 353, in execute_from_command_line
utility.execute()
File
"/usr/local/lib/python2.7/dist-pac
On Fri, Jul 29, 2016, Jorge Cadena wrote:
>I am dev in django at last 4 years, i missed ./manage.py syncdb,
Please change your email subject to something more polite.
You have a good chance to get expert help here from people, including perhaps
people who helped create the Django migrations sy
On Fri, Jul 29, 2016 at 08:01:05AM -0700, Jorge Cadena wrote:
>
>
> Traceback (most recent call last):
> File "manage.py", line 10, in
> execute_from_command_line(sys.argv)
> File
> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
> line 353, in execute_from
File "/home/ariatel_web/dashboard.ariatel.com.co/apps/did/forms.py", line
12, in BuySearchForm
country = forms.ChoiceField(choices=[ (d.country_name, d.country_name)
for d in DidCountry.objects.filter(is_active=True) ], required=False)
Theres your problem, you are trying to query the databas
In /home/ariatel_web/dashboard.ariatel.com.co/apps/did/forms.py, replacing
country = forms.ChoiceField(choices=[ (d.country_name,
d.country_name) for d in DidCountry.objects.filter(is_active=True) ]
with
country = forms.ChoiceField(choices=lambda: [ (d.country_name,
d.country_name) for d i
Excellent, thanks
This method i use from django 1.4, never have problem.
2016-07-29 11:36 GMT-05:00 ludovic coues :
> In /home/ariatel_web/dashboard.ariatel.com.co/apps/did/forms.py, replacing
> country = forms.ChoiceField(choices=[ (d.country_name,
> d.country_name) for d in DidCountry.obj
Hey Fellow Django Developers,
Want to share a new Django weekly newsletter. Latest issue being 3rd
http://djangoweekly.com/newsletter/no/3/
Have a look.
Thanks,
Ankur
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this
10 matches
Mail list logo