production setup

2020-02-28 Thread Naveen Arora
Hi have a look at this - https://github.com/codingforentrepreneurs/Guides/blob/master/all/Heroku_Django_Deployment_Guide.md Cheers -- 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

Re: production setup

2020-02-28 Thread Naveen Arora
Try implementing it for once. If you face any problem, you can post in this community Regards -- 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

Issue in the API while merging the two data frames

2020-02-28 Thread Devendra reddy
Hi to all, I have two data frames in the python django API.one dataframe we are getting from the query and one data frame we are getting the XL file.how I want map this dataframes.in this equipment name and tag name are common.while merging one tag is missing or it is going to be updated with

Re: About Django performance

2020-02-28 Thread Integr@te System
Hi Freinds, Plz try some search example: https://python-socketio.readthedocs.io/en/latest/intro.html But first let us look at: https://www.djangoproject.com/conduct/ Thank. On Fri, Feb 28, 2020, 19:53 Motaz Hejaze wrote: > What is the type of data ?? > > What is the expected amount to be

Re: Is it possible to extend the model in another application without explicitly changing firs-one?

2020-02-28 Thread Motaz Hejaze
You should understand that extending a model will create a new table with columns existed in parent in addition to new columns you define , so yes you can extend .. On Fri, 28 Feb 2020, 3:03 pm Ol P, wrote: > What are you trying to achieve with this implementation? > > I want to achieve

Re: Python Django Training

2020-02-28 Thread yashwanth .k
Hi, I am also interested in joining. Please add me to the group. On Fri, Feb 21, 2020 at 7:19 PM Isaac Ndutumo wrote: > Hello, I am interested in learning Python with you. Add me > > On Fri, Feb 21, 2020 at 4:42 PM Bharati Nilam > wrote: > >> Hi, >> I also from Hyderabad and I'm also

Re: Python Django Training

2020-02-28 Thread Hal L
add me 在 2020年2月1日星期六 UTC+8下午9:42:52,Srikanth K写道: > > Hi, > > I am from Hyderabad. I am Python Developer by Profession. I am eager take > up any Python , Django Training (online Preferrable or Weekends). Members > who require can contact me or share me there idea. > > Regards, > Srikanth.K >

Re: Is it possible to extend the model in another application without explicitly changing firs-one?

2020-02-28 Thread Ol P
> > What are you trying to achieve with this implementation? I want to achieve modularly and loose coupling. Separate responsibility in other words. and What do you call a extended model ? By extended model, I mean pat of an existing model, that implemented in one place (in out example

Re: Is it possible to extend the model in another application without explicitly changing firs-one?

2020-02-28 Thread Naveen Arora
What are you trying to achieve with this implementation? and What do you call a extended model ? Instance of model1 is accesible in app2, this already means you got your model1 in app2. Curious. On Friday, 28 February 2020 18:20:12 UTC+5:30, Ol P wrote: > > But how to add fields to it? > >

Re: About Django performance

2020-02-28 Thread Motaz Hejaze
What is the type of data ?? What is the expected amount to be transfered by second ? Its not only django , its the server type and the database type .. On Fri, 28 Feb 2020, 1:36 pm Gil Obradors, wrote: > Hi ! > I 'm curious too! > > How much data? > > With CPU and RAM, may be the problem will

Re: Is it possible to extend the model in another application without explicitly changing firs-one?

2020-02-28 Thread Ol P
But how to add fields to it? Where to put what: from appA import model1 class ExtendedModel1(?): ? new_field = models.CharFiled() class Meta: ? On Friday, February 28, 2020 at 2:23:17 PM UTC+2, Naveen Arora wrote: > > Clearly Possible, > Simply import the model first

Re: Project directory management

2020-02-28 Thread Naveen Arora
Hi, from .. import abc is not working ? or somewhat like that. At last sys.path.append() is one of the solutions. Cheers, Naveen Arora On Friday, 28 February 2020 16:38:15 UTC+5:30, Devender Kumar wrote: > > Hi, > BTW it is flask app question. > > dir structure > service >

Re: Image Upload

2020-02-28 Thread Naveen Arora
Hi, Have a look herer - https://www.techiediaries.com/django-rest-image-file-upload-tutorial/ and https://stackoverflow.com/questions/20473572/django-rest-framework-file-upload Cheers On Friday, 28 February 2020 17:05:28 UTC+5:30, Soumen Khatua wrote: > > Hi Folks, > > I'm using DRF APIView

Re: Login in a system

2020-02-28 Thread Naveen Arora
Hi Kushal, Explain the problem clearly Thanks On Friday, 28 February 2020 16:04:53 UTC+5:30, Kushal Neupane wrote: > > How to make five post officer in an office and authonticate? > -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Project directory management

2020-02-28 Thread Agoua David
Since the flask app config is a singleton, I think you can just call it in your config/config.py module by import src/app.py if src is a package Le ven. 28 févr. 2020 à 11:09, Devender Kumar a écrit : > Hi, > BTW it is flask app question. > > dir structure > service > config/__init__.py >

Re: Make a cashier login in a system.

2020-02-28 Thread Naveen Arora
Hi, Check this out - https://docs.djangoproject.com/en/3.0/topics/auth/ Cheers On Friday, 28 February 2020 16:04:53 UTC+5:30, Kushal Neupane wrote: > > > *I made a Cashier model and added some values from the admin. Now, i need > an idea to login the system from the Cashier model. I am

Re: Serializing forms and formsets to pass to Celery task

2020-02-28 Thread Naveen Arora
Hi Bernd, You can't serialize a form data object this way. All the solution i can see is to save data temporarily and use it. Cheers, On Friday, 28 February 2020 14:58:50 UTC+5:30, Bernd Wechner wrote: > > I'm using Celery quite effectively with Django as many are. It's just > awesome for

Re: production setup

2020-02-28 Thread Soumen Khatua
I already read the documentation but still I'm confuse that's why I posted. BTW thank you for your help. On Fri, Feb 28, 2020 at 5:51 PM Naveen Arora wrote: > Hi Soumen, > > https://docs.djangoproject.com/en/3.0/howto/static-files/deployment/ >

Re: Api

2020-02-28 Thread Naveen Arora
Create an API which returns count, then use javascript to update the front end part. On Friday, 28 February 2020 12:50:39 UTC+5:30, Tosin Ayoola wrote: > > Good morning guyz, > I need help on this one, it on writing api that will Shows the product > count for each manufacturer as users add

Re: How to trigger system check while running development server?

2020-02-28 Thread Naveen Arora
can you explain more with some code, the exact question .? Cheers, Naveen Arora On Thursday, 27 February 2020 20:01:00 UTC+5:30, One Above All wrote: > > I am updating a settings in my test which should raise exception on > illegal entries, but merely updating settings does not make django

Re: How to do validation on a form which is opened by clicking a button

2020-02-28 Thread Naveen Arora
Use this as below in your view - context["form"] = YourForm(request.POST or None) and just a method if form.is_valid(), there is no need for the else part. On Friday, 28 February 2020 02:41:04 UTC+5:30, Sunil BK wrote: > > Hello community > > I am trying to build a simple form which can be

Re: Is it possible to extend the model in another application without explicitly changing firs-one?

2020-02-28 Thread Naveen Arora
Clearly Possible, Simply import the model first using appname.models. Hope it helps:) You can use this as from appA import model1 in app2 On Thursday, 27 February 2020 22:04:12 UTC+5:30, Ol P wrote: > > Imagen we have *app-A* and *app-B* with *model-A* and *model-B* > accordingly. > And we want

Re: production setup

2020-02-28 Thread Naveen Arora
Hi Soumen, https://docs.djangoproject.com/en/3.0/howto/static-files/deployment/ https://docs.djangoproject.com/en/3.0/howto/static-files/ Have a look here. Hope it helps :) Cheers On Thursday, 27 February 2020 16:48:46 UTC+5:30, Soumen Khatua wrote: > > Hi Folks, > > I'm storing users images

Re: Unidirectional association

2020-02-28 Thread Naveen Arora
great. Happy to help :) Cheers On Thursday, 27 February 2020 13:46:10 UTC+5:30, Manos Zeakis wrote: > > Thank you > > I finally made it. I was afraid about circular references and DB possible > corruptions, but Django seems to be resilient and surprises me all the time. > > What I did was > >

Re: logged in and got logout immediately upon reload the page

2020-02-28 Thread Naveen Arora
cool :) Cheers, Naveen Arora On Thursday, 27 February 2020 12:06:37 UTC+5:30, Roy Huang wrote: > > Hi Naveen, > > thank you once again for the help > > after days of struggling, finally i've got enlightened all of a sudden ! > > to put it in simple way, > > we have a sync mechanism, which sync

Re: Project directory management

2020-02-28 Thread Andréas Kühne
If it is a flask app question, you should ask it on a flask mailing list. You will probably get better responses :-) Regards, Andréas Den fre 28 feb. 2020 kl 12:08 skrev Devender Kumar : > Hi, > BTW it is flask app question. > > dir structure > service > config/__init__.py >

Re: About Django performance

2020-02-28 Thread Gil Obradors
Hi ! I 'm curious too! How much data? With CPU and RAM, may be the problem will be in Wifi Channel, instead of at the server. You will explain us ;) Thank you! Missatge de 이바울 del dia dv., 28 de febr. 2020 a les 11:33: > I'm trying to build a server. > > Data transmitted from the wireless

Image Upload

2020-02-28 Thread Soumen Khatua
Hi Folks, I'm using DRF APIView to upload images, but I don't know how to write a POST request to accept image. Please advise me how I can do it? my *serializers.py* *class ImageSerializer(serializers.ModelSerializer):class Meta: model = Profilefields = ['user','profile_pic']

Project directory management

2020-02-28 Thread Devender Kumar
Hi, BTW it is flask app question. dir structure service config/__init__.py config/config.py src/app.py src/__init__.py Running the flask app by writing command python src/app.py Question: I want to access config parameter in flask app from config module of config package

Login in a system

2020-02-28 Thread Kushal Neupane
How to make five post officer in an office and authonticate? -- 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 view

Make a cashier login in a system.

2020-02-28 Thread Kushal Neupane
*I made a Cashier model and added some values from the admin. Now, i need an idea to login the system from the Cashier model. I am confused on this topic since 6 days.* -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

About Django performance

2020-02-28 Thread 이바울
I'm trying to build a server. Data transmitted from the wireless communication device enters the database via this server. We will use Message Queue to avoid losing data (VernaMQ). I'm curious to see if Django is a suitable server for sending and receiving data from multiple wireless

Re: Django values_list queryset returns queryset object instead of list

2020-02-28 Thread Andréas Kühne
HI Santhosh, This is expected behaviour because it is a queryset until you query the results - or iterate over them. For example: for item in View.objects.all().values_list('name',flat=True).order_by('id'): print(item) will iterate over the list of values. BUT if you want to evaluate the list

Serializing forms and formsets to pass to Celery task

2020-02-28 Thread Bernd Wechner
I'm using Celery quite effectively with Django as many are. It's just awesome for running time consuming background tasks, and providing progress bar updates to a web page. Love it. Now I would like a celery task to do some form processing. That is in a Django view, where I have access to the

Re: How to create entire basic of website design without using django-admin panel

2020-02-28 Thread nrupesh08
not problem. generally, any insert or update. any change user or admin is used front-end panel. django-admin only database table panel. their is no limitation. to delivery project. just minimum 2 panel to delivery (User + Admin). these are only front-end. that's why i am asking. and all

Re: How to create entire basic of website design without using django-admin panel

2020-02-28 Thread N Rupesh
not problem. generally, any insert or update. any change user or admin is used front-end panel. django-admin only database table panel. their is no limitation. to delivery project. just minimum 2 panel to delivery (User + Admin). these are only front-end. that's why i am asking. and all elements

Re: How to create entire basic of website design without using django-admin panel

2020-02-28 Thread Motaz Hejaze
So all your problem is django admin ? Why ? On Fri, 28 Feb 2020, 9:02 am nrupesh08, wrote: > > > On Friday, February 28, 2020 at 12:19:55 PM UTC+5:30, nrupesh08 wrote: >> >> >> >> login page based on roles (user, admin). insert data, update data, delete >> data in (entire rows). only particular

Re: Api

2020-02-28 Thread Motaz Hejaze
Anything real time will be done by sockets , which i think is not the solution you need.. On Fri, 28 Feb 2020, 9:19 am Tosin Ayoola, wrote: > Good morning guyz, > I need help on this one, it on writing api that will Shows the product > count for each manufacturer as users add products real