Re: formset has_changed always return true.

2019-06-11 Thread Gil Obradors
Can you paste codes? Forms.py and views.py El dc., 12 de juny 2019, 1:24, Mei B va escriure: > Yes I am already instantiated the form and check has_changed after. > > On Tuesday, June 11, 2019 at 8:59:46 AM UTC-7, Gil Obradors wrote: >> >> Hi! >> Have you instanced first de form? >> Maybe this

Re: mysqlclient installation error

2019-06-11 Thread Raja Sekar Sampath
Hi Emmanuel Simeon, It would be great if you share the download link to Visual Build Tools and MySQL C++ Connector On Tue, 11 Jun 2019 at 21:36, Emmanuel Simeon wrote: > Had same issue setting up my current Project, > > But my workaround after so much effort was this: > > 1. Install Visual

Re: --fake-initial does not follow PostgreSQL search_path schema list

2019-06-11 Thread Axel Rau
This worked with Django 2.1. Seems to be a bug in 2.2 Axel > Am 08.06.2019 um 21:50 schrieb Axel Rau : > > The database user sets a search_path to a,b > In schema b exists a set of tables corresponding to models and > inital_migration. > Running > migrate --fake-initial app

Module lock error when starting development server

2019-06-11 Thread Jonty Needham
Stuck. If anyone has ideas that would be brilliant. Django 2.2, running on Ubuntu 18.04 in a venv $ python manage.py runserver Exception in thread django-main-thread: Traceback (most recent call last): File

Raise concurrent.futures._base.CancelledError when i test django channels websocket

2019-06-11 Thread nima
Hi. I'm using Django channels in server side for a speech to text application. When I test websocket with jmeter(+120 user or thread in 1 second), about half of requests fail. Here is my code: class Consumer(AsyncWebsocketConsumer): def __init__(self, *args, **kwargs):

DRF structure query

2019-06-11 Thread Dave B
Hi, Being fairly new to DRF, I'm just wondering on the best ways of going about stucturing an api which has man endpoints. Basically is there a good reason not to put different categories of endpoints together in different apps, like the ones for user data, ones for app data etc. And then

mysqlclient installation error

2019-06-11 Thread Raja Sekar Sampath
Hi Guys, While installing mysqlclient using pip, getting this error VS C++ Build tool was installed in system and updated the setup tools, still getting this issue.. Any solution for this ? My Environment : OS : Windows 10 Python : 3.7 Django : 2.2 DB : MariaDB 10.2 -- You received this

Possible bug in python manage.py migrate when changing the field type of a foreign key with a constraint

2019-06-11 Thread Cornelis Poppema
I have two models and a ForeignKey. In this project I'm still using django 1.11 (still busy migrating to python3) but I have reproduced this in django 2.2.2 Models are Call and Client. Call has a ForeignKey to a PositiveIntegerField on Client. I'm changing the type of this field to a

Re: my file uploads missing/deleted

2019-06-11 Thread Joe Reitman
Omar, You need to put the image in your 'static' files directory. On Monday, June 10, 2019 at 2:37:58 PM UTC-5, omar ahmed wrote: > > almost i did all of these instructions > collectstatic - DEBUG = True - install and use whitenoise in my app > the problem is heroku is ephemeral ( that's

Re: mysqlclient installation error

2019-06-11 Thread Desh Deepak
Hi, MySQL client is not available for Django 2.2 and newer version. You can uninstall 2.2 and download older Django version 2.0 for the database connection. Thanks Desh Deepak +917011101001 On Tue, 11 Jun 2019, 19:37 Raja Sekar Sampath, wrote: > Hi Guys, > > While installing mysqlclient using

Re: mysqlclient installation error

2019-06-11 Thread Raja Sekar Sampath
Hi Deepak, Thanks for reply., Is there any alternative for that ? I didn't want to downgrade the django On Tuesday, 11 June 2019 21:02:23 UTC+5:30, Desh Deepak wrote: > > Hi, > MySQL client is not available for Django 2.2 and newer version. > You can uninstall 2.2 and download older Django

Re: mysqlclient installation error

2019-06-11 Thread Emmanuel Simeon
Had same issue setting up my current Project, But my workaround after so much effort was this: 1. Install Visual Build Tools 2. Install the Required MySQL C++ Connector (Better still download MySQL Setup with Workbench and install not Xampp or Wamp) 3. Uninstall Python and use the Web

Module lock error when starting development server

2019-06-11 Thread James Farris
Do you have a venv running in another venv? You could try installing and running gdb https://wiki.python.org/moin/DebuggingWithGdb It may give you more insight. But Deadlocking is essentially one python process clobbering another causing the app to lock up. -- You received this message

Re: my file uploads missing/deleted

2019-06-11 Thread James Farris
He is saying these aren’t static files. It sounds like he uploads them using the Django admin, which of course is like an end user on a client uploading files to the media directory. Since that is the case it sounds like the Dropbox option is the best. Documentation was provided earlier. So

Re: mysqlclient installation error

2019-06-11 Thread Karan Mittal
the method of James works perfectly. I have been using the same with my Django project. On Tue, Jun 11, 2019 at 9:25 PM James Farris wrote: > I have Django 2.2.x running with mysqlclient successfully > > mysql-connector-python==8.0.15 > mysqlclient==1.3.13 > > -- > You received this message

Re: DRF structure query

2019-06-11 Thread Andréas Kühne
Hi, The way we have structured our application is that we have our models and serializers in different apps, but have one app for the api itself. So all of the urls are in the "api/urls.py" file. We have found that this works great for us. However we don't use routers - instead we just use DRF

Re: mysqlclient installation error

2019-06-11 Thread James Farris
I have Django 2.2.x running with mysqlclient successfully mysql-connector-python==8.0.15 mysqlclient==1.3.13 -- 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: formset has_changed always return true.

2019-06-11 Thread Gil Obradors
Hi! Have you instanced first de form? Maybe this code from djano help you from django.http import HttpResponseRedirectfrom django.shortcuts import render from .forms import NameForm def get_name(request): # if this is a POST request we need to process the form data if request.method ==

Unknown column 'boericke_joints.id' in 'field list

2019-06-11 Thread James Farris
If the database was originally created by Django, it would have been built with an ID field. Django is confused because it can’t find that field in the database. If you added ID to the model, did you run python manage.py makemigrations and then python manage.py migrate -- You received this

Re: my file uploads missing/deleted

2019-06-11 Thread omar ahmed
yes James you are right i need to upload images using the Django admin, ... how can i use Dropbox for this issue ? i need a good tutorial On Tuesday, June 11, 2019 at 6:14:10 PM UTC+2, James Farris wrote: > > He is saying these aren’t static files. It sounds like he uploads them > using

Re: mysqlclient installation error

2019-06-11 Thread Tarandeep Singh
How u have done it On Tue, 11 Jun 2019, 21:25 James Farris, wrote: > I have Django 2.2.x running with mysqlclient successfully > > mysql-connector-python==8.0.15 > mysqlclient==1.3.13 > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To

Re: my file uploads missing/deleted

2019-06-11 Thread James Farris
You might try the docs from Dropbox https://www.dropbox.com/developers/documentation/python#overview You can checkout this project for ideas https://github.com/singingwolfboy/django-with-dropbox and here is documentation for django-storages

Re: formset has_changed always return true.

2019-06-11 Thread Mei B
Yes I am already instantiated the form and check has_changed after. On Tuesday, June 11, 2019 at 8:59:46 AM UTC-7, Gil Obradors wrote: > > Hi! > Have you instanced first de form? > Maybe this code from djano help you > > from django.http import HttpResponseRedirectfrom django.shortcuts import >

django runserver + weasyprint + not taking the CSS files or getting css applied on the PDF + but working fine with Apache

2019-06-11 Thread Maurya Allimuthu
Hi All, We are having two server. In one server , - django runs with apache - Weasyprint version 0.40 - PDF is rendered with CSS applied (path is in static folder) In another server, - django runs with runserver - Weasyprint version 0.40 - PDF is rendered *WITHOUT* the CSS