what's a good approach for building a product model in a django multi-vendor eCommerce system?

2019-06-29 Thread Arya
as you know eCommerce websites consist of various types of products and attributes. there are digital products as well as physical products. there are many different attributes that are assigned to a specific type of product. i need a good example to build such a system in django. what i know i

Re: [Model, ORM] Disabling a field before actually removing it

2019-06-29 Thread 'Matthieu Rudelle' via Django users
For Info, the discussion on django-developers : https://groups.google.com/forum/#!topic/django-developers/Gr9x2OlWYN4 On Monday, June 24, 2019 at 3:01:55 PM UTC+2, Matthieu Rudelle wrote: > > From the tests we conducted, even fields that are nullable and that are > not used in the code require t

paho.mqtt library and django-channels

2019-06-29 Thread Sabuhi Shukurov
Hello there! using paho library I wrote python scripts that subscribes MQTT broker's topics. I need to transfer message payloads to webscokets(django-channels). messages should be in real-time, has anyone experienced on these two protocols? -- You received this message because you are subscrib

Re: what's a good approach for building a product model in a django multi-vendor eCommerce system?

2019-06-29 Thread Joe Reitman
You can use Choices - https://docs.djangoproject.com/en/2.2/ref/models/fields/#choices On Saturday, June 29, 2019 at 3:17:04 AM UTC-5, Arya wrote: > > as you know eCommerce websites consist of various types of products and > attributes. > there are digital products as well as physical products.

Re: .model class not added in localhost:8000/admin

2019-06-29 Thread Joe Reitman
In your Destination class you have to return a string representation of the fields you to display in Admin. https://docs.djangoproject.com/en/2.2/ref/models/instances/#other-model-instance-methods On Saturday, June 29, 2019 at 7:36:17 AM UTC-5, KUMBHAGIRI SIVAKRISHNA wrote: > > 'Destination'

Help

2019-06-29 Thread pramod
How to get the input from the user in table -- 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, se

search data from dropdown box

2019-06-29 Thread Pradeep Singh
How to get the value from the drop down box ?? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving em

Re: search data from dropdown box

2019-06-29 Thread Charlotte Wood
You mean to print it out on a search page, or to actually make a drop down box appear? Charlotte Wood, MEd Educator (405) 578-5701 Zoom Meeting ID#: 4055785701 *Zoom URL:* https://epiccharterschools.zoom.us/j/2970513912 Classroom Google Site: https://sites.google.com/epiccharterschools.org/c

linking three models??

2019-06-29 Thread Charlotte Wood
Hey guys, I've successfully linked two models and printed that information out into an html template, but I can't seem to get three models linked. Any help would be appreciated: #models.py class Course(models.Model): Course_Teacher = models.ManyToManyField(Teacher, blank=False) Course_Title = m

Re: linking three models??

2019-06-29 Thread Sithembewena L. Dube
I am not sure I understand what you wish to do. What output would you need? An unrelated tip: in Python the convention is to use lowercase names for variables and functions (words separated by underscores). It makes the code more readable to the vast majority of Python developers, or at least tho

Re: .model class not added in localhost:8000/admin

2019-06-29 Thread KUMBHAGIRI SIVAKRISHNA
no need of return statement. now it's working without retrun and same as per above coding without any changes thanks for your valuable information . On Sat, Jun 29, 2019 at 6:31 PM Joe Reitman wrote: > In your Destination class you have to return a string representation of > the fields you to d

Re: .model class not added in localhost:8000/admin

2019-06-29 Thread KUMBHAGIRI SIVAKRISHNA
previously I give wrong app configuration two same app configuration gave in two apps.so that makes irrespective result On Sat, Jun 29, 2019 at 10:46 PM KUMBHAGIRI SIVAKRISHNA < kumbhagirish...@gmail.com> wrote: > no need of return statement. > now it's working without retrun and same as per abov

Database Configuration Error

2019-06-29 Thread Soumen Khatua
Hi Folks, I'm uisng Digital Ocean provided VPS and I'm using PostgreSQL and I'm gettings this error, *File "/home/sai/saiproject/env/lib/python3.5/site-packages/psycopg2/__init__.py", line 126, in connectconn = _connect(dsn, connection_factory=connection_factory, **kwasync)django.db.utils

Re: Sending Email from form

2019-06-29 Thread Sithembewena L. Dube
You're welcome Emmanuel. Fyi, I think using one email as the 'from' address and sending the user-provided one in the email body may be easier, as mail sent from different addresses yet from the same mail server IP address may be flagged as spam (Barracuda Networks

Re: linking three models??

2019-06-29 Thread Charlotte Wood
Thank you! My hopeful result is to print a list of students enrolled in a course along with the teacher's name on the screen. (So a teacher can see who is enrolled in just her class.) Charlotte Wood, MEd Educator (405) 578-5701 Zoom Meeting ID#: 4055785701 *Zoom URL:* https://epicchartersch

Re: Sending Email from form

2019-06-29 Thread Emmanuel klutse
Thanks ones again, -How do I build a message and include the email in its text please. I can I get a snippet please. Thanks On Sat, 29 Jun 2019 at 5:28 PM, Sithembewena L. Dube wrote: > You're welcome Emmanuel. > > Fyi, I think using one email as the 'from' address and sending the > user-provide

Re: Help

2019-06-29 Thread Thomas POKAM
Can you give more details please ? Le 29/06/2019 à 15:34, pramod a écrit : How to get the input from the user in table -- 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

Re: Help

2019-06-29 Thread KUMBHAGIRI SIVAKRISHNA
Please follow this youtube channel playlist for django .I think it may help you to solve your problem . https://www.youtube.com/playlist?list=PLsyeobzWxl7r2ukVgTqIQcl-1T0C2mzau On Sun, 30 Jun 2019, 12:04 am Thomas POKAM, wrote: > Can you give more details please ? > > Le 29/06/2019 à 15:34, pra

Re: Migraciones con dos aplicaciones en un proyecto de Django

2019-06-29 Thread Tatiana Mesa
Gracias Miguel. El jue., 27 de jun. de 2019 a la(s) 14:50, Miguel Ángel Cumpa Ascuña ( miguel.cumpa.asc...@gmail.com) escribió: > hola, el procedimiento debería ser el mismo, > python manage.py makemigrations > python manage.py migrate > éxitos! > > El jue., 27 jun. 2019 a las 13:56, Tatiana Mesa

Nested dictionaries

2019-06-29 Thread 'David Elphee' via Django users
Hello,I am new at django and in over my head I think.  I am trying to create a kind of shim that will accept JSON from a webhook POST, work with the data using Python, and then POST some new JSON to another API.  I have successfully worked through tutorials that have "flat" data, and I have look

OTP Verification

2019-06-29 Thread ravikumar dingari
I generated OTP pH number, but How to verify it ... If entered correct ok , Otherwise no...Like this... On 28-Jun-2019 12:25 AM, "Tatiana Mesa" wrote: Hola a todos, Me gustaría saber si al momento de hacer una migración (migrate), con dos aplicaciones en un proyecto cambia el comando, o cual de