About Server Images and media folder

2023-06-14 Thread Aditya Desle
Hello Everyone, I have a React + Django App. Deployed on digital ocean server/droplet. Everything is working fine on local system and server too. But the issue i'm facing is about images. I have multiple folder in media folder and the when i call the post request to add the images, the images

Re: Can't load the images

2023-05-28 Thread DieHardMan 300
1. Make sure that django.contrib.staticfiles is included in your INSTALLED_APPS 2. also if it already included, adding the following snippet to your urls.py :

Re: Images are not showing up in the page

2023-04-09 Thread Sahan Srinivas
<26sa...@gmail.com> wrote: > > Yeah I gave that, actually that is also not the problem. Not sure what it > is > > Kind Regards, > Sahan > > On Sun, Apr 9, 2023 at 3:44 PM Mir Junaid wrote: > >> The command is {% load static%} >> >> On Sun, 9 A

Re: Images are not showing up in the page

2023-04-09 Thread Kiyavilo Msekwa
> On Sun, Apr 9, 2023 at 3:44 PM Mir Junaid <mailto:mirjunaid...@gmail.com>> wrote: > The command is {% load static%} > > On Sun, 9 Apr, 2023, 11:45 pm Sahan Srinivas, <26sa...@gmail.com > <mailto:26sa...@gmail.com>> wrote: > Hi Devs, > > Im

Re: What makes the images deletion from the media folder?

2023-03-30 Thread ram.mu...@gmail.com
ephemeral and disappear when the > container is recycled. > > > Regards, > David > > > -- Original Message -- > From "Ram" > To django...@googlegroups.com > Date 3/24/2023 2:04:56 PM > Subject What makes the images deletion from the media fo

Re: What makes the images deletion from the media folder?

2023-03-23 Thread David Nugent
Are you using Django in a docker container? If so, any changes to the filesystem are ephemeral and disappear when the container is recycled. Regards, David -- Original Message -- From "Ram" To django-users@googlegroups.com Date 3/24/2023 2:04:56 PM Subject What makes

What makes the images deletion from the media folder?

2023-03-23 Thread Ram
Hi, We are seeing weird issue that images are deleted between deployments in our Dev. server and we are seeing this message in log files: example: WARNING 2023-03-10 07:03:16,927 - Not Found: /media/cl_1zf3am8.JPG Could someone let me know what could be the issue? Best regards, ~Ram -- You

Re: Trying to render images from database

2023-03-10 Thread Michael Starr
I don't understand what you mean. There are no images. There's no img src except in code. I can't just right click on it because it's not there. And I know the src of the image, because I'm the one who coded it. Also it spits it out when I print the coded url. This was all in a previous post

Re: Trying to render images from database

2023-03-07 Thread Michael Starr
I am using FireFox. On Tuesday, March 7, 2023 at 2:11:38 PM UTC-8 Michael Starr wrote: > this.window.gBrowserInit is undefined ext-browser.js:1134 > get activeTab chrome://browser/content/parent/ext-browser.js:1134 > candidates chrome://extensions/content/parent/ext-tabs-base.js:2091 >

Re: Trying to render images from database

2023-03-07 Thread Michael Starr
this.window.gBrowserInit is undefined ext-browser.js:1134 get activeTab chrome://browser/content/parent/ext-browser.js:1134 candidates chrome://extensions/content/parent/ext-tabs-base.js:2091 next self-hosted:1743 query chrome://extensions/content/parent/ext-tabs-base.js:2113

Re: Trying to render images from database

2023-03-07 Thread Red Plant
What's showing on the browser console? If you're using chrome, press F12 to open developer tools, then find the console tab. On Wed, Mar 8, 2023, 1:31 AM Michael Starr wrote: > Well, my privilege of posting "" on SO was revoked so I can't get my > questions answered anymore. So I guess I just

Re: Trying to render images from database

2023-03-07 Thread Michael Starr
this https://docs.djangoproject.com/en/4.1/topics/files/ seems useful, but isn't really for me. Mike On Tuesday, March 7, 2023 at 9:31:02 AM UTC-8 Michael Starr wrote: > Well, my privilege of posting "" on SO was revoked so I can't get my > questions answered anymore. So I guess I just won't

Re: Trying to render images from database

2023-03-07 Thread Michael Starr
Well, my privilege of posting "" on SO was revoked so I can't get my questions answered anymore. So I guess I just won't be a developer now. Or the alternative, reinvent all code and the internet. The answer the dude gave me wasn't sufficient and he was like, "Accept the answer!" Devious prick.

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: I am unable to view images in webpage which is given in html

2022-11-03 Thread ritik sahoo
First you check,you may not be include TEMPLATE_TAG in your settings.py file On Fri, 4 Nov, 2022, 8:02 am Mario Shaya, wrote: > employeedetail.empPhoto.url > > Le jeudi 3 novembre 2022 à 22:13:41 UTC+3, subtitle indo a écrit : > >> Sorry to write again so quickly. >> >> On Thu, Nov 3, 2022 at

Re: I am unable to view images in webpage which is given in html

2022-11-03 Thread Mario Shaya
employeedetail.empPhoto.url Le jeudi 3 novembre 2022 à 22:13:41 UTC+3, subtitle indo a écrit : > Sorry to write again so quickly. > > On Thu, Nov 3, 2022 at 10:15 AM muwaga micheal wrote: > >> Can you share the code? >> >> On Wednesday, November 2, 2022 at 3:11:37 PM UTC+3 MaheshKumar wrote: >>

Re: I am unable to view images in webpage which is given in html

2022-11-03 Thread muwaga micheal
Can you share the code? On Wednesday, November 2, 2022 at 3:11:37 PM UTC+3 MaheshKumar wrote: > I have given the photos in the database but it does not displays in the > webpage. > > [image: Screenshot (25).png] > -- You received this message because you are subscribed to the Google Groups

Re: Sending Live Streaming Images from Client’s Webcam to Django Server

2022-10-13 Thread RANGA BHARATH JINKA
Hi, Please follow this. All the best https://www.geekfeed.co.jp/geekblog/sending-live-streaming-images-from-clients-webcam-to-django-server/ Thanks and Regards J. Ranga Bharath Cell: 9110334114 On Wed, 12 Oct 2022, 9:13 pm Anshuman Thakur, wrote: > Sir my question is: Sending Live Stream

Re: Sending Live Streaming Images from Client’s Webcam to Django Server

2022-10-12 Thread Anshuman Thakur
My question is how to send live streaming from client webcam to Django server. On Tuesday, October 11, 2022 at 8:21:48 PM UTC+5:30 amruth...@gmail.com wrote: > This is secret key may be you would share this ? Which key is it > -- You received this message because you are subscribed to the

Re: Sending Live Streaming Images from Client’s Webcam to Django Server

2022-10-12 Thread Anshuman Thakur
Sir my question is: Sending Live Streaming from Client’s Webcam to Django Server. On Tue, Oct 11, 2022 at 2:39 AM 'Kasper Laudrup' via Django users < django-users@googlegroups.com> wrote: > On 08/10/2022 21.28, Anshuman Thakur wrote: > > Sr plz anyone help me for this question > > > > Which

Re: Sending Live Streaming Images from Client’s Webcam to Django Server

2022-10-11 Thread amruth bitla
This is secret key may be you would share this ? Which key is it -- 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

Re: Sending Live Streaming Images from Client’s Webcam to Django Server

2022-10-10 Thread 'Kasper Laudrup' via Django users
On 08/10/2022 21.28, Anshuman Thakur wrote: Sr plz anyone help me for this question Which question? It would be easier for someone to help you if you actually asked a question. Kind regards, Kasper Laudrup -- You received this message because you are subscribed to the Google Groups

Re: Images

2022-05-13 Thread Boris Pérez
If the images files are sotored in static: {% load static %} El vie, 13 may 2022 a las 10:03, Nicolas Passarini (< nicolaspassar...@gmail.com>) escribió: > how do you refer to the object in the template? > > El martes, 10 de mayo de 2022 a la(s) 09:58:56 UTC-3, narsh...@gmail

Re: Images

2022-05-13 Thread Nicolas Passarini
86621_m_-4392793013509788988_m_-8012441007838514003_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> >>> >>> On Sun, 8 May 2022 at 03:37, Aliya Janmohamed >>> wrote: >>> >>>> Hello, >>>> >>>> I cannot load my images, this i

Re: Images

2022-05-10 Thread Arshad Noman
_term=link> >> <#m_-4392793013509788988_m_-8012441007838514003_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> >> >> On Sun, 8 May 2022 at 03:37, Aliya Janmohamed < >> aliya.janmohame...@gmail.com> wrote: >> >>> Hello, >>> >>> I cannot

Re: Images

2022-05-09 Thread Aliya Janmohamed
lt;#m_-8012441007838514003_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> > > On Sun, 8 May 2022 at 03:37, Aliya Janmohamed < > aliya.janmohame...@gmail.com> wrote: > >> Hello, >> >> I cannot load my images, this is what shows: >> >> >> -

Re: Images

2022-05-08 Thread Arshad Noman
Virus-free. www.avast.com <https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=webmail_term=link> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> On Sun, 8 May 2022 at 03:37, Aliya Janmohamed wrote: > Hello, > > I cannot load my images, this is

Images

2022-05-07 Thread Aliya Janmohamed
Hello, I cannot load my images, this is what shows: -- 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.co

Re: how to Display images other than from static folder.

2022-02-01 Thread RANGA BHARATH JINKA
Hi, Please follow this. https://djangocentral.com/managing-media-files-in-django/ You have to store your images in a static media folder by adding the media path in settings.py. This is the recommended way and easy to access the images All the best On Wed, Feb 2, 2022 at 11:30 AM RANGA BHARATH

Re: how to Display images other than from static folder.

2022-02-01 Thread RANGA BHARATH JINKA
Hi, Pass the pdf URL as a context variable in the views function. Then you can easily access it in your HTML using jinja templating and HTML anchor tag All the best On Wed, Feb 2, 2022 at 11:03 AM ramsha azhar wrote: > still, I'm confused, Guide me what to write in views.py to display ima

Re: how to Display images other than from static folder.

2022-02-01 Thread ramsha azhar
still, I'm confused, Guide me what to write in views.py to display images on my HTML page. the main problem is how to set this path in views.py file to get image from this path. I jst want to display this tree.pdf file on my html page. Any one tell me what to write in views.py? BASE_DIR

Re: how to Display images other than from static folder.

2022-01-31 Thread ramsha azhar
gt;> tree.png as a user output image. >> >> On Mon, Jan 31, 2022 at 8:36 PM DJANGO DEVELOPER >> wrote: >> >>> tell me what you want to get as a result? do you want to display >>> multiple images on HTML template? >>> >>> On Mon, Jan 31, 2022

Re: how to Display images other than from static folder.

2022-01-31 Thread DJANGO DEVELOPER
this mage on an HTML page or how to display this > tree.png as a user output image. > > On Mon, Jan 31, 2022 at 8:36 PM DJANGO DEVELOPER > wrote: > >> tell me what you want to get as a result? do you want to display multiple >> images on HTML template? >> >&

Re: how to Display images other than from static folder.

2022-01-31 Thread Ammar Mohammed
This topic solves your problem . https://djangocentral.com/managing-media-files-in-django/ Ammar Mohammed Tel: 0113075979 On 31 Jan 2022, 17:36 +0200, DJANGO DEVELOPER , wrote: > tell me what you want to get as a result? do you want to display multiple > images on HTML template? > >

Re: how to Display images other than from static folder.

2022-01-31 Thread Lunga Baliwe
wrote: > tell me what you want to get as a result? do you want to display multiple > images on HTML template? > > On Mon, Jan 31, 2022 at 8:27 PM ramsha azhar > wrote: > >> So guide me the write way ... >> >> On Mon, 31 Jan 2022, 7:45 pm DJANGO DEVELO

Re: how to Display images other than from static folder.

2022-01-31 Thread DJANGO DEVELOPER
tell me what you want to get as a result? do you want to display multiple images on HTML template? On Mon, Jan 31, 2022 at 8:27 PM ramsha azhar wrote: > So guide me the write way ... > > On Mon, 31 Jan 2022, 7:45 pm DJANGO DEVELOPER, > wrote: > >> you are doing it t

Re: how to Display images other than from static folder.

2022-01-31 Thread ramsha azhar
o display my pictures that are >> created each time new. >> My mages are created in my project folder, not in the static folder. >> how I display images on the HTML page by using the path of my project >> folder. >> >> views.py >> >> def Image_display(requ

Re: how to Display images other than from static folder.

2022-01-31 Thread DJANGO DEVELOPER
ic folder. > how I display images on the HTML page by using the path of my project > folder. > > views.py > > def Image_display(request): > BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) > filename = 'Tree.jpg' > filepath = B

how to Display images other than from static folder.

2022-01-31 Thread ramsha azhar
Gide me Django develpers. I just want to display my pictures that are created each time new. My mages are created in my project folder, not in the static folder. how I display images on the HTML page by using the path of my project folder. views.py def Image_display(request): BASE_DIR

Re: Multi images upload in Django vs Vue.js

2021-12-16 Thread Ram
Also, I wanted to add that we are using Django FWK only but not the RESTFUL one? Best regards, ~Ram On Thu, Dec 16, 2021 at 9:10 PM Ram wrote: > Hi, > > Is anyone successful implementing multi images upload in a WebApp using > Vue.js and Django? We tried so many ways and which

Multi images upload in Django vs Vue.js

2021-12-16 Thread Ram
Hi, Is anyone successful implementing multi images upload in a WebApp using Vue.js and Django? We tried so many ways and which ever way we try images are being saved "null" in the backend. So I'm wondering whether this is a bug in Django or incompatibility with Vue.js? Could you share

Question for Upload images issue

2021-11-23 Thread Alam Khazi
Hi, By using Vuejs, Axios and Django, we're uploading "multiple images" using Vuejs form in one upload/browse attempt. After uploading, the images are getting in a list and then the list of images names are stored into backend in ImageField. The image names are saving into database but

Re: Embedded Images in emails

2021-10-04 Thread Kasper Laudrup
On 04/10/2021 12.30, Bit Rate wrote: [Errno 2] No such file or directory: '/media/logo256.png' I have tried everything and is now out of ideas, hoping someone here ran into the same issue and can help me please. Have you tried checking if there is a file located at '/media/logo256.png'?

Embedded Images in emails

2021-10-04 Thread Bit Rate
I recently change my email from plain text to html. This includes the registration verification email, as well as any other email regarding updates and notifications. It works fine in development, but not in production. In my production setting, django is unable to find the image and gives me

Re: How to embed logo on uploaded images

2021-04-19 Thread RANGA BHARATH JINKA
Hi, Try this. This may be useful for you. https://www.blog.pythonlibrary.org/2017/10/17/how-to-watermark-your-photos-with-python/ All the best On Mon, Apr 19, 2021 at 12:09 PM Ram wrote: > Hi, > > Registered users in web application upload images to sell market place > items

How to embed logo on uploaded images

2021-04-19 Thread Ram
Hi, Registered users in web application upload images to sell market place items and we need to add our company logo to pretect from stealing against copy right. Is there any library availlable in Python to handle this feature. Best regards, ~Ram -- You received this message because you

How to give select images option in django model forms ?

2021-03-14 Thread Kumar Gaurav
Hii Everyone, I have a Model Form, one field is to upload image. Right now , user can select images from their system and upload but I want to give a certain number of images as a dropdown option (showing the images in preview) to select from. How can I implement this ?? and the best

Re: Upload images

2021-02-12 Thread Kasper Laudrup
On 12/02/2021 05.12, mtp...@gmail.com wrote: How do I check if the files are valid images or not before creating the organization object. When asking someone for help, at least have the courtesy to reply the suggestions you're given before asking an unrelated question. This will greatly

Re: Upload images

2021-02-11 Thread mtp...@gmail.com
How do I check if the files are valid images or not before creating the organization objec On Friday, February 12, 2021 at 12:21:19 AM UTC+3 theresa...@gmail.com wrote: > What is the error message? Is it in your admin site you are getting issues > uploading images or when re

Re: Upload images

2021-02-11 Thread mtp...@gmail.com
How do I check if the files are valid images or not before creating the organization object. On Friday, February 12, 2021 at 12:21:19 AM UTC+3 theresa...@gmail.com wrote: > What is the error message? Is it in your admin site you are getting issues > uploading images or when re

Re: Upload images

2021-02-11 Thread Theresa Taye
What is the error message? Is it in your admin site you are getting issues uploading images or when rendered in the template? For me I use this in my model: image = models.ImageField(null=True, blank=True, upload_to="images/") the upload_to specifies wherein the static folder I want

Re: Upload images

2021-02-11 Thread Kasper Laudrup
On 11/02/2021 19.29, mtp...@gmail.com wrote: I have implemented the following view but saving the images part is an issue: What's the issue? Knowing that would make it easier for someone to help you. Having a quick look at the code, I would start by removing the try/except block until

Upload images

2021-02-11 Thread mtp...@gmail.com
Hello everyone, I have implemented an endpoint to register an organization how do I make it posssible to upload the images considering the org model as shown below. ``` class Organization(Group): email = models.EmailField(max_length=60, blank=False, null=False) admin

Re: with templated-docs: how to insert images from an ImageField

2021-01-19 Thread Diptesh Choudhuri
ated_docs/>. This module > lets you create OTD templates in LibreOffice and render them to PDF inside > a django view. > > This works great for complex documents with text, but I have no clue how > to insert images as well. The images come from an ImageField in the table

with templated-docs: how to insert images from an ImageField

2021-01-19 Thread Fenrir Sivar
o clue how to insert images as well. The images come from an ImageField in the table from which I get the info that goes into the document. does anyone have experience how to create reports with images? I'm open towards something else than templated-docs -- You received this message becau

Re: hello guys, how can I upload multiple images using single button? help me please

2021-01-09 Thread Joseph Wayodi
Post your code here, and someone will help you figure out why it does not work like you expect. On Sat, 9 Jan 2021 at 22:07, Chelsea Fan wrote: > > I tried it, it works but it saves last file twice, for example if I upload 2 > file it saves 3 > > On Sat, Jan 9, 2021 at 7:53 PM Joseph Wayodi

Re: hello guys, how can I upload multiple images using single button? help me please

2021-01-09 Thread Chelsea Fan
I tried it, it works but it saves last file twice, for example if I upload 2 file it saves 3 On Sat, Jan 9, 2021 at 7:53 PM Joseph Wayodi wrote: > The Django docs show how to do this: > < > https://docs.djangoproject.com/en/3.1/topics/http/file-uploads/#uploading-multiple-files > >. > > On Thu,

Re: hello guys, how can I upload multiple images using single button? help me please

2021-01-09 Thread Joseph Wayodi
The Django docs show how to do this: . On Thu, 7 Jan 2021 at 15:24, Chelsea Fan wrote: > > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To

Re: hello guys, how can I upload multiple images using single button? help me please

2021-01-08 Thread Chelsea Fan
server rendering On Fri, Jan 8, 2021 at 5:23 PM Satyajit Barik wrote: > do you use API or server side rendering method? > > On Fri, Jan 8, 2021 at 1:34 PM Chelsea Fan > wrote: > >> yes I am using FileField and trying upload and to save it >> >> >> On Thu, Jan 7, 2021 at 4:09 PM Steven Mapes

Re: hello guys, how can I upload multiple images using single button? help me please

2021-01-08 Thread Satyajit Barik
do you use API or server side rendering method? On Fri, Jan 8, 2021 at 1:34 PM Chelsea Fan wrote: > yes I am using FileField and trying upload and to save it > > > On Thu, Jan 7, 2021 at 4:09 PM Steven Mapes > wrote: > >> Within Django Admin or somewhere else? >> Are you using FileFields and

Re: hello guys, how can I upload multiple images using single button? help me please

2021-01-08 Thread Chelsea Fan
yes I am using FileField and trying upload and to save it On Thu, Jan 7, 2021 at 4:09 PM Steven Mapes wrote: > Within Django Admin or somewhere else? > Are you using FileFields and trying to save to the models or are you just > trying to POST multiple files? > > On Thursday, 7 January 2021 at

Re: hello guys, how can I upload multiple images using single button? help me please

2021-01-07 Thread Steven Mapes
Within Django Admin or somewhere else? Are you using FileFields and trying to save to the models or are you just trying to POST multiple files? On Thursday, 7 January 2021 at 12:25:10 UTC allaberdi...@gmail.com wrote: > -- You received this message because you are subscribed to the Google

hello guys, how can I upload multiple images using single button? help me please

2021-01-07 Thread Chelsea Fan
-- 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 this discussion on the web visit

Re: Pasting images versus uploading

2020-10-16 Thread Mike Dewhirst
(GMT+10:00) To: django-users@googlegroups.com Subject: Re: Pasting images versus uploading On Fri, Oct 09, 2020 at 06:22:10PM +1100, Mike Dewhirst wrote:> On 9/10/2020 11:55 am, Ryan Nowakowski wrote:> > Maybe you could swap out the default ImageField widget for> > TinyMCE

Re: Pasting images versus uploading

2020-10-14 Thread Ryan Nowakowski
On Fri, Oct 09, 2020 at 06:22:10PM +1100, Mike Dewhirst wrote: > On 9/10/2020 11:55 am, Ryan Nowakowski wrote: > > Maybe you could swap out the default ImageField widget for > > TinyMCE-lite HTMLField? Security-wise you probably want to sanitize > > the input from HTMLField in Django to make sure

Re: Pasting images versus uploading

2020-10-11 Thread Dvs Khamele
Hi do you hire contract based python/django freelancer? We can help you in this and related tasks at fair prices. Reply or send email to divy...@pythonmate.com Best Regards, Divyesh Khamele, Pythonmate On Fri, 9 Oct 2020, 12:53 pm Mike Dewhirst, wrote: > On 9/10/2020 11:55 am, Ryan Nowakowski

Re: Pasting images versus uploading

2020-10-09 Thread Mike Dewhirst
On 9/10/2020 11:55 am, Ryan Nowakowski wrote: > Maybe you could swap out the default ImageField widget for > TinyMCE-lite HTMLField? Security-wise you probably want to sanitize > the input from HTMLField in Django to make sure only img tags are allowed. With the image pasted in, viewing the

Re: Pasting images versus uploading

2020-10-08 Thread Ryan Nowakowski
Maybe you could swap out the default ImageField widget for TinyMCE-lite HTMLField? Security-wise you probably want to sanitize the input from HTMLField in Django to make sure only img tags are allowed. On October 7, 2020 7:02:16 PM CDT, Mike Dewhirst wrote: >Users need to include an image of

Pasting images versus uploading

2020-10-07 Thread Mike Dewhirst
Users need to include an image of a molecular structure in a project I'm building. These are small enough that I could limit the size without restricting functionality. The image needs to be printed out for a report. What is the best approach? I have implemented a TinyMCE-lite HTMLField which

Re: guys help me please, I cannot upload images from django form,

2020-08-29 Thread Chelsea Fan
( > allaberdi16yazha...@gmail.com) escribió: > >> I can upload images from django admin panel but cannot to do same thing >> with django form , it saves any text but did not save images only, anyone >> help me please >> this is my code: >> >> models.py

Re: guys help me please, I cannot upload images from django form,

2020-08-29 Thread Jonathan Villavicencio
return '/'.join([instance.image, filename]) El sáb., 29 de ago. de 2020 a la(s) 11:16, allaberdi...@gmail.com ( allaberdi16yazha...@gmail.com) escribió: > I can upload images from django admin panel but cannot to do same thing > with django form , it saves any text but did not save imag

guys help me please, I cannot upload images from django form,

2020-08-29 Thread allaberdi...@gmail.com
I can upload images from django admin panel but cannot to do same thing with django form , it saves any text but did not save images only, anyone help me please this is my code: models.py: class Posts(models.Model): Ahal = 'Ahal' Balkan = 'Balkan' Dasoguz = 'Dasoguz' Lebap = 'Lebap' Mary

Re: How to save images posted by application users

2020-07-18 Thread Liu Zheng
Hi. Here's a very nice video tutorial on how to handle images with media. https://www.youtube.com/watch?v=FdVuKt_iuSI=PL-osiE80TeTtoQCKZ03TU5fNfx2UY6U4p=8 Also to your question on how to deploy it in production, check this video. https://www.youtube.com/watch?v=Sa_kQheCnds=PL

Re: How to save images posted by application users

2020-07-17 Thread Mottaz Hegaze
Try to use subfolder in media, upload_to='/images' On Fri, 17 Jul 2020, 7:18 am Exactly musty, wrote: > I also had the same problem long time ago I remember i felt like hanging > myself,here is what I did, i deleted the media folder,created by django, > try this if it will work >

Re: How to save images posted by application users

2020-07-16 Thread Exactly musty
I also had the same problem long time ago I remember i felt like hanging myself,here is what I did, i deleted the media folder,created by django, try this if it will work -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re: How to save images posted by application users

2020-07-16 Thread Ram
cument_root=settings.MEDIA_ROOT) > ran the following commands after the above changes 1. makemigrations 2. migrate 3. collectstatic 4. runserver Then we posted an Ad in front end of the application with images and we getting this error and images did not show up in front end, > > Not Found:

Re: How to save images posted by application users

2020-07-16 Thread Mottaz Hegaze
You need a model with ImageField or FileField On Thu, 16 Jul 2020, 7:07 am Ram, wrote: > Hi, > > We need to save images posted by our application users and the images will > be displayed in application UI once they are saved successfully. We are > trying with these parameters in

How to save images posted by application users

2020-07-15 Thread Ram
Hi, We need to save images posted by our application users and the images will be displayed in application UI once they are saved successfully. We are trying with these parameters in our settings.py but they are not working and our OS platform is Windows 10 OS. We know file paths are different

Re: How to get data from django model to excel sheet using openpyxl including images.

2020-07-10 Thread VenkataSivaRamiReddy
; >> >> >> *From: *Ashutosh Mishra >> *Sent: *10 July 2020 18:30 >> *To: *Django users >> *Subject: *Re: How to get data from django model to excel sheet using >> openpyxl including images. >> >> >> >> i have created an api through

Re: How to get data from django model to excel sheet using openpyxl including images.

2020-07-10 Thread Ashutosh Mishra
> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for > Windows 10 > > > > *From: *Ashutosh Mishra > *Sent: *10 July 2020 18:30 > *To: *Django users > *Subject: *Re: How to get data from django model to excel sheet using > openpyxl including ima

RE: How to get data from django model to excel sheet using openpyxl including images.

2020-07-10 Thread Vishesh Mangla
Api’s are better suited for Django rest framework. Sent from Mail for Windows 10 From: Ashutosh MishraSent: 10 July 2020 18:30To: Django usersSubject: Re: How to get data from django model to excel sheet using openpyxl including images. i have created an api through which i can download the excel

Re: How to get data from django model to excel sheet using openpyxl including images.

2020-07-10 Thread Ashutosh Mishra
="", upload_to="media/images",null=True) Image2=models.FileField(blank=True, default="", upload_to="media/images",null=True) Date=models.DateField(null=True,blank=True) def __str__(self): return str(self.Name) views.py class TaskViewSet(viewsets.ViewSet)

Re: How to get data from django model to excel sheet using openpyxl including images.

2020-07-10 Thread o1bigtenor
On Thu, Jul 9, 2020 at 10:02 PM Ashutosh Mishra wrote: > I am creating an api to get data and images from django model to excel > sheet ,how can i do that,someone please help me. > > > What have you tried so far? Regards -- You received this message because you are subscribe

How to get data from django model to excel sheet using openpyxl including images.

2020-07-09 Thread Ashutosh Mishra
I am creating an api to get data and images from django model to excel sheet ,how can i do that,someone please help me. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails fro

Unable to export images from django model to excel sheet

2020-07-04 Thread Ashutosh Mishra
I have posted on stack overflow.I want export images from django model to excel sheet.while doing I am just getting the root media address on excel sheet not image. Please help ,it's urgent. https://stackoverflow.com/questions/62695531/unable-to-export-images-from-django-model-to-excel-sheet

Re: Django Uploaded images not displayed in production

2020-06-22 Thread MUGOYA DIHFAHSIH
thanks Anton, i will also give nginx a try but currently the client has a domain with namecheap with shared host plan and that is where he wants me to deploy the application but name cheap has apache web server On Sun, 21 Jun 2020 at 22:10, Anton Nyagolov wrote: > So guys I have found the

Re: Django Uploaded images not displayed in production

2020-06-21 Thread Anton Nyagolov
So guys I have found the problem. My Nginx server was only serving static files but not media ones, I have probably forgot about it. My Nginx settings were: The only thing I had to do is add a location for the media folder: @MUGOYA DIHFAHSIH At the begging of setting the server I also used

Re: Django Uploaded images not displayed in production

2020-06-21 Thread MUGOYA DIHFAHSIH
Actually me too i have the same problem, i have deployed django web app on a shared host with apache linux server, and am stuck on how to serve media files, static files like js, css, and static images not from database load well. But the problem is that when i submit a form that has

RE: Django Uploaded images not displayed in production

2020-06-21 Thread Vishesh Mangla
If the issue is managing static files on the server simply installing Django-heroku saved me from all that trouble. Sent from Mail for Windows 10 From: Rob RiedlingerSent: 21 June 2020 23:40To: Django usersSubject: Re: Django Uploaded images not displayed in production Check out this video  https

Re: Django Uploaded images not displayed in production

2020-06-21 Thread Rob Riedlinger
Check out this video https://youtu.be/kBwhtEIXGII Denis talks about why this happens On Sunday, June 21, 2020 at 7:15:43 PM UTC+2, Anton Nyagolov wrote: > > Thanks I will check out the group too for future reference and etc. Those > images are uploaded to a database and are part of a

RE: Django Uploaded images not displayed in production

2020-06-21 Thread Vishesh Mangla
: Django usersSubject: Re: Django Uploaded images not displayed in production Thanks I will check out the group too for future reference and etc. Those images are uploaded to a database and are part of a model. I iterate through all the object and for each object I print some information including

Re: Django Uploaded images not displayed in production

2020-06-21 Thread Anton Nyagolov
Thanks I will check out the group too for future reference and etc. Those images are uploaded to a database and are part of a model. I iterate through all the object and for each object I print some information including the images, therefore I cannot specify only one specific image. I use

RE: Django Uploaded images not displayed in production

2020-06-21 Thread Vishesh Mangla
Hi, first of all welcome on this group. Secondly you can also try https://webchat.freenode.net/  on the #django channel but you first need to register there by asking on #freenode channel. Regarding your problem, images are static files and you should put them in static//your_desired_path

Django Uploaded images not displayed in production

2020-06-21 Thread Anton Nyagolov
runs as it is supposed to and all was fine. Since I allowed 'Nginx Full' my database images are not showing up. This is my django project structure: My virtual environment folder and my main project folder are both in the same directory. I have separated them. ```python # Create your models

Uploading images in browsable API

2020-06-16 Thread Filip Bogdanovski
Hello everyone, I was wondering if someone know why my field for uploading pictures is like this? I can't select new pictures from my computer to upload, only ones already uploaded in the model instances through my Admin panel. It looks this way on my all of my routes. Here is link for my

Re: How to handle non-uploaded dynamic images ?

2020-05-12 Thread Ryan Nowakowski
On Fri, May 08, 2020 at 06:47:22PM -0700, Dorian LE NET wrote: > Let's say I have a django app where users can display images by choosing > among infinite parameters through a form. These images do not exist before > the user generate them as they are built accordingly to its

How to handle non-uploaded dynamic images ?

2020-05-08 Thread Dorian LE NET
Let's say I have a django app where users can display images by choosing among infinite parameters through a form. These images do not exist before the user generate them as they are built accordingly to its selection of parameters. Such images are dynamically and internally generated

How to get previously uploaded Images in Django

2020-05-04 Thread Nomeh Uchenna Gabriel
You should read about customising the admin here: https://docs.djangoproject.com/en/3.0/intro/tutorial07/ ... but I suggest that you build your own website control panel which will control your website with API's -- You received this message because you are subscribed to the Google Groups

  1   2   3   4   5   6   7   8   9   10   >