How to get previously uploaded Images in Django

2020-05-03 Thread Ahmed Khairy
ser, on_delete=models.CASCADE) image = models.ImageField(blank=False, upload_to='imgs') **How can I make this a drop down list with the selected user's (designer's) all previously uploaded images to choose from instead of uploading new images** def __str__(self): return self.title -

Re: Associating comments with images

2020-04-01 Thread Jeff Waters
Thanks Andreas When I do that, I get an error message: NoReverseMatch at /photo_feed/ Could the problem be with my add_comment.html? The code for that is as follows: {% extends 'nowandthen/base.html' %} {% load staticfiles %} {% block title_block %} Add self {% endblock %} {% block body_block

Re: Associating comments with images

2020-04-01 Thread Andréas Kühne
Yeah ok - so you should use the pictures variable to iterate over to get the pictures and you should be fine! Regards, Andréas Den ons 1 apr. 2020 kl 15:26 skrev Jeff Waters : > Thank you Andreas. > > This is the views.py - >

Re: Associating comments with images

2020-04-01 Thread Jeff Waters
Thank you Andreas. This is the views.py - https://github.com/EmilyQuimby/my_now_and_then/blob/master/nowandthen/views.py -- 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: Associating comments with images

2020-04-01 Thread Andréas Kühne
Ok - so you are not really doing this correctly - I am guessing now. Can you send the code for your view as well. Because I am guessing that you aren't sending anything to the context variable "pictures". I think the other things are more or less correct (even though there are some issues with

Re: Associating comments with images

2020-04-01 Thread Jeff Waters
Thanks Andreas I think that one of the mistakes I'd made previously was to not associate particular comments with particular pictures. I've tried to rectify that using the code below. However, when I do this, the page I get is empty. Any advice would be appreciated: {% extends

Re: Associating comments with images

2020-04-01 Thread Andréas Kühne
Add the photo id to the url - so instead of having the form like this: you add it like this: and make sure that the photo_id variable is in the current context and that the comment view accepts an id. Regards, Andréas Den tis 31 mars 2020 kl 16:58 skrev Jeff Waters : > I am creating a

Associating comments with images

2020-03-31 Thread Jeff Waters
I am creating a website where users can comment on photos in a gallery. The challenge I currently have is that Django is not able to determine which of the photos the comment 'submit' button relates to. This is my HTML code for the photo gallery: comments {% if not

Re: Uploading images from media folder during runtime.

2020-03-22 Thread Sandip Nath
MMK, That is the solution for static files, not the dynamic one. How to upload images dynamically during runtime, such as the user uploads his/her profile image. On Sunday, 22 March 2020 00:21:10 UTC+5:30, Sandip Nath wrote: > > I am developing a car rental app. I have esigned it such

Re: Uploading images from media folder during runtime.

2020-03-22 Thread mmk mmk
you for your prompt reply. But it isn't clear to me. The images > of drivers is getting stored in media/driver_photos and cars in > media/car_photos, when uploaded from admin page. But car.html and > driver.html both cannot display those images. Error occurring at the img > src. I have written

Re: Uploading images from media folder during runtime.

2020-03-21 Thread Sandip Nath
Sir thank you for your prompt reply. But it isn't clear to me. The images of drivers is getting stored in media/driver_photos and cars in media/car_photos, when uploaded from admin page. But car.html and driver.html both cannot display those images. Error occurring at the img src. I have

Re: Uploading images from media folder during runtime.

2020-03-21 Thread Juan J . Moreno Piña
. ... * In your model, use ImageField for the field being used for the image. ... * Add below to your template to load your images. Yours JJM 2020-03-21 14:51 GMT-04:00, Sandip Nath : > I am developing a car rental app. I have esigned it such a way that the car > > and driver images will be

Uploading images from media folder during runtime.

2020-03-21 Thread Sandip Nath
I am developing a car rental app. I have esigned it such a way that the car and driver images will be uploaded from admin page during runtime from media folder. The models.py working fine. Images can be uploaded to the media folder. But the images are not getting diplayed on the car page

Re: Images and pdfs for production level

2020-02-15 Thread Soumen Khatua
hu, 13 Feb, 2020, 12:32 pm Soumen Khatua, >>> wrote: >>> >>>> Yes,I want to use CDN for my static files. But I don't know how to >>>> implement it. >>>> >>>> On Wed, Feb 12, 2020 at 9:04 PM Devender Kumar >>>> wrot

Re: Images and pdfs for production level

2020-02-15 Thread Devender Kumar
w how to >>> implement it. >>> >>> On Wed, Feb 12, 2020 at 9:04 PM Devender Kumar >>> wrote: >>> >>>> Some CDN >>>> >>>> On Wed, 12 Feb, 2020, 7:18 pm Soumen Khatua, >>>> wrote: >>>> >>>>

Re: Images and pdfs for production level

2020-02-13 Thread Devender Kumar
: > >> Some CDN >> >> On Wed, 12 Feb, 2020, 7:18 pm Soumen Khatua, >> wrote: >> >>> Hi Folks, >>> Where I need to store images and pdfs for production level. >>> >>> Thank you in advance >>> >>> regards, >>&

Re: Images and pdfs for production level

2020-02-12 Thread Soumen Khatua
Yes,I want to use CDN for my static files. But I don't know how to implement it. On Wed, Feb 12, 2020 at 9:04 PM Devender Kumar wrote: > Some CDN > > On Wed, 12 Feb, 2020, 7:18 pm Soumen Khatua, > wrote: > >> Hi Folks, >> Where I need to store images and pdfs for pr

Re: Images and pdfs for production level

2020-02-12 Thread Devender Kumar
Some CDN On Wed, 12 Feb, 2020, 7:18 pm Soumen Khatua, wrote: > Hi Folks, > Where I need to store images and pdfs for production level. > > Thank you in advance > > regards, > Soumen > > -- > You received this message because you are subscribed to the Google

Images and pdfs for production level

2020-02-12 Thread Soumen Khatua
Hi Folks, Where I need to store images and pdfs for production level. Thank you in advance regards, Soumen -- 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, sen

Django images to pdf conversion

2020-02-12 Thread Infinity Programmer
Dear folks You have to easily know them https://youtu.be/8IQuhH50bqc https://youtu.be/8IQuhH50bqc -- 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

Hey Folks Quick conversion of images to PDF

2020-01-22 Thread Infinity Programmer
Hi Folks Iam uploaded video for convert images to pdf using python script please sunscribe and share <https://youtu.be/8IQuhH50bqc> https://youtu.be/8IQuhH50bqc https://youtu.be/8IQuhH50bqc https://youtu.be/8IQuhH50bqc -- You received this message because you are subscribed to the

Re: ElementTree problem saving images

2019-11-07 Thread Nuno Vieira
Hi, thanks for your help. i solved the situation like this: img = props.find('images') photos = [] for child in img[:len(img)]: photos.append(child[0].text

Re: ElementTree problem saving images

2019-11-06 Thread Integr@te System
. On Wed, Nov 6, 2019, 18:13 Nuno Vieira wrote: > Thanks for your feedback. > > The problem is if i set all the urls to None before, and a property have > only 6 images of 20, on database saves the 6 images of this property and > saves also the other image columns with images f

Re: ElementTree problem saving images

2019-11-06 Thread Nuno Vieira
Thanks for your feedback. The problem is if i set all the urls to None before, and a property have only 6 images of 20, on database saves the 6 images of this property and saves also the other image columns with images from a different property, but when i use the else blocks instead

Re: ElementTree problem saving images

2019-10-24 Thread Arthur Antoine
/2019/07/IMG_7069.jpg > > > > > https://bc-villas.com/wp-content/uploads/2019/07/IMG_7071.jpg > > > > > https://bc-villas.com/wp-content/uploads/2019/07/IMG_7072.jpg > > > > > https://bc-villas.com/wp-content/uploads/2019/07/IMG_7073.jpg &g

Re: ElementTree problem saving images

2019-10-24 Thread Jody Fitzpatrick
Would something like XMLTODICT help? https://pypi.org/project/xmltodict/ import xmltodict # Third Party data = "" parsed_data =xmltodict.parse(data) # do your data thing here... -- You received this message because you are subscribed to the Google Groups "Django users" group. To

ElementTree problem saving images

2019-10-24 Thread Nuno Vieira
ads/2019/07/IMG_7075.jpg https://bc-villas.com/wp-content/uploads/2019/07/IMG_7077.jpg > It´s all working ok but with images its a litle confused because i can only save the first and the last image. If a property have 12 pictures i can only save the picture nr 1 and picture

Uploading at least 3 images per Post

2019-09-27 Thread Richard Balwane
Hello, With these models of Post and Images, I want to display and edit/delete the images along with the fields of the post. I have just added the Images model so I can have its fields in a Formset but the implementation of Model Formsets has challenged me. class Post(models.Model): title

Re: images in production mode. is pointed to a different path.

2019-08-26 Thread Aldian Fazrihady
ing trouble displaying images in production mode. is > pointed to a different path. image src points to -> > https://campeonatosdejiujitsu.com/social/file.jpg and > https://campeonatosdejiujitsu.com/social/images/file.jpg the images are at: > https://campeonatosdejiujitsu.co

Show all images per Profile

2019-08-11 Thread Sebastian Jung
Hello, i have a extend User Model like this: class Profile(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE) telefon = encrypt(models.CharField(max_length=70,default="",null=True)) and a class with documents incl. fotos: class Document(models.Model):

how to store API images in HDFS using Django

2019-08-07 Thread Saurabh Dubey
I created one API for image upload in Django. I want to stored that image into HDFS(hadoop distribution file system) is it posible. can we connect hadoop with hdfs. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

Re: MULTIPLE IMAGES UPLOAD FOR A POST

2018-11-22 Thread Pacôme Avahouin
creating a post. I'm creating a rental site > project where people can post their apart and attach files (images) to it. > One should have possibility to attach as many images as he wants to ONE > form. I have found in Internet a decision that I need to use 2 models - 1 > model for po

Re: MULTIPLE IMAGES UPLOAD FOR A POST

2018-11-22 Thread mazz ahmed
can post their apart and attach files (images) to it. > One should have possibility to attach as many images as he wants to ONE > form. I have found in Internet a decision that I need to use 2 models - 1 > model for post + 1 separate model for images. Is it so? > > Post form is created an

MULTIPLE IMAGES UPLOAD FOR A POST

2018-11-21 Thread Pacôme Avahouin
Please help me. I am new to Django, cannot undertsand the following. I have subclass of CreateView for creating a post. I'm creating a rental site project where people can post their apart and attach files (images) to it. One should have possibility to attach as many images as he wants to ONE

React Front-End for handling images and pdf files in a django model

2018-10-15 Thread 'Josie Pee' via Django users
I'm planning on using React for the front end of my web app of my django questionnaire application. I'm going to use django restframework to build the api to connect the react frontend and django backend. as the front end will be taking images in the browser and also it's a questionnaire I

Re: How to store images that was select in a form

2018-10-11 Thread kheinrichdjango
yes, i read a lot about that topic but it doesn't help me. Am Donnerstag, 11. Oktober 2018 11:24:55 UTC+2 schrieb kheinri...@gmail.com: > > Hi, > > > I have a problem about storing images > that I selected through a Form into some random folder. > > How can I do that?

Re: How to store images that was select in a form

2018-10-11 Thread PASCUAL Eric
, October 11, 2018 11:24:55 AM To: Django users Subject: How to store images that was select in a form Hi, I have a problem about storing images that I selected through a Form into some random folder. How can I do that? Also I want to show this selected image on the website. What should I do

How to store images that was select in a form

2018-10-11 Thread kheinrichdjango
Hi, I have a problem about storing images that I selected through a Form into some random folder. How can I do that? Also I want to show this selected image on the website. What should I do? Here my code: #Views.py from django.shortcuts import render from django.views.generic import

display my images available in one class using another class in webpage

2018-07-22 Thread aditya gupta
') ( In localhost Admin imagegallery = Gallery Object 2 ) How can I link my class "Assassin" to class "Gallery" object 1 and class "Batman" to class "Gallery" object 2, so that when I call object 1 of Gallery in my Html file the images of Assassin cl

display my images available in one class using another class in webpage

2018-07-21 Thread aditya gupta
') ( In localhost Admin imagegallery = Gallery Object 2 ) How can I link my class "Assassin" to class "Gallery" object 1 and class "Batman" to class "Gallery" object 2, so that when I call object 1 of Gallery in my Html file the images of Assassin cl

Re: Static images are working but static CSS is not working SS attached

2018-07-16 Thread Param Saini
On Friday, 13 July 2018 20:37:48 UTC+5:30, Param Saini wrote: > > Static Images are working perfectly in Django .. but when i try to use > static CSS or evev open Django admin panel . CSS is not implemented there > > please help on priority > -- You received this m

Re: Static images are working but static CSS is not working SS attached

2018-07-14 Thread Kasper Laudrup
Hi Param, On 2018-07-14 09:16, Param Saini wrote: I just started working on python so copying settings.py file contents below : and regarding production and development server i have no idea ... i just run it on my Laptop by using python manage.py runserver command Then you are running

Re: Static images are working but static CSS is not working SS attached

2018-07-14 Thread Param Saini
ct.com/en/2.0/topics/i18n/ LANGUAGE_CODE = 'en-us' TIME_ZONE = 'UTC' USE_I18N = True USE_L10N = True USE_TZ = True # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/2.0/howto/static-files/ STATIC_URL = '/static/' STATIC_ROOT='' STATICFILES_DIRS = [ STATIC_DIR, ]

Re: Static images are working but static CSS is not working SS attached

2018-07-13 Thread Kasper Laudrup
Hi Param, On 2018-07-13 16:29, Param Saini wrote: Static Images are working perfectly in Django .. but when i try to use static CSS or evev open Django admin panel . CSS is not implemented there Are you running the development server or is this in production? If it is in production, have

Static images are working but static CSS is not working SS attached

2018-07-13 Thread Param Saini
Static Images are working perfectly in Django .. but when i try to use static CSS or evev open Django admin panel . CSS is not implemented there please help on priority -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubs

cors and images via dj-static

2018-04-19 Thread Andy
Hi, is there a way to serve media files via dj-static with the addition of CORS headers? -- 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: Admin adding images to blog via the admin section

2017-12-23 Thread carlos
try with django-ckeditor but used ckeditor_uploader in setting Cheers On Fri, Dec 22, 2017 at 2:55 PM, Krafty Coder <agtychefort...@gmail.com> wrote: > How Can I add images to a my blog dynamically at any place while writing > my blog... > > I found a tutorial on adding images

Admin adding images to blog via the admin section

2017-12-22 Thread Krafty Coder
How Can I add images to a my blog dynamically at any place while writing my blog... I found a tutorial on adding images to the form while people comment but I wasn't able to add it as am describing it to you. Any one please help, I have a link to the github repo, Y ̀̀all are welcome

Re: Displaying multiple images in a blog post

2017-09-24 Thread Srinivas Nyayapati
Hello I was wondering if you were able to get this to work? I was thinking of having a many to many relationship with the images class with the addition to having a name field to describe the image. Use the name field in the Post body using some sort of non-django tag to spread my multiple

Re: Images are not displaying

2017-06-16 Thread Antonis Christofides
in-production/ Regards, Antonis Antonis Christofides http://djangodeployment.com On 2017-06-16 08:44, Santosh Yelamarthi wrote: > Hi, > > am using django 1.10 version. am unable to display images in web. > > my app name -- polls > > I created templates direc

Re: Images are not displaying

2017-06-16 Thread Carl
Hi! Because static is a folder on the root of your website, try putting a slash in front of static; for example, Hope this helps. :-) Sincerely, Carl Original Message Subject: Images are not displaying Local Time: June 16, 2017 1:44 AM UTC Time: June 16, 2017 5:44 AM From

Re: Images are not displaying

2017-06-16 Thread 'Abraham Varricatt' via Django users
If this is a production deployment, you probably need to run collectstatic and test if static files are being served correctly - more a deployment issue than a django matter. But, if you are testing with 'runserver' on a development system ... without exact knowledge of your folder structure,

Images are not displaying

2017-06-16 Thread Santosh Yelamarthi
Hi, am using django 1.10 version. am unable to display images in web. my app name -- polls I created templates directory and i put my *home.html* over there ** ** ** ** ** ** I created static folder and i put my image *logo.jpg* over there In my views file I imported home.html : *from

Re: Displaying the multiple images in the product detail page

2017-04-25 Thread m712 - Developer
a.moazzam@gmail.com> wrote:            {% for item in product.productimage_set.all %}                                          {% endfor %}     this code is displaying different images of a single product ,but the question is how to slice them ,how to get image[0], image[1] ..on the product page..

Re: Displaying the multiple images in the product detail page

2017-04-25 Thread m712 - Developer
s code is displaying different images of a single product ,but the question is how to slice them ,how to get image[0], image[1] ..on the product page...can any one help??On Tuesday, April 25, 2017 at 9:53:15 PM UTC+5, hadiqak...@gmail.com wrote:i am trying to display a set of images with the use of inde

Re: Displaying the multiple images in the product detail page

2017-04-25 Thread Shamaila Moazzam
{% for item in product.productimage_set.all %} {% endfor %} this code is displaying different images of a single product ,but the question is how to slice them ,how to get image[0], image[1] ..on the product page... can any

Re: Displaying the multiple images in the product detail page

2017-04-25 Thread hadiqakhurshid1
i am trying to display a set of images with the use of index. here is the code: {% for item in product.productimage_set.all %} {% endfor %} the above code is displaying a set of images for one product .right. i want to display

RE: Displaying the multiple images in the product detail page

2017-04-25 Thread Matthew Pava
You could reference the images from your Product object like so: product.image_set.all() You may want to use models.ImageField, which inherits from models.FileField, instead of models.FileField For more information: https://docs.djangoproject.com/en/1.11/topics/db/examples/many_to_one/ https

Displaying the multiple images in the product detail page

2017-04-25 Thread hadiqakhurshid1
I have created a separate image class where you can add images but I'm unable to show the multiple images on the product detail page. If anyone can guide me, it would be great. class Image(models.Model): active = models.BooleanField(default=True) product = models.ForeignKey(Product

Re: Displaying multiple images in a blog post

2017-04-19 Thread HBat
Thanks for the response. If I put a template tag within the post.body then the tags might not be rendered because only detail.html will be rendered the tags within the post. body will be seen as raw texts. Currently, I'm thinking about using an approach like Markdown images <ht

Re: Displaying multiple images in a blog post

2017-04-10 Thread ludovic coues
I would be a bit wary of a django blog making use of template tag. Anyway, I believe your code should be more like that: {{ post.images[2].image.url }}. Personally, I would delegate fetching the url to another part of the code. Something like one endpoint would return a list of images. A piece

Re: Displaying multiple images in a blog post

2017-04-09 Thread HBat
(I don't know what happened to original post.) Suppose I have two images, "\media\images\image1.jpg" and "\media\images\image2.jpg". I want to display them in a blog post that I've written. I thought I should create a model for images but with multiple images I cannot f

Displaying multiple images in a blog post

2017-04-09 Thread hbat
Suppose I have two images, "\media\images\image1.jpg" and "\media\images\image2.jpg". I want to display them in a blog post that I've written. I thought I should create a model for images but with multiple images I cannot figure out how to add them to the body of my blog post.

Re: DJANGO images(upload/download)

2017-02-03 Thread Melvyn Sopacua
On Thursday 02 February 2017 08:09:20 Xristos Xristoou wrote: > who is the better method to take images from uses(visitors)on the fly > on my web site and to return the new images(with some processing) > back to users using DJANGO? Start here: * https://docs.djangoproject.com/en/1

DJANGO images(upload/download)

2017-02-02 Thread Xristos Xristoou
who is the better method to take images from uses(visitors)on the fly on my web site and to return the new images(with some processing) back to users using DJANGO? i am new i dont know how to connect my python script with the html templates to take the images and how to return. for example

Re: Upload Images from Remote Server

2016-11-22 Thread pradam programming
t;> > >> The actual full stacktrace and at least the relevant function in your > >> code would be nice. > >> > >> 2016-11-21 14:09 GMT+01:00 pradam programming > >> <pradam.programm...@gmail.com>: > >> > hi Guys, >

Re: Upload Images from Remote Server

2016-11-22 Thread ludovic coues
On Tue, Nov 22, 2016 at 2:56 PM, ludovic coues <cou...@gmail.com> wrote: >> >> The actual full stacktrace and at least the relevant function in your >> code would be nice. >> >> 2016-11-21 14:09 GMT+01:00 pradam programming >> <pradam.programm...@gmail.com&g

Re: Upload Images from Remote Server

2016-11-22 Thread pradam programming
ould be nice. > > 2016-11-21 14:09 GMT+01:00 pradam programming < > pradam.programm...@gmail.com>: > > hi Guys, > > 1.I have Created an API which store images into database just giving > image > > path but issue is when i remotely upload image using API i wi

Re: Upload Images from Remote Server

2016-11-22 Thread ludovic coues
The actual full stacktrace and at least the relevant function in your code would be nice. 2016-11-21 14:09 GMT+01:00 pradam programming <pradam.programm...@gmail.com>: > hi Guys, > 1.I have Created an API which store images into database just giving image > path but issue is

Upload Images from Remote Server

2016-11-21 Thread pradam programming
hi Guys, 1.I have Created an API which store images into database just giving image path but issue is when i remotely upload image using API i will get the following error show no such file or Directory eg: [ {'name':'foo','date':'2016-11-21','organization_name':'buzz','description':'Abhilash

How to save images present in Django application directory to models

2016-09-22 Thread Krishn Bera
I am making a Django application that will do some sort of image manipulation. As an intermediate step, I am generating new images in the Django application directory. Now I want to save these images(.jpg) to a model that contains ImageField. How should I go about saving this image in database

Re: Compressing images before saving to database

2016-09-16 Thread Javier Guerra Giraldez
On 16 September 2016 at 05:45, Isaac Tetteh <itetteh...@gmail.com> wrote: > I have a project where users upload photos of any type. But i want to > compress the images before saving them. Is pillow the best i can use or Is > there a built in or 3rd party library to do

Compressing images before saving to database

2016-09-16 Thread Isaac Tetteh
hello, I have a project where users upload photos of any type. But i want to compress the images before saving them. Is pillow the best i can use or Is there a built in or 3rd party library to do this. Its link to documentation will be appreciated too. Thanks! -- You received this message

Re: pywkhtmltopdf [Was: [mezzanine-users] Re: Images in .pdf Invoice]

2016-07-06 Thread Mike Dewhirst
Akhil thank you. I'll bookmark your advice for later. At this point staying with a functional view might be less work. Next views to be written will probably be class based Cheers Mike Akhil Lawrence wrote: >To answer  how do I change from function based views to

Re: Error uploading images

2016-07-02 Thread Lee Hinde
il.com > <javascript:_e(%7B%7D,'cvml','leehi...@gmail.com');>> wrote: > >> Using django-storages to put user uploaded files on s3. >> >> Uploading images in the shell works fine. So, I assume I've got >> django-storages and boto installed fine and S3 configured

Re: Error uploading images

2016-07-02 Thread Vijay Khemlani
The typical problem is forgetting to add the enctype='multipart/form-data' attribute to the form tag On Sat, Jul 2, 2016 at 9:40 PM, Lee Hinde <leehi...@gmail.com> wrote: > Using django-storages to put user uploaded files on s3. > > Uploading images in the shell works fine. So

Error uploading images

2016-07-02 Thread Lee Hinde
Using django-storages to put user uploaded files on s3. Uploading images in the shell works fine. So, I assume I've got django-storages and boto installed fine and S3 configured correctly. Uploading in real-life, doesn't work. The error I get back is that the image field is required. The model

Re: pywkhtmltopdf [Was: [mezzanine-users] Re: Images in .pdf Invoice]

2016-06-30 Thread Akhil Lawrence
To answer *how do I change from function based views to class based views,* The simplest way to do that is, create a view file as below: from django.views.generic import View class ViewName(View): def get(self, request, *args, **kwargs): def post(self, request, *args,

pywkhtmltopdf [Was: [mezzanine-users] Re: Images in .pdf Invoice]

2016-06-28 Thread Mike Dewhirst
Sorry for hijacking a thread from Mezzanine ... On 29/06/2016 11:22 AM, Sam Kingston wrote: I'm not sure if this will help you or not, but I developed a replacement library for xhtml2pdf (though not a drop-in): https://github.com/sjkingo/pywkhtmltopdf Thank you Sam :) Do you have a separate

Re: Django - Crop Images with jquery and after that save them on cdn

2016-06-12 Thread Ilyes Hammadi
Hi, i also started using django-image-cropping and i found that we can specify a custom Jquery version in the Django settings like this IMAGE_CROPPING_JQUERY_URL = "" On Thursday, June 9, 2016 at 9:34:53 PM UTC+1, sevenr...@gmail.com wrote: > > I'm try to use jquery and python to "crop" a

Django - Crop Images with jquery and after that save them on cdn

2016-06-09 Thread sevenrrainbow
I'm try to use jquery and python to "crop" a image in Django. I want to work in admin but also in front-end. The user selects a box/rectangle, for the portion of the image that he want to crop. django-image-cropping package

Re: Having a problem loading images and other content for some reason..

2016-05-09 Thread ludovic coues
wanted however the > images refuse to load and the menu doesn't respond to anything like it > should.. > Very lost and appreciate any help.. > > > > > > {% load staticfiles %} > > > > amwa > > > {% load staticfiles %} >

Re: Storing images in a database using Django.

2016-05-06 Thread Gabriel Marcondes
. [0] https://github.com/jschneier/django-storages On Fri, May 6, 2016 at 11:34 PM, m1chael <myk...@gmail.com> wrote: > Storing images in a database will be loads of headache later. Like someone > else said: store only the paths! Use FileField/imagefield > On May 6, 2016 7:26

Re: Storing images in a database using Django.

2016-05-06 Thread m1chael
Storing images in a database will be loads of headache later. Like someone else said: store only the paths! Use FileField/imagefield On May 6, 2016 7:26 PM, "Adam Stein" <a...@csh.rit.edu> wrote: > You can take a look at django-db-file-storage > > https://readthedocs.or

Re: Storing images in a database using Django.

2016-05-06 Thread Adam Stein
o say that there's no use case for storing > images in databases, but in general, André's advice is solid: store > the path instead. Your OS is good at managing files. Let it do its > job. > > On Fri, May 6, 2016 at 2:53 PM, André Machado > com> wrote: > > NEVER store

Re: Storing images in a database using Django.

2016-05-06 Thread Alex Heyden
settings that you can use to hold uploaded files. You can also use Django to serve these files if you want. (I tend to use nginx directly for this for performance reasons, but you do what works for you.) I wouldn't go so far as to say that there's no use case for storing images in databases

Re: Storing images in a database using Django.

2016-05-06 Thread André Machado
NEVER store images in DB, store its path so you can use it in a img tag later. =) Em sexta-feira, 6 de maio de 2016 16:06:08 UTC-3, Mlati Mudan escreveu: > > > Hi guys, I'm a TOTAL noob when it comes to django and web development for > that matter. I have an idea for a web app a

Storing images in a database using Django.

2016-05-06 Thread Mlati Mudan
think storing them in a database is the way to go. The only snag - I have absolutely no idea how to do it. I've googled a lot but I'm either too thick or my needs are too specific. I don't actually need to be able to store the images in the database through the web app. I was thinking of creating

Having a problem loading images and other content for some reason..

2016-05-06 Thread Yakir Gabay
Hello I'm very new to Django and very confused I have basic familiarity with HTML. Hosted a website on my localhost, the CSS loads like I wanted however the images refuse to load and the menu doesn't respond to anything like it should.. Very lost and appreciate any help.. {% load

Displaying a list of images

2016-04-13 Thread ayshalab
Hello, I can display single images that are manually uploaded fine, but how can I display a group of images inside a certain directory? Instead of manually typing the image file names each time there is a new image added to the folder? So if I have 2 images or 20 images stored, I would like

Re: Not displayed my Images for website, django-admin, VideoJs, MediaElement

2016-02-20 Thread James Schneider
On Feb 20, 2016 1:58 PM, wrote: > > I do not known - Why. > > Example page from website: http://eugenelysenkowebsite.pythonanywhere.com/en/contact_me/about_me/ > > Example from settings > --- > import re > from .base import * > DEBUG = False >

Not displayed my Images for website, django-admin, VideoJs, MediaElement

2016-02-20 Thread setivolkylany
I do not known - Why. Example page from website: http://eugenelysenkowebsite.pythonanywhere.com/en/contact_me/about_me/ Example from settings --- import re from .base import * DEBUG = False ALLOWED_HOSTS = ['eugenelysenkowebsite.pythonanywhere.com']

Re: How to use Python Requests Module to upload images to Django Application?

2015-07-23 Thread Ted Thomas
My Python code started working after I changed on line. Changing: files_dct = {filename:fobj} to: files_dct = {('photo',(filename, fobj,'image/jpg'))} Now it works. My conjecture about the need for different HTTP-headers was wrong. The working code has not changed the headers

How to use Python Requests Module to upload images to Django Application?

2015-07-23 Thread Ted Thomas
I am developing a django application that primarily uses web browsers to upload scientific data that includes some image files. Currently, the application works fine when Firefox or Chrome are used. Both images and other data are correctly uploaded. Occasionally users need to upload larger

Re: django-summernote WYSIWYG editor: mixing modelForm and model, problem with Images

2015-06-03 Thread hemulin
oad image from URL" option in the >>>> summernote dialog, the url is inserted well, both in the preview and in >>>> the >>>> displayed article ( tag with the url src in the right place in >>>> form.cleaned_data['text']). >>>> >>

Re: django-summernote WYSIWYG editor: mixing modelForm and model, problem with Images

2015-06-02 Thread James Schneider
>>> >>> Evidently the problem exists only when uploading a local image. Which >>> leads me to the assumption that there is a problem with my media settings... >>> >>> What I have is this: >>> STATIC_URL = '/static/' >>> MEDIA_ROOT = os.path

Re: django-summernote WYSIWYG editor: mixing modelForm and model, problem with Images

2015-06-02 Thread hemulin
e problem exists only when uploading a local image. Which >> leads me to the assumption that there is a problem with my media settings... >> >> What I have is this: >> STATIC_URL = '/static/' >> MEDIA_ROOT = os.path.join(PROJECT_PATH, "static", "media") >>

Re: django-summernote WYSIWYG editor: mixing modelForm and model, problem with Images

2015-06-02 Thread James Schneider
path.join(PROJECT_PATH, "static", "media") > MEDIA_URL = "media/" > > url(r'^media/(?P.*)$', 'django.views.static.serve', { > 'document_root': settings.MEDIA_ROOT, 'show_indexes': True > }), > > I can access the uploaded ima

Re: django-summernote WYSIWYG editor: mixing modelForm and model, problem with Images

2015-06-02 Thread hemulin
dia/(?P.*)$', 'django.views.static.serve', { 'document_root': settings.MEDIA_ROOT, 'show_indexes': True }), I can access the uploaded images via 'media/' and browsing through the folders, so I thought it's set up well, no I'm not so sure. Any idea what's going on here? On Tuesday,

Re: django-summernote WYSIWYG editor: mixing modelForm and model, problem with Images

2015-06-01 Thread James Schneider
> 2) The widget is displayed well within iframe > 3) When uploading an image I get the "mime interpreted as text blah blah > blah" error > 4) After saving, when displaying the article, the text is displayed well > with all the markup but no image is displayed > 5) For

<    1   2   3   4   5   6   7   8   9   10   >