Re: Can I access App Data in CMS

2020-01-17 Thread Balaji Shetty
Hi Thank you very much for your reply. Can you please send me any meaningful web resources On Saturday, January 18, 2020, kaito . wrote: > Yes > > On Sat, Jan 18, 2020, 2:48 AM Balaji Shetty > wrote: > >> Hi >> >> I have to create static pages with Audio, video and image Gallery in >> existin

Re: Can I access App Data in CMS

2020-01-17 Thread kaito .
Yes On Sat, Jan 18, 2020, 2:48 AM Balaji Shetty wrote: > Hi > > I have to create static pages with Audio, video and image Gallery in > existing Django Software App. > > How can I achieve it. > > Should I create CMS and access Software App Data. is it possible to use > django App Data in CMS. > >

Can I access App Data in CMS

2020-01-17 Thread Balaji Shetty
Hi I have to create static pages with Audio, video and image Gallery in existing Django Software App. How can I achieve it. Should I create CMS and access Software App Data. is it possible to use django App Data in CMS. Which CMS we should prefer. -- Mr Shetty Balaji Asst. Prof. IT Departmen

Re: Django 2.2 cache keys in bytes

2020-01-17 Thread maninder singh Kumar
Could it be that the value not being received, that is a string, is because of a function that you wrote that doesn't adequately define a value required. A type error of the kind you are receiving, and I racked my head over a type error for two days, has a simple solution, wonder if you could share

Re: Django ORM

2020-01-17 Thread maninder singh Kumar
I wonder if this would work : second_data = SecondTable.objects.values("user_by").filter(username = "username) [image: --] Maninder Kumar [image: http://]about.me/maninder.s.kumar On Fri, Jan 17, 2020 at 8:10 PM Suraj Thapa FC wrote: > Us

Re: Can't connect databases together

2020-01-17 Thread Jonathan Villavicencio
for example: https://docs.djangoproject.com/en/3.0/ref/models/fields/#foreignkey El vie., 17 de ene. de 2020 a la(s) 11:43, Jonathan Villavicencio ( codejonvi...@gmail.com) escribió: > In your model define a class and in out make the relationship with other > class that reference the other table

Re: Can't connect databases together

2020-01-17 Thread Jonathan Villavicencio
In your model define a class and in out make the relationship with other class that reference the other table in the database El vie., 17 de ene. de 2020 a la(s) 11:14, Stephen (stephen.u...@gmail.com) escribió: > sqlite3 > > On Friday, 17 January 2020 16:53:01 UTC+1, Jonathan Villavicencio wrote

Re: Can't connect databases together

2020-01-17 Thread Stephen
sqlite3 On Friday, 17 January 2020 16:53:01 UTC+1, Jonathan Villavicencio wrote: > > Hello Stephen, > > What is the database you are using? > > El vie., 17 de ene. de 2020 a la(s) 10:25, Stephen (steph...@gmail.com > ) escribió: > >> How can I connect 2 database tables together please?. I am tryi

Re: A little help here please

2020-01-17 Thread Stephen
Thank You On Friday, 17 January 2020 16:36:41 UTC+1, Suraj Thapa FC wrote: > > Use django orm > > On Fri, 17 Jan 2020, 8:48 pm Stephen, > > wrote: > >> How can I join two database tables together please?. I'm trying to >> display every object in a table that is linked to an object in another >>

Re: Can't connect databases together

2020-01-17 Thread Jonathan Villavicencio
Hello Stephen, What is the database you are using? El vie., 17 de ene. de 2020 a la(s) 10:25, Stephen (stephen.u...@gmail.com) escribió: > How can I connect 2 database tables together please?. I am trying to > display some objects in a table by selecting an object that is in another > table. How

Re: A little help here please

2020-01-17 Thread Suraj Thapa FC
Use django orm On Fri, 17 Jan 2020, 8:48 pm Stephen, wrote: > How can I join two database tables together please?. I'm trying to display > every object in a table that is linked to an object in another table. I > can't seem to get it to work > > -- > You received this message because you are sub

Can't connect databases together

2020-01-17 Thread Stephen
How can I connect 2 database tables together please?. I am trying to display some objects in a table by selecting an object that is in another table. How do I connect them please? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Re: why my “def __str__(self)” function isn't working in django

2020-01-17 Thread KONE GOMPOU LOUA ALASSANE
Screen shorts Le ven. 17 janv. 2020 à 15:16, Motaz Hejaze a écrit : > what is your python version ? > > please share your code with us > > ‪On Fri, Jan 17, 2020 at 4:44 PM ‫المعتصم بالله عبد العظيم‬‎ < > dj.tahirou2...@gmail.com> wrote:‬ > >> Hi guys ! >> i have some problems with def __str__(se

A little help here please

2020-01-17 Thread Stephen
How can I join two database tables together please?. I'm trying to display every object in a table that is linked to an object in another table. I can't seem to get it to work -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re: why my “def __str__(self)” function isn't working in django

2020-01-17 Thread Motaz Hejaze
what is your python version ? please share your code with us ‪On Fri, Jan 17, 2020 at 4:44 PM ‫المعتصم بالله عبد العظيم‬‎ < dj.tahirou2...@gmail.com> wrote:‬ > Hi guys ! > i have some problems with def __str__(self) function not working in > Models.py > what can i do ? > please i need a help !!

Django 2.2 cache keys in bytes

2020-01-17 Thread E kamande
Hi , I am having an issue with django that seems to arise from `"/usr/local/lib/python3.7/site-packages/django/core/cache/backends/base.py" in validate_key` . This is after i updated from django 1.11.x to django 2.2 for python 3.5 to 3.7. the logs are a shown. File "/code/frontend/views.py" in

why my “def __str__(self)” function isn't working in django

2020-01-17 Thread المعتصم بالله عبد العظيم
Hi guys ! i have some problems with def __str__(self) function not working in Models.py what can i do ? please i need a help !! and thanks. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving email

Re: Django ORM

2020-01-17 Thread Suraj Thapa FC
Use select related in django orm On Fri, 17 Jan 2020, 7:57 pm Soumen Khatua, wrote: > Hi Folks, > *Actually I'm extending User table in some other table and this current > table I'm extending soe other table. But this time I want to filter by > using first table username How can i Do that?* > >

Django ORM

2020-01-17 Thread Soumen Khatua
Hi Folks, *Actually I'm extending User table in some other table and this current table I'm extending soe other table. But this time I want to filter by using first table username How can i Do that?* *Example:* *class FirstTable(models.Model):* *user_by = models.ForeignKey(user,related_na

Re: ProgrammingError at "Relation... does not exist after deleting tables in

2020-01-17 Thread maninder singh Kumar
Normally programming error means that it is going to the wrong database. If you have multiple databases set they must have the routers configured correctly. Advisable to write a separate database for the auth_user. [image: --] Maninder Kumar [image: http://]about.me/maninder.s.kumar

Re: ProgrammingError at "Relation... does not exist after deleting tables in

2020-01-17 Thread maninder singh Kumar
The models don't contain a foreign key or do they ? [image: --] Maninder Kumar [image: http://]about.me/maninder.s.kumar On Fri, Jan 17, 2020 at 2:04 PM FLAVIEN HERI wrote: > hey guys I have an issue > > help me to resove this problem, > >

ProgrammingError at "Relation... does not exist after deleting tables in

2020-01-17 Thread FLAVIEN HERI
hey guys I have an issue help me to resove this problem, after deleting my files in migration folder keeping __init__.py but continue give me this bug Environment: Request Method: GET Request URL: http://127.0.0.1:8000/admin/ZSalertprot/province/ Django Version: 1.11.26 Python Version: 2.7.

Re: Getting " ConnectionAbortedError: [ WinError 10053] " while using Django Email in a POST request

2020-01-17 Thread Kasper Laudrup
Hi Maninder, On 17/01/2020 08.46, maninder singh Kumar wrote: Here's the code that I use : with mail.get_connection() as connection:         connection.open() send_mail(Subject ,Message, Email, recipient_list, connection=connection)         connection.close() Works beautifully, it is availabl