mysql_config not found

2017-06-22 Thread potalottt
iam trying to get my database running... i have installed mysql at another user but for all users i have searched my whole harddisk but cannot find a mysql_config file when i build mysqlclient i get the following error pot@potgod:~/.cache/pip/mysqlclient-1.3.10$ python setup.py build sh: 1:

Re: Model with mix of timezone aware and naive datetimes?

2017-06-22 Thread Melvyn Sopacua
On Thursday 22 June 2017 15:19:18 Antonis Christofides wrote: > BTW, your decision to use a naive time for departure and arrival is > going to give you headaches unless you can be absolutely certain that > you will never have a departure or arrival that occurs during the > ambiguous hour during

Re: [OT] Has someone tweaked the mailing list defaults?

2017-06-22 Thread Mike Dewhirst
Thank you Karol. I need somewhere to report my muscle-memory is a bug ... M On 23/06/2017 3:19 AM, Karol Bujaček wrote: On 06/22/2017 03:15 PM, Mike Dewhirst wrote: It appears that this list no longer has a Reply to: django-users@googlegroups.com Why is it so? Thanks Mike Dear Mike,

Django backend powered by Firebase

2017-06-22 Thread Maitreya Verma
I want to make a chat application for android. I wish to use Firebase to send data to mobiles. Data to be sent to mobile via Firebase will be decided by Django back-end. Also, if a message is sent via mobile, then it should first come to django back-end and then go to the user for which the

Re: Need to connect to django test database from out side of django(celery worker)

2017-06-22 Thread sarvi
I do have and use eager = True for local developer testing, environment. And I have been able to write test cases and they work in eager mode, fine. However, I do have a CI test environment, where I would like to be able to run these same test suites with real asynchronous worker processes. To

Re: Need to connect to django test database from out side of django(celery worker)

2017-06-22 Thread Avraham Serour
Any special reason you are not using eager=true for celery under test? On Jun 22, 2017 7:17 PM, "sarvi" wrote: > > Can someone help me with how can I get my celery worker process(standalone > app outside of djanog) to talk to a django test database ? > > I am trying to test

Re: Legitimate way to allow uploading of folders

2017-06-22 Thread Avraham Serour
The server can accept files, the frontend may allow the user to select a folder and send multiple files On Jun 22, 2017 8:32 PM, "Mandeep Tondak" wrote: > As per my experience we can not upload folder but we can upload zip folder > to server. You can unzip that folder and

Re: Legitimate way to allow uploading of folders

2017-06-22 Thread Mandeep Tondak
As per my experience we can not upload folder but we can upload zip folder to server. You can unzip that folder and read all file and save to db. On Jun 22, 2017 10:41 PM, "ranvir singh" wrote: > On Thursday, June 22, 2017 at 9:54:41 PM UTC+5:30, mandeep444 wrote: >>

Re: [OT] Has someone tweaked the mailing list defaults?

2017-06-22 Thread Karol Bujaček
On 06/22/2017 03:15 PM, Mike Dewhirst wrote: It appears that this list no longer has a Reply to: django-users@googlegroups.com Why is it so? Thanks Mike Dear Mike, It has. According to the headers in your email, you are using Thunderbird 52.2.0, right? And… that’s a feature. /

Re: Legitimate way to allow uploading of folders

2017-06-22 Thread ranvir singh
On Thursday, June 22, 2017 at 9:54:41 PM UTC+5:30, mandeep444 wrote: > > You can use zip folder for that. > > Are you saying that we allow only zip files to be uploaded by the user. -- --- Ranvir Singh https://ranvirsinghprojects.wordpress.com https://github.com/singh1114 -- You received

Re: Legitimate way to allow uploading of folders

2017-06-22 Thread Mandeep Tondak
You can use zip folder for that. On Jun 22, 2017 8:35 PM, "ranvir singh" wrote: > Hell there, > > I am an intermediate user of Django and have been using this since last > summer. Recently I encountered a situation in which I wanted to make an app > which allows the

Need to connect to django test database from out side of django(celery worker)

2017-06-22 Thread sarvi
Can someone help me with how can I get my celery worker process(standalone app outside of djanog) to talk to a django test database ? I am trying to test a celery/django app. I plan on starting the celery worker process with a custom TestRunner. So that the worker process starts after the

Legitimate way to allow uploading of folders

2017-06-22 Thread ranvir singh
Hell there, I am an intermediate user of Django and have been using this since last summer. Recently I encountered a situation in which I wanted to make an app which allows the user to upload a folder. I have already set up the views and template and it is working for a single file. I know

Has someone tweaked the mailing list defaults?

2017-06-22 Thread Mike Dewhirst
It appears that this list no longer has a Reply to: django-users@googlegroups.com Why is it so? Thanks Mike -- 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

Re: Model with mix of timezone aware and naive datetimes?

2017-06-22 Thread Antonis Christofides
Hello, I don't believe that the warning has to do with your mixing of naive and aware fields in the same model. More likely the problem is elsewhere in your code. XXX.timestamp is aware, and somehow your code provides it with naive data (irrespective of what happens in the other field). BTW,

Re: Model with mix of timezone aware and naive datetimes?

2017-06-22 Thread Александр Христюхин (roboslone)
Why don't you store all your time as tz-aware and let views decide how to display them? > On 22 Jun 2017, at 05:49, Chris Beck wrote: > > I a model that requires both timezone aware and naive datetimes. To be > specific, I am modelling a travel segment where the standard

yielding chunked pdf by using StreamingHttpResponse

2017-06-22 Thread Paweł Stępak
Hi, I asked question regarding StreamingHttpResponse but haven't got answer, maybe here I get some help I described problem in stackoverflow: https://stackoverflow.com/questions/44695391/yielding-chunked-pdf-by-using-streaminghttpresponse Kind regards, Paweł -- You received this message

yielding chunked pdf by using StreamingHttpResponse

2017-06-22 Thread Paweł Stępak
Hi, I asked question in terms of StreamingHttpResponse but haven't got answer yet, maybe here I get some help here I described problem at stackoverflow: https://stackoverflow.com/questions/44695391/yielding-chunked-pdf-by-using-streaminghttpresponse Kind regards, Pawel -- You received this

Model with mix of timezone aware and naive datetimes?

2017-06-22 Thread Chris Beck
I a model that requires both timezone aware and naive datetimes. To be specific, I am modelling a travel segment where the standard for departure and arrival is to always use current local time, regardless of tz/dst/ as well as an approved_on field that should have a tz. Is there anyway to

Re: Error running ML Code on Django

2017-06-22 Thread A.S. Khangura
On Thu, Jun 22, 2017 at 12:27 PM, A.S. Khangura wrote: > Here is traceback: http://dpaste.com/1FPN16G Although I found that one is not able to load any data on runtime using pickle or joblib in Django. Is there any way to load pickle and joblib in Django? -- Thanks

Re: model choice field

2017-06-22 Thread Daniel Roseman
On Thursday, 22 June 2017 09:09:24 UTC+1, shahab emami wrote: > > hello > > i have a model choice field like this: > > LEVEL_CHOICES = [ >> ('1', 'one'), >> ('2', 'two'), >> ('3', 'three'), >> ] >> >> but when i select from database and say: > > > {{object.level}} > >

model choice field

2017-06-22 Thread shahab emami
hello i have a model choice field like this: LEVEL_CHOICES = [ > ('1', 'one'), > ('2', 'two'), > ('3', 'three'), > ] > > but when i select from database and say: {{object.level}} it shows me 1 or 2 or 3 but i wanted to be one or two or three how can i do that? i

Error running ML Code on Django

2017-06-22 Thread A.S. Khangura
I am trying to run a function from views.py which carries some Machine-Learning code. While I am loading ML model using Joblib from sklearn It throws error related to tfidf. Here is traceback: http://dpaste.com/1FPN16G -- Thanks Arshpreet Singh Python Developer Web Development/Data