Re: Scaling Django

2016-02-06 Thread Dexter T.
Hi Sergiy, are you referring to my post or to the OP? On Sunday, February 7, 2016 at 6:03:11 AM UTC+8, Sergiy Khohlov wrote: > > Print database structure. > Check possibility of DB normalization. > You might have meant "denormalization" here (?), especially when operating at such scale. We do

Re: Django formtools wizard produces blank page (No error returned)

2016-02-06 Thread Martín Torre Castro
Solved. Silly error. The name for the template function in the wizard should be *get_template_names* and it was *get_templates_name*. Thank you anyway!!! On 2 February 2016 at 10:17, Martín Torre Castro < martin.torre.cas...@gmail.com> wrote: > Yes, those two templates are both entirely the

Re: django現在インストールエラーにつきまして

2016-02-06 Thread Yoong Kang Lim
(日本語で話すのが久しぶりだけど... 笑) "mysite" の中に"settings.py"と"__init__.py"がありますか?その二つのファイルがなければ、importするとerrorが起こります。 On Saturday, February 6, 2016 at 11:56:13 PM UTC+11, makamaka32 wrote: > > お世話になります。 > 現在djangoを学習しようとしている者ですがインストール時にエラーが起こり先に進めないようになっております。 > > easy_installにてdjangoをダウンロードし > python

Re: django現在インストールエラーにつきまして

2016-02-06 Thread Sergiy Khohlov
look like you have used pip or easy_install for downloading django Verify that django is ok python -c "import django; print(django.__path__)" After this django-admin startproject mysite this command creates mysite dir and settings.py of course Many thanks, Serge +380 636150445

Re: Scaling Django

2016-02-06 Thread Sergiy Khohlov
Print database structure. Check possibility of DB normalization. 100 GB (my "record" is 452 GB )is not so high but this size requires some attention. (Look like you Mysql used only one db file: try to set table per file. Check index size , and verify that indexes are working corectly) Review

Re: Add model item with AJAX pop up

2016-02-06 Thread guettli
The result should look like the "create user" modal dialog on this page: https://jqueryui.com/dialog/#modal-form Any idea how to get this done? Up to now I use the usual pattern: - redirect after post, if the submitted data is valid. - show form again with error message if the data is not

Re: reading CSV file with non ASCII characters

2016-02-06 Thread paul . hermeneutic
On Sat, Feb 6, 2016 at 5:38 AM, Tim Chase wrote: > On 2016-02-06 03:06, elcaiaimar wrote: >> import unicodecsv as csv >> >> csvfile=open("mediosdigitales.csv") > >> > reader = csv.DictReader(open("file.csv", "rb")) > >> reader = csv.reader(csvfile,

django social auth

2016-02-06 Thread ahmed waqas Nasir
i am new in django i am trying to add thirdparty verification using social auth after configuration when i run migrations i got following error InDjango110Warning: SubfieldBase has been deprecated. Use Field.from_db_value i stead. RemovedInDjango110Warning) i know the reason of this error

Scaling Django

2016-02-06 Thread Dexter T.
Lots of great replies already. I also want to add a few (random) things ... - have you clearly defined and isolated what issue(s) are you facing? - you mentioned using DRF in a service, with a large JSON reponse taking seconds to finish, how did you troubleshoot/profile this? Seconds to process

Best free audio/video (crossbrowser) player for website

2016-02-06 Thread ylativ oknesyl
Projekktor not suitable (tasted) -- 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

Re: Django and process uploading file

2016-02-06 Thread ylativ oknesyl
Thanks С уважением В. Лысенко 2016-02-06 16:02 GMT+02:00 Tino Fischer : > Simplest way to change the cursor with javascript: > > document.body.style.cursor = 'wait'; > or > document.body.style.cursor = 'progress'; > > > When done loading: > > document.body.style.cursor =

Django and process uploading file

2016-02-06 Thread Tino Fischer
Simplest way to change the cursor with javascript: document.body.style.cursor = 'wait'; or document.body.style.cursor = 'progress'; When done loading: document.body.style.cursor = 'auto'; -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Add model item with AJAX pop up

2016-02-06 Thread guettli
I use django-select2 for easy ForeignKey picking. Works nice. But how can I add a new item in the ForeignKey table? I would like to have a big [+] button near the select2 field and then a (ajax) modal dialog should open (like in the admin

django現在インストールエラーにつきまして

2016-02-06 Thread makamaka32
お世話になります。 現在djangoを学習しようとしている者ですがインストール時にエラーが起こり先に進めないようになっております。 easy_installにてdjangoをダウンロードし python manage.py startapp myapp まで進むと importError: No module named mysite.settings と表示されます。 こういった場合どのように対処すればよろしいでしょうか? 同じフォルダの中にはsettings.pyは存在するのですが。 誠に申し訳ございません。 回答どうかよろしくお願いいたします。 -- You

Re: reading CSV file with non ASCII characters

2016-02-06 Thread Tim Chase
On 2016-02-06 03:06, elcaiaimar wrote: > import unicodecsv as csv > > csvfile=open("mediosdigitales.csv") > > reader = csv.DictReader(open("file.csv", "rb")) > reader = csv.reader(csvfile, encoding='utf-8', delimiter=',') > for row in reader: > titulo=row['titulo'] > pais=row['pais'] >

Re: reading CSV file with non ASCII characters

2016-02-06 Thread elcaiaimar
Thank you for your quick answers. I've tried what you recommended me. My code is like that now: import unicodecsv as csv csvfile=open("mediosdigitales.csv") reader = csv.reader(csvfile, encoding='utf-8', delimiter=',') for row in reader: titulo=row['titulo'] pais=row['pais'] print