Re: Python Database Migration Tool

2024-02-29 Thread Eduardo Barbachan
.ju...@gmail.com> escreveu: > Hey, > > i have 2 different database systems. In source postgresql and target MS > SQL. Now i have on source DBMS a database with a complete different schema > like in target DBMS. Now i search a solution where i can connect to > different D

Re: Data model design questio: graph in database

2024-02-29 Thread Sébastien Hinderer
Dear Ryan, 'Ryan Nowakowski' via Django users (2024/02/26 17:39 -0600): > You might consider using GenericRelation. That would allow you to query the > edges that have a certain vertex type. > > https://docs.djangoproject.com/en/5.0/ref/contrib/contenttypes/#generic-relations That looks indeed

Re: Python Database Migration Tool

2024-02-29 Thread Christian Ledermann
On Thu, 29 Feb 2024 at 15:01, sebasti...@gmail.com < sebastian.ju...@gmail.com> wrote: > Hey, > > i have 2 different database systems. In source postgresql and target MS > SQL. Now i have on source DBMS a database with a complete different schema > like in target DBMS. No

Python Database Migration Tool

2024-02-29 Thread sebasti...@gmail.com
Hey, i have 2 different database systems. In source postgresql and target MS SQL. Now i have on source DBMS a database with a complete different schema like in target DBMS. Now i search a solution where i can connect to different DBMS Systems and can make a mapping between different source

Re: Data model design questio: graph in database

2024-02-26 Thread Sébastien Hinderer
Dear mike, Mike Dewhirst (2024/02/27 17:10 +1100): > On 26/02/2024 8:00 pm, Sébastien Hinderer wrote: > > I will thus need to find a way to disable in the admin interface the > > possibility to work directly on the Vertex and Edge classes, but I > > expect the documentation will tell me how to

Re: Data model design questio: graph in database

2024-02-26 Thread Mike Dewhirst
On 26/02/2024 8:00 pm, Sébastien Hinderer wrote: I will thus need to find a way to disable in the admin interface the possibility to work directly on the Vertex and Edge classes, but I expect the documentation will tell me how to achieve this. In fact you need to enable the classes you want -

Re: Data model design questio: graph in database

2024-02-26 Thread Sébastien Hinderer
Hi again, Jason (2024/02/25 17:28 -0800): > Question about this, why focus on using a rdbms for this functionality vs > using an actual graph db like neo4j with neomodel > ? I'm actually a bit nervous about giving up completely the relational

Re: Data model design questio: graph in database

2024-02-26 Thread Sébastien Hinderer
t. I > find such an approach very comforting.CheersMike--(Unsigned mail from my > phone) > Original message From: Sébastien Hinderer > Date: 25/2/24 21:46 (GMT+10:00) To: > django-users@googlegroups.com Subject: Re: Data model design questio: graph > in database De

Re: Data model design questio: graph in database

2024-02-26 Thread Sébastien Hinderer
Dear Jason, Many thanks! Jason (2024/02/25 17:28 -0800): > Question about this, why focus on using a rdbms for this functionality vs > using an actual graph db like neo4j with neomodel > ? Oh simply because I was absolutely not aware of the

Re: Data model design questio: graph in database

2024-02-25 Thread Jason
n lists. > You can call obj.which_class() on any object which has (inherited) that > method to determine whether an edge (or vertex) is type_1 or type_2 (using > our previous terminology) > > You cannot query the database using the return value from which_class() > because that

Re: Data model design questio: graph in database

2024-02-25 Thread Mike Dewhirst
and vertices are in lists. You can call obj.which_class() on any object which has (inherited) that method to determine whether an edge (or vertex) is type_1 or type_2 (using our previous terminology) You cannot query the database using the return value from which_class() because that operates

Re: Data model design questio: graph in database

2024-02-25 Thread Mike Dewhirst
expect. I find such an approach very comforting.CheersMike--(Unsigned mail from my phone) Original message From: Sébastien Hinderer Date: 25/2/24 21:46 (GMT+10:00) To: django-users@googlegroups.com Subject: Re: Data model design questio: graph in database Dear Mike,I

Re: Data model design questio: graph in database

2024-02-25 Thread Sébastien Hinderer
Dear Mike, I will definitely play aroudn with your nice suggestion, but I would like to share a concern I have. At this stage I am actually unsure how this will work. Indeed, suppose a vertex is given as input and one tries to query the database about all the edges that originate from

Re: Data model design questio: graph in database

2024-02-25 Thread Sébastien Hinderer
Dear Mike, Many thanks for your suggestion! I find it significantly superior to what I had in mind, in the sense that I would have had to handle the class types manually, with the obvious drawbacks (error-prone, not so easy to extend), which your solution completely avoids. I will thus

Re: Data model design questio: graph in database

2024-02-24 Thread Mike Dewhirst
On 24/02/2024 7:20 am, Sébastien Hinderer wrote: Dear all, Using the mailing list rather than the forum because, like many visually impaired people, I find mailing lists way easier to use than forums, I hope the list is still active. I need to store in database and manipulate graphs of which

Data model design questio: graph in database

2024-02-23 Thread Sébastien Hinderer
Dear all, Using the mailing list rather than the forum because, like many visually impaired people, I find mailing lists way easier to use than forums, I hope the list is still active. I need to store in database and manipulate graphs of which both vertices and edges can each be of several types

Re: Django tenants schema with database cluster

2024-02-03 Thread Nagaraja
Can you tell me.. what's the issue you are facing with database routing? On Tue, 30 Jan, 2024, 6:31 am Husbas, wrote: > We are running a Saas with django-tenants and AWS aurora. > However, for AWS aurora and django, we need to implement a DB Router to > read from read replica

Re: Django tenants schema with database cluster

2024-01-31 Thread akabokwu chidera
: > We are running a Saas with django-tenants and AWS aurora. > However, for AWS aurora and django, we need to implement a DB Router to > read from read replica and write to master database. This doesn't seem to > be possible with current Router of django-tenants schema. > > Is the

Django tenants schema with database cluster

2024-01-29 Thread Husbas
We are running a Saas with django-tenants and AWS aurora. However, for AWS aurora and django, we need to implement a DB Router to read from read replica and write to master database. This doesn't seem to be possible with current Router of django-tenants schema. Is there a way to handle

Re: Select Boxes and Database

2023-12-07 Thread Swarup Selvaraj
wrote: > Hi. I can put an item from the database into a select box ie Countries of > the World. What I want to know is saying, having chosen New Zealand from > the select box, how do I display all the cities of New Zealand in another > select box. > > The database has two

Re: Select Boxes and Database

2023-12-02 Thread Vishesh Mangla
endpoint and get list of cities without a reload. Thanks, Vishesh On Sun, 3 Dec, 2023, 04:22 Mike Dewhirst, wrote: > On 3/12/2023 7:27 am, David Merrick wrote: > > Hi. I can put an item from the database into a select box ie Countries of > the World. What I want to know is saying, h

Re: Select Boxes and Database

2023-12-02 Thread Mike Dewhirst
On 3/12/2023 7:27 am, David Merrick wrote: Hi. I can put an item from the database into a select box ie Countries of the World. What I want to know is saying, having chosen New Zealand from the select box, how do I display all the cities of New Zealand in another select box. The database has

Select Boxes and Database

2023-12-02 Thread David Merrick
Hi. I can put an item from the database into a select box ie Countries of the World. What I want to know is saying, having chosen New Zealand from the select box, how do I display all the cities of New Zealand in another select box. The database has two tables. First one is Countries. The second

Re: Writing migrations to wrong database entirely

2023-11-14 Thread Lutaaya Jamil
ts/77481255/timeline> >> >> Howdy, I have been working with Django for about three years now and have >> developed a couple business grade apps which are deployed and doing great. >> >> The other day, I created a new project with a new database, etc. >> >&g

Re: Writing migrations to wrong database entirely

2023-11-14 Thread David Crandell
I created a new project with a new database, etc. > > I built out the initial models and migrated them to the proper database. > However, subsequent migrations are going to a database I built for another > app entirely. The two databases aren't on the same host, don't have similar &

Re: Writing migrations to wrong database entirely

2023-11-14 Thread Ahmed Iftikhar
database. If you are using a database router to manage multiple databases, ensure that it is correctly configured. The DATABASE_ROUTERS setting in settings.py should point to a valid router class. Django maintains a migration cache. Try clearing it by running: *python manage.py migrate --clear

Re: Writing migrations to wrong database entirely

2023-11-14 Thread Lutaaya Jamil
ve > developed a couple business grade apps which are deployed and doing great. > > The other day, I created a new project with a new database, etc. > > I built out the initial models and migrated them to the proper database. > However, subsequent migrations are going to a da

Writing migrations to wrong database entirely

2023-11-14 Thread David Crandell
<https://stackoverflow.com/posts/77481255/timeline> Howdy, I have been working with Django for about three years now and have developed a couple business grade apps which are deployed and doing great. The other day, I created a new project with a new database, etc. I built out the i

Re: pytest, asgiref, Selenium and database access? How to make them work?

2023-09-07 Thread Luciano Martins (luxu)
Hello, how is your postgres configured, because there is no database called test2. this is the error Em quarta-feira, 6 de setembro de 2023 às 19:08:32 UTC-3, Alfons Eberle escreveu: > Hey, has anyone gotten pytest to work with django-channels (or asgiref + > Daphne) and Selenium in g

Re: pytest, asgiref, Selenium and database access? How to make them work?

2023-09-07 Thread David Nugent
install pytest-django use fixture @pytest.mark.db profit On 5 September 2023 at 08:15:10, Alfons Eberle (alfons.sig...@gmail.com) wrote: > Hey, has anyone gotten pytest to work with django-channels (or asgiref + > Daphne) and Selenium in general when database access is required? > >

pytest, asgiref, Selenium and database access? How to make them work?

2023-09-06 Thread Alfons Eberle
Hey, has anyone gotten pytest to work with django-channels (or asgiref + Daphne) and Selenium in general when database access is required? My fixtures for users and other models import just fine, but my browser and Daphne process seem to be unaware of the test database and seem unable

Re: I Want To Save The Data In My Database Depending On The Catgory Of Data Chosen by User Like I Have 4 Lisitings Like APparetements, Food And Life, Car And Travelling if User Selects Appartements Th

2023-08-23 Thread ivan harold
You should prepare a different form that will submit the post to a specific table or database. you have to specify where the table or database the post will go. On Sunday, August 20, 2023 at 11:29:57 AM UTC-5 Hamza Bilal wrote: > {% extends 'home.html' %} > {% load static %} > {% bloc

I Want To Save The Data In My Database Depending On The Catgory Of Data Chosen by User Like I Have 4 Lisitings Like APparetements, Food And Life, Car And Travelling if User Selects Appartements Then A

2023-08-20 Thread Hamza Bilal
{% extends 'home.html' %} {% load static %} {% block content %} Add Plots In Your Listing If You Want To Buy The Plot Then Add It In Your Listing

Re: CreateView for non default database

2023-08-09 Thread ivan harold
Did you try what David Nugent suggested? Did it worked? On Thursday, July 27, 2023 at 6:31:33 PM UTC+8 David Nugent wrote: > Database Router is the trick for this. Django calls this function to > determine which database the transaction will use based on the type of > operation requ

Re: CreateView for non default database

2023-07-27 Thread David Nugent
Database Router is the trick for this. Django calls this function to determine which database the transaction will use based on the type of operation requested, so you can separate which database is selected for reads, writes and migrations. Regards, David On Wed, Jul 26, 2023 at 1:11 PM

Re: CreateView for non default database

2023-07-26 Thread Sebastian Jung
Hello , I found this tutorial: https://dboostme.medium.com/using-django-with-multiple-databases-introduction-8f0ffb409995 But i self don't use several databases Regards Muhammad Juwaini Abdul Rahman schrieb am Mi., 26. Juli 2023, 05:11: > Hi all, > > I have two different databases as below:

CreateView for non default database

2023-07-25 Thread Muhammad Juwaini Abdul Rahman
Hi all, I have two different databases as below: DATABASES = { 'tvet': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': BASE_DIR / 'db.sqlite3', }, 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'jpk', 'USER': 'jpkuser', 'PASSWORD': 'jpkpassword', 'HOST': 'localhost', # Or an IP

Re: Django inside WSL cannot connect to host database

2023-05-31 Thread DieHardMan 300
ORT STATE SERVICE > > 5432/tcp filtered postgresql > > > > Nmap done: 1 IP address (1 host up) scanned in 0.24 seconds > > > This are my setting-database > > > DATABASES = { > > 'default': { > > 'ENGINE': 'django.db.backends.postgresql', > > 'NAME' : 'LM

Django inside WSL cannot connect to host database

2023-05-31 Thread Robbi Nespu
RT STATE SERVICE > 5432/tcp filtered postgresql > > Nmap done: 1 IP address (1 host up) scanned in 0.24 seconds This are my setting-database > DATABASES = { > 'default': { > 'ENGINE': 'django.db.backends.postgresql', > 'NAME' : 'LMHOST', > 'USER' : 'postgres', > 'P

Re: Unable to write to database

2023-05-24 Thread Jun Say
May i have a question related to Django? On Tuesday, May 23, 2023 at 5:14:57 AM UTC-7 William Nash (Bill) wrote: > > The system permission solved the issues. Thank you. > > On Monday, May 22, 2023 at 10:51:13 AM UTC-5 Dev Femi Badmus wrote: > >> I have similar error is due to system permission

Re: Unable to write to database

2023-05-23 Thread William Nash (Bill)
The system permission solved the issues. Thank you. On Monday, May 22, 2023 at 10:51:13 AM UTC-5 Dev Femi Badmus wrote: > I have similar error is due to system permission are you running on Linux? > > chown www-data:www-data /home/username/project-folder > > chown www-data:www-data

Re: Unable to write to database

2023-05-22 Thread aung naing12
siness. I'm running into a error that when I try to > add a diver the database does not update. When I goto > http://localhost:8000/add_diver/add_diver/ I'm able to add a diver. > > This is confusing - you said you get an error when you try and add a > diver to the database but w

Re: Unable to write to database

2023-05-22 Thread Larry Martell
On Sun, May 21, 2023 at 10:54 AM William Nash (Bill) wrote: > > I'm new to django and I'm trying to learn as I program a small website for my > scuba diving business. I'm running into a error that when I try to add a > diver the database does not update. When I goto > http:/

Re: Unable to write to database

2023-05-22 Thread Dev Femi Badmus
I have similar error is due to system permission are you running on Linux? chown www-data:www-data /home/username/project-folder chown www-data:www-data /home/username/project-folder/db.sqlite3 -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Unable to write to database

2023-05-22 Thread William Nash
I can get the website to come up, but I can't save anything to the database. Django is installed in a .venv folder and activated with source .venv/bin/activate. William Nash Padi Instructor#367103 (972) 372-4557 | wrna...@gmail.com Website: http://ascubadiving.com/ Texas Mason A.F.& A.M.: h

Re: Unable to write to database

2023-05-21 Thread Michael Edet
; a diver the database does not update. When I goto > http://localhost:8000/add_diver/add_diver/ I'm able to add a diver. > > My code is located at: https://github.com/wrnash1/ascubadiving > > Thanks for any help on this application. > > > Bill > > -- > You receiv

Re: Unable to write to database

2023-05-21 Thread William Nash (Bill)
> for my scuba diving business. I'm running into a error that when I try to >> add a diver the database does not update. When I goto >> http://localhost:8000/add_diver/add_diver/ I'm able to add a diver. >> >> My code is located at: https://github.com/wrnash1/ascubadivi

Re: Unable to write to database

2023-05-21 Thread Abdulrahman Abbas
Send your error message On Sun, May 21, 2023, 18:54 William Nash (Bill) wrote: > I'm new to django and I'm trying to learn as I program a small website for > my scuba diving business. I'm running into a error that when I try to add > a diver the database does not update. When I go

Unable to write to database

2023-05-21 Thread William Nash (Bill)
I'm new to django and I'm trying to learn as I program a small website for my scuba diving business. I'm running into a error that when I try to add a diver the database does not update. When I goto http://localhost:8000/add_diver/add_diver/ I'm able to add a diver. My code is located

Re: Image uploaded to database but not displaying

2023-04-12 Thread Michael Starr
'django.template.context_processors.request', > 'django.contrib.auth.context_processors.auth', > 'django.contrib.messages.context_processors.messages', > ], > }, > }, > ] > > WSGI_APPLICATION = 'pet_memorial.wsgi.app

Re: Image uploaded to database but not displaying

2023-04-12 Thread Michael Starr
b.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', ], }, }, ] WSGI_APPLICATION = 'pet_memorial.wsgi.application' # Database # https://docs.djangoproject.com/en/2.2/ref/settings/#databases DATABASES = { 'default': { 'ENGINE

Re: Image uploaded to database but not displaying

2023-04-12 Thread Michael Starr
oaded. > > HTH, > David > > > > From: Michael Starr > Reply: django...@googlegroups.com > Date: 12 April 2023 at 18:00:56 > To: Django users > Subject: Image uploaded to database but not displaying > > I am finding that the url of files stored in a database

Re: Image uploaded to database but not displaying

2023-04-12 Thread Chelsea Fan
s config, > except for MEDIA_URL and pointing to the file system location where they > are actually being uploaded. > > HTH, > David > > > > From: Michael Starr > Reply: django-users@googlegroups.com > > Date: 12 April 2023 at 18:00:56 > To: Dj

Re: Image uploaded to database but not displaying

2023-04-12 Thread David Nugent
dev static files config, except for MEDIA_URL and pointing to the file system location where they are actually being uploaded. HTH, David From: Michael Starr Reply: django-users@googlegroups.com Date: 12 April 2023 at 18:00:56 To: Django users Subject: Image uploaded to database

Image uploaded to database but not displaying

2023-04-12 Thread Michael Starr
I am finding that the url of files stored in a database with Django is automated to /media/[filename], which is neat, because that keeps it organized and from images being everywhere. However, only the alt text of my file shows--the url is correct but the image doesn't show. I've tried using

Re: It is impossible to add a non-nullable field 'details1' to feature without specifying a default. This is because the database needs something to populate existing rows.

2023-03-27 Thread Erik Manuel Herazo Jimenez
ave been getting errors in migrations, i need help > when i try to do migrations it keeps telling me this > it is impossible to add a non-nullable field 'details' to feature without > specifying a default. This is because the database needs something to > populate existing rows. > Please

Re: It is impossible to add a non-nullable field 'details1' to feature without specifying a default. This is because the database needs something to populate existing rows.

2023-03-26 Thread Sandip Bhattacharya
feature without > specifying a default. This is because the database needs something to > populate existing rows. > Please select a fix: > 1) Provide a one-off default now (will be set on all existing rows with a > null value for this column) > 2) Quit and manually define a de

Re: It is impossible to add a non-nullable field 'details1' to feature without specifying a default. This is because the database needs something to populate existing rows.

2023-03-25 Thread swazyman1994
files, recreate the database with the same name as in your configuration python file and do migrations again. This will work or you can add default parameter with a value after max_length parameter for example default="" this will work too but if you take a look to your sql codes, you h

Re: It is impossible to add a non-nullable field 'details1' to feature without specifying a default. This is because the database needs something to populate existing rows.

2023-03-25 Thread Henock Lungele
That means you have done some changes in your model python file. So you have to drop your data base, delete the migration files, recreate the database with the same name as in your configuration python file and do migrations again. This will work or you can add default parameter with a value after

Re: It is impossible to add a non-nullable field 'details1' to feature without specifying a default. This is because the database needs something to populate existing rows.

2023-03-25 Thread Muhammed Lawal
Enter 1 then ' ' rather. Sorry  On Sat, 25 Mar 2023, 5:45 p.m. Muhammed Lawal, wrote: > You are seen that error probably because you modified your models after > adding some items to database already. When prompted with the error, enter > 2, then ' ' an empty string. > > On Sat,

Re: It is impossible to add a non-nullable field 'details1' to feature without specifying a default. This is because the database needs something to populate existing rows.

2023-03-25 Thread Patricia Medina
Thats because you have values in the database... If you don't need the data... eliminate the 001, 002, etc files of the migration folder...(this folder is in each application folder) and applicate the migrations again. On Sat, Mar 25, 2023, 09:00 Ebenezer Otchere wrote: > Am new in dja

Re: It is impossible to add a non-nullable field 'details1' to feature without specifying a default. This is because the database needs something to populate existing rows.

2023-03-25 Thread Muhammed Lawal
You are seen that error probably because you modified your models after adding some items to database already. When prompted with the error, enter 2, then ' ' an empty string. On Sat, 25 Mar 2023, 1:59 p.m. Ebenezer Otchere, wrote: > Am new in django and have been getting errors in migrati

It is impossible to add a non-nullable field 'details1' to feature without specifying a default. This is because the database needs something to populate existing rows.

2023-03-25 Thread Ebenezer Otchere
Am new in django and have been getting errors in migrations, i need help when i try to do migrations it keeps telling me this it is impossible to add a non-nullable field 'details' to feature without specifying a default. This is because the database needs something to populate existing rows

Re: Migration of tables from external database to new database

2023-03-21 Thread Brian Carey
mysqldump can be used to extract the table(s) from the old database. This creates a file with the SQL statements to recreate the table which can be read into into the new database with mysql command. As long as you are going from a MySQL DB to another this will work fine. If you are moving from

Re: Migration of tables from external database to new database

2023-03-21 Thread nef
Hi, My suggestion is to first create the apps using Django, then create the models respecting the database structure you are willing to migrate, run the makemigrations, migrate which will create a new database with tables having the same structure as those you want to migrate. After that, use

Re: Migration of tables from external database to new database

2023-03-20 Thread Adekola Aderonmu
Hi, my engine is mysql Yes, there is data in the table I want to migrate into the new database. CUS THE DATABASE I WANT TO MIGRATE TOO IS AN APP IN DJANGO On Mon, 20 Mar 2023, 20:20 nef, wrote: > Hi Adekola, > Can you provide more details? > Which database engine are you using

Re: Migration of tables from external database to new database

2023-03-20 Thread nef
Hi Adekola, Can you provide more details? Which database engine are you using? Version? Is your table have data or do you want to migrate the structure...? How this is related to Django? Thanks On Monday, 20 March 2023 at 08:12:20 UTC+1 Adekola Aderonmu wrote: > Hi guys, > I have an ex

Migration of tables from external database to new database

2023-03-20 Thread Adekola Aderonmu
Hi guys, I have an external database with a particular table, and I want this table to be on my new database. How do I go about the migration of the table from the external database into the new database? THANK YOU -- You received this message because you are subscribed to the Google Groups

Migration of tables from an external database

2023-03-20 Thread Adekola Aderonmu
Hi guys, I need your assistance, so I have an external database with a particular table on it and I want to migrate that table into a new database that I have. Kindly direct me on how to achieved this. Thank you... On Thu, 16 Mar 2023, 19:23 nef, wrote: > Hi all, > I am facing p

Re: Trying to render images from database

2023-03-10 Thread Michael Starr
t; with me!" And what he does is copy your code into his github account and >>>>>> claim he "helped" you. >>>>>> Blah. What a loser. >>>>>> So anyway, it still shows img alt text BUT now when I upload a photo >>>>>> into

Re: Trying to render images from database

2023-03-07 Thread Michael Starr
>> On Saturday, March 4, 2023 at 3:31:30 PM UTC-8 Michael Starr wrote: >>> >>>> Thank you Sandip. I missed that. >>>> >>>> In any case I have revamped the code with some help from stack overflow >>>> here >>>> https://stack

Re: Trying to render images from database

2023-03-07 Thread Michael Starr
gt;> >> On Saturday, March 4, 2023 at 3:31:30 PM UTC-8 Michael Starr wrote: >> >>> Thank you Sandip. I missed that. >>> >>> In any case I have revamped the code with some help from stack overflow >>> here >>> https://stackoverflow.c

Re: Trying to render images from database

2023-03-07 Thread Red Plant
code with some help from stack overflow >> here >> https://stackoverflow.com/questions/75632266/displaying-an-image-stored-in-a-django-database >> However the image alt text instead of the image displays! So weird! >> >> class PetOwnerDetailView(DetailView): >>

Re: Trying to render images from database

2023-03-07 Thread Michael Starr
de with some help from stack overflow >> here >> https://stackoverflow.com/questions/75632266/displaying-an-image-stored-in-a-django-database >> However the image alt text instead of the image displays! So weird! >> >> class PetOwnerDetailView(DetailView): >&

Re: Trying to render images from database

2023-03-07 Thread Michael Starr
t. > > In any case I have revamped the code with some help from stack overflow > here > https://stackoverflow.com/questions/75632266/displaying-an-image-stored-in-a-django-database > However the image alt text instead of the image displays! So weird! > > class PetOwnerDetailVi

Re: Can't render images from database

2023-03-03 Thread Chelsea Fan
did you setup static and media files? On Sat, Mar 4, 2023 at 3:00 AM Michael Starr wrote: > My next issue is that I'm having difficulty displaying images stored in > the database. > > It's a mouthful so I'll spare you, but I'll add details as I go along. > > Michael >

Trying to render images from database

2023-03-03 Thread Michael Starr
It's not working. class PetOwnerDetailView(DetailView): model = PetOwner context_object_name = "owner" template_name = "pet_owner_profile.html" def get_context_data(self, *args, **kwargs): context = super().get_context_data(**kwargs) context['pet_photos'] = {}

Can't render images from database

2023-03-03 Thread Michael Starr
My next issue is that I'm having difficulty displaying images stored in the database. It's a mouthful so I'll spare you, but I'll add details as I go along. Michael -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubs

Re: database design approach

2023-02-01 Thread vamsikrishna Aliveli
> I am designing a database for a django project. I already read this > tutorial that I found really useful: > https://learndjango.com/tutorials/database-design-tutorial-beginners > > I have a question regarding the normalization. The normalization is > important due that we need to reduc

database design approach

2023-02-01 Thread datasci via Django users
I am designing a database for a django project. I already read this tutorial that I found really useful: https://learndjango.com/tutorials/database-design-tutorial-beginners I have a question regarding the normalization. The normalization is important due that we need to reduce redundant data

How to create a copy of production sql database for development use?

2022-12-28 Thread Jian Wu
Dear all, I have a Django currently running in production mode on a remote Linux server. While the production server is in use, I am developing new features on my local computer. Is there a way to create a copy of production server, so that when I develop new features I can test on a database

Re: Multistape data send to database

2022-11-03 Thread ritik sahoo
you can use filter attribute to send data to database or by using objects.filter you can get the multiple data from your database you will pass the data in URL(Dynamic URL) () On Thu, Nov 3, 2022 at 2:44 PM shiva singh wrote: > hello Everyone can anyone give a idea to how can send multist

Multistape data send to database

2022-11-03 Thread shiva singh
hello Everyone can anyone give a idea to how can send multistape form data into data base with validation -- 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: my project doesnt insert into the database

2022-11-02 Thread 'Kasper Laudrup' via Django users
On 01/11/2022 14.09, Mh Raffi wrote: Hi Sorry Looking for thread to my problem. Landed here. That is not how a mailing list or forum works. You don't find an existing thread and use it for a completely unrelated issue. You simply post a new message/mail with your issue instead. Maybe

Re: my project doesnt insert into the database

2022-11-01 Thread Mh Raffi
Hi Sorry Looking for thread to my problem. Landed here. Am new to django and python. I need to deploy my app live. i have got a domain name in hostiger. How to deploy in rail with connecting to hostinger. Hope i will find the solution here Thanks & Regards Mohammed Raffi.J +91 8939326407 On

Re: my project doesnt insert into the database

2022-11-01 Thread Otávio Augusto
Solved. I added a sleep at the end of my loop and it worked, I think it was getting stuck because the db was not able to keep up with the update from the app and so the session got interrupted. Em sexta-feira, 28 de outubro de 2022 às 10:46:54 UTC-4, Otávio Augusto escreveu: > Greetings, I'm

Re: my project doesnt insert into the database

2022-10-31 Thread Otávio Augusto
it just hang, doesnt crash nor raise any errors or exceptions, I even tried to cover it up in a try block but it did not return an error. Em sábado, 29 de outubro de 2022 às 08:38:04 UTC-4, Ryan Nowakowski escreveu: > When it gets stuck, does it crash and return a traceback or just hang? > >

my project doesnt insert into the database

2022-10-28 Thread Otávio Augusto
Greetings, I'm doing a integration projection, so I need to consume data from a RESTful API and then save that data inside a oracle db. My models migrated and succesfully created the tables, I was able to get the data from the API and parse trough it to filter the info I wanted and needed to

Re: Added new column to model and run migrations but not applied to database table

2022-10-10 Thread Jhoan
Hello guys in my case I add a new table an the issue cames up, I try all the solutions here but none of there works for me, I have to do - Backup of the database, - Delete all tables in MySQL, - Delete migrations files, - Make migrations - Migrate - Upload the data - And off course worked

Re: Database Saving

2022-09-22 Thread Walter Randazzo
R u using createview class? Regards, El jue, 22 sept 2022 a las 20:28, Saudi Mostafa () escribió: > I have a project with simple form ,when submit directed to the list > without saving > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. >

Database Saving

2022-09-22 Thread Saudi Mostafa
I have a project with simple form ,when submit directed to the list without saving -- 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: One model field map to two database columns

2022-08-25 Thread Dann Luciano
Thanks Ryan. On Tuesday, August 23, 2022 at 10:29:59 AM UTC-3 Ryan Nowakowski wrote: > On Mon, Aug 22, 2022 at 05:56:00AM -0700, Dann Luciano wrote: > > It is possible to map one field in a Model to two or more database > columns? > > For example: > > >

Database issue with Django 4.1

2022-08-24 Thread Fernando Villaça
Hi everyone, I just updated a project to 4.1, and a query stopped working. I tested with both SQLite and PostgreSQL, and i got the same result. I'm not 100% sure this is bug in Django 4.1, but it works fine on 4.0.7. These are the models and the manager related to the query: class

Re: One model field map to two database columns

2022-08-23 Thread Ryan Nowakowski
On Mon, Aug 22, 2022 at 05:56:00AM -0700, Dann Luciano wrote: > It is possible to map one field in a Model to two or more database columns? > For example: > > class User(models.Model): > encrypted_hash_email = EncryptedHash() > > then in database we have > > enc

One model field map to two database columns

2022-08-22 Thread Dann Luciano
Hi everyone, It is possible to map one field in a Model to two or more database columns? For example: class User(models.Model): encrypted_hash_email = EncryptedHash() then in database we have encrypted_email and hash_email columns? Thanks and have a good day! -- You received

Re: I need help with saving data to django database.

2022-08-17 Thread Anh Nguyen
t; > i have given my code you will need to muddle through it to do your own > thing. > > my code was designed to run inlines, update an invoice number from > another form, do the math, taxes etc etc etc > > it also interfaces to a customer database (kinda required for repeat &

Re: I need help with saving data to django database.

2022-08-17 Thread Paul Kudla (SCOM.CA Internet Services Inc.)
to muddle through it to do your own thing. my code was designed to run inlines, update an invoice number from another form, do the math, taxes etc etc etc it also interfaces to a customer database (kinda required for repeat invoices) i did everything in admin but you should look

I need help with saving data to django database.

2022-08-16 Thread Viando Donwasta
Hi, May I get help with this project? I am new to Django. Below is my view and model for your review. class Invoice(models.Model): InvoiceNo = ShortUUIDField(length=16, prefix="GN_", alphabet="1234567890", primary_key=True, ) InvoiceDate =

How to retrieve data from a database view

2022-08-05 Thread Alexander Soliton
Hi everyone! Do you how to get data from a database view? I'm currently using MySQL as my database, and I'm planning to add some views in it to be able to retrieve more complex queries from the database directly. I already have some stored procedures, which I'm already able to connect

Re: Remote database using ssh

2022-07-20 Thread Wennie Catabay
No, it is not the same network, the remote database is MySql, and my default database in my Django application is Postgres, I only want is to read or get data to the remote database into may Django application. On Wednesday, July 20, 2022 at 11:15:05 AM UTC+8 aqoy...@cardaccess.com.au wrote

  1   2   3   4   5   6   7   8   9   10   >