Re: Multiple image upload using Django, Vuejs and Axiox

2021-11-20 Thread Gabo LaTo
how are you sending the files from the client? It seems to me you're reading the files metadata but you are not accessing the image binaries to store them. Look at this example. It's made in angular but it can give you an idea:

Re: Multiple image upload using Django, Vuejs and Axiox

2021-11-19 Thread Omkar Parab
Check, whether you've added "upload_to" in your Image Field and add MEDIA_ROOT & MEDIA_URL in settings.py file or not. On Sat, Nov 20, 2021, 10:36 AM Alam Khazi wrote: > Hi, > By using Vuejs, Axiox and Django, Uploading multiple images. After > uploading images are getting in list and then

Multiple image upload using Django, Vuejs and Axiox

2021-11-19 Thread Alam Khazi
Hi, By using Vuejs, Axiox and Django, Uploading multiple images. After uploading images are getting in list and then those list of images names we are storing into backend in ImageField image is saving into database but not saving into media folder. ['nature6.jpg', 'nature5.jpg', 'nature4.jpg',

Re: Image upload using django-summernote is ok in admin panel but not showing to user

2020-09-05 Thread sourav chakraborty
Thanks, sure will try and let you know, On Sat, Sep 5, 2020, 18:06 hans alexander wrote: > You can use CKEditor 5 for creating content. > Check this > > https://jawaban.online/scope/outlink/6025/django-ckeditor-pypi/ > > > On Sat, Sep 5, 2020 at 6:46 PM sourav chakraborty > wrote: > >> Yes,

Re: Image upload using django-summernote is ok in admin panel but not showing to user

2020-09-05 Thread hans alexander
You can use CKEditor 5 for creating content. Check this https://jawaban.online/scope/outlink/6025/django-ckeditor-pypi/ On Sat, Sep 5, 2020 at 6:46 PM sourav chakraborty wrote: > Yes, but please suggest what should be the type of field then? As I want > to use an editor to write content as

Re: Image upload using django-summernote is ok in admin panel but not showing to user

2020-09-05 Thread sourav chakraborty
Yes, but please suggest what should be the type of field then? As I want to use an editor to write content as well as upload images specific to content. On Sat, Sep 5, 2020 at 4:59 PM Ogunsanya Opeyemi < ogunsanyaopeye...@gmail.com> wrote: > You are rendering the image tag img inside a textbox

Re: Image upload using django-summernote is ok in admin panel but not showing to user

2020-09-05 Thread Ogunsanya Opeyemi
You are rendering the image tag img inside a textbox area. On Saturday, September 5, 2020, sourav chakraborty wrote: > Hi All, > > I'm testing on Some Quiz project, while in admin panel using Summernote > admin can see the text editor and upload and the uploaded image > > class

Image upload using django-summernote is ok in admin panel but not showing to user

2020-09-05 Thread sourav chakraborty
Hi All, I'm testing on Some Quiz project, while in admin panel using Summernote admin can see the text editor and upload and the uploaded image class QuestionAdmin(SummernoteModelAdmin): summernote_fields = ('text',) admin.site.register(Question, QuestionAdmin) However, the user/student

Re: Django, Markdownx, image upload from admin after deployment

2020-05-02 Thread Atsunori Kaneshige
Hi, Yashwanth, Thank you for your reply. I watched it, but this is nothing to do with markdownx. I implemented markdownx, https://github.com/neutronX/django-markdownx. This is working properly locally and I can upload images by drag in my admin site. *However, I cannot drag and drop images from

Re: Django, Markdownx, image upload from admin after deployment

2020-05-02 Thread yashwanth balanagu
https://www.youtube.com/watch?v=0Ov1Yd1uCuA once see this video -- 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

Django, Markdownx, image upload from admin after deployment

2020-05-02 Thread Atsunori Kaneshige
deployment and everything works fine *However, only image uploading from admin site in production is not working.* Since everything works fine locally, I have trouble in figuring out what is a possible solution for this. Could anyone give an advice about this image upload issue? I really appreciate

Re: Image Upload

2020-02-28 Thread Naveen Arora
Hi, Have a look herer - https://www.techiediaries.com/django-rest-image-file-upload-tutorial/ and https://stackoverflow.com/questions/20473572/django-rest-framework-file-upload Cheers On Friday, 28 February 2020 17:05:28 UTC+5:30, Soumen Khatua wrote: > > Hi Folks, > > I'm using DRF APIView

Image Upload

2020-02-28 Thread Soumen Khatua
Hi Folks, I'm using DRF APIView to upload images, but I don't know how to write a POST request to accept image. Please advise me how I can do it? my *serializers.py* *class ImageSerializer(serializers.ModelSerializer):class Meta: model = Profilefields = ['user','profile_pic']

Re: Django 2.1: Image upload form code displays no error - image not saved

2019-04-11 Thread kamibarut609
*NOTE: in the **handle_uploaded_file(**) function, the exact filename is: test.txt* On Thursday, 11 April 2019 15:11:03 UTC+2, kamiba...@gmail.com wrote: > > Hi, > > You will find the relevant files (models.py and views.py) on the following > link: https://pastebin.com/raw/UTfNRuXw > > The

Django 2.1: Image upload form code displays no error - image not saved

2019-04-11 Thread kamibarut609
Hi, You will find the relevant files (models.py and views.py) on the following link: https://pastebin.com/raw/UTfNRuXw The above code works, the template is rendered with no errors. For some reasons, the image file is never saved. Note: I was inspired by the following Django developer

Re: Image Upload in admin panel

2019-02-20 Thread Ryan Nowakowski
Check out ImageField: https://docs.djangoproject.com/en/2.1/ref/models/fields/#imagefield On February 14, 2019 12:37:04 PM CST, Surajeet Das wrote: >How do I upload images from admin panel and retrieve from a html page ? > >-- >You received this message because you are subscribed to the Google

Re: Image Upload in admin panel

2019-02-14 Thread Akash Purandare
Hey Surajeet At first, you will need to create a model with the Field `ImageField`(do not forget to install pillow using `pip install pillow`) in the models.py of your app. Then, you will need to register that model to admin.py of the app and then start the webserver. So, you will be able to

Image Upload in admin panel

2019-02-14 Thread Surajeet Das
How do I upload images from admin panel and retrieve from a html page ? -- 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: Adding crop and rotate to django image upload

2018-12-11 Thread 2012 . us
Thanks for the reply Mark! We are looking for a programmer who can do this for us... On Wednesday, October 24, 2018 at 5:33:02 PM UTC-6, mark wrote: > > You could look at this project for ideas on how to accomplish your crop > and rotate actions -

Re: Adding crop and rotate to django image upload

2018-10-24 Thread Mark Phillips
You could look at this project for ideas on how to accomplish your crop and rotate actions - https://github.com/matthewwithanm/django-imagekit However, if you want the user to manually crop and rotate the image on your site while looking at a Django view, then you will have to use some Javascript

Adding crop and rotate to django image upload

2018-10-24 Thread 2012 . us
Hello, I confess that I have no experience with django. I have a project where the django app was written by developers and I want to add a few things to a form that uploads an image. The image currently uploads but the user cannot rotate and crop the image to their liking. The site is using

Re: Multiple image upload in Django using AJAX & jQuery

2018-06-22 Thread Jani Tiainen
Please! > > > https://stackoverflow.com/questions/50982220/multiple-image-upload-in-django-using-ajax-jquery > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails

Multiple image upload in Django using AJAX & jQuery

2018-06-22 Thread Keerthan Bhat
Can someone please help me in this? This thing is literally giving me headache from past few weeks. Please help. Please! https://stackoverflow.com/questions/50982220/multiple-image-upload-in-django-using-ajax-jquery -- You received this message because you are subscribed to the Google Groups

Re: Image Upload

2016-05-12 Thread Nikolas Stevenson-Molnar
Try removing this line: new_item.image = request.FILES['image’] That should already be handled for you by the form. > On May 12, 2016, at 6:30 PM, Jagdeep Sidhu wrote: > > In this i am getting the message "Image added successfully" but it not going > in the database >

Image Upload

2016-05-12 Thread Jagdeep Sidhu
In this i am getting the message "Image added successfully" but it not going in the database #models.py class Image(models.Model): user = models.ForeignKey(settings.AUTH_USER_MODEL, related_name='images_created') title = models.CharField(max_length=200) slug =

Django Shell image upload _io.BufferedReader no attribute size

2016-03-02 Thread Povilas Kudriavcevas
down votefavorite <http://stackoverflow.com/questions/35732150/django-shell-image-upload-io-bufferedreader-no-attribute-size#> My problem is that when I try to save image to my model using Django shell I get this error that I can't find solution anywere. models.py class AdImage(models

Re: Database field for Image Upload

2014-10-29 Thread Bill Freeman
Note that if these images will be displayed on the site it is best done by your front end (Apache, ngnx, etc.) since the HTML to show them treats them as a separate request, and serving static files is your front end's forte. The front end knows how to do this with files, but probably not with

Re: Database field for Image Upload

2014-10-29 Thread pjotr
https://docs.djangoproject.com/en/1.7/ref/models/fields/#imagefield The image file will not be stored in the database, but in MEDIAROOT by default. So maybe this is not the answer to your question. On Wednesday, October 29, 2014 10:18:30 AM UTC+1, Shubham Gupta wrote: > > Is there any way from

Database field for Image Upload

2014-10-29 Thread Shubham Gupta
Is there any way from which i can add image as a field so that images are added into my database? what data type i must use for this problem..? thank you in advance -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

Re: Image upload problem with UserProfile and my form

2014-08-04 Thread Collin Anderson
Set MEDIA_URL to '/media/' or something. Then add static() to your urls.py if you haven't. https://docs.djangoproject.com/en/dev/howto/static-files/#serving-files-uploaded-by-a-user-during-development -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Image upload problem with UserProfile and my form

2014-08-03 Thread Pepsodent Cola
Hi, No luck the image still points to the wrong location. There was a link however when clicked it says this. Page not found (404) Request Method: GET Request URL: http://127.0.0.1:8000*/accounts/profile/* 1406912993_56_tumblr_m5xo9h5X3E1qgfdhto1_500.gif I'm suspecting it's how my url confs

Re: Image upload problem with UserProfile and my form

2014-08-01 Thread Collin Anderson
This looks wrong to me: > > > so maybe, rearranging your code a bit: {% if form.avatar %} {% endif %} {{ form.avatar }} -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Image upload problem with UserProfile and my form

2014-08-01 Thread Pepsodent Cola
Hi, I have problems displaying my avatar image which I have uploaded from my forms page. The browser source code seem to say that it cannot find the correct path to my uploaded image file. Which file or files do I need to fix? Profilehttp://127.0.0.1:8000/accounts/profile/>"

Re: image upload

2014-07-31 Thread ngangsia akumbo
no On Thursday, July 31, 2014 4:43:15 PM UTC+1, cmawe...@gmail.com wrote: > > Are you using ? > > On Thursday, July 31, 2014 7:20:19 AM UTC-4, ngangsia akumbo wrote: >> >> i have a problem of displaying my image on my web page. >> >> i have upload my pic in admin and when i display it it shows

Re: image upload

2014-07-31 Thread cmawebsite
Are you using ? On Thursday, July 31, 2014 7:20:19 AM UTC-4, ngangsia akumbo wrote: > > i have a problem of displaying my image on my web page. > > i have upload my pic in admin and when i display it it shows me the this > > media/Lighthouse_1.jpg > > models.py > > class Image(models.Model): >

image upload

2014-07-31 Thread ngangsia akumbo
i have a problem of displaying my image on my web page. i have upload my pic in admin and when i display it it shows me the this media/Lighthouse_1.jpg models.py class Image(models.Model): title = models.CharField(max_length=60, blank=True, null=True) image =

Re: Django image upload not saving

2014-06-26 Thread Darren Spruell
On Thu, Jun 26, 2014 at 10:58 AM, Bobby Gulshan wrote: > No errors when hitting upload. But the image doesn't appear where I have > indicated it ought to. Put an absolute path in MEDIA_ROOT and referenced the > same in (upload_to) param ImageField. Not sure what I am missing.

Re: Django image upload not saving

2014-06-26 Thread Mario Gudelj
I always follow a similar pattern for media uploads and it works, so here it is: in settings.py PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__)) MEDIA_URL = '/media/' MEDIA_ROOT = os.path.join(PROJECT_ROOT, 'media') in your model: file = models.ImageField(upload_to='wiki') say you

Django image upload not saving

2014-06-26 Thread Bobby Gulshan
No errors when hitting upload. But the image doesn't appear where I have indicated it ought to. Put an absolute path in MEDIA_ROOT and referenced the same in (upload_to) param ImageField. Not sure what I am missing. Model: class FileUploadHandler(models.Model): title =

django-ckeditor image upload giving wrong url of the image

2013-10-17 Thread Robin Lery
When I try text editing and other text related stuffs and save it, the editor does its job nicely. But when I try to upload an image it just take a different url. I am on windows. Is it because of this, cause I saw a post on this

Image upload on record that already exists

2013-05-10 Thread Hélio Miranda
Hi I'm doing a test to insert images in mongodb with GridFS. I am using mongoengine. I have this code: def index (request): if request.method == 'POST': MovieTitle = 'Avatar' Movie movie = (= movieTitle movieTitle) my_painting = Movie (movieTitle =

Image upload remove old files - is there a better way then mine?

2012-12-19 Thread Detectedstealth
Hi, For my application I created a custom ImageField (code below) as I need to automatically generate a few different sets of thumbnails. I read the posts on the requests for Django to delete old images when uploading, and was blown away to see the request for that feature turned down. I still

Re: Django-Classifieds image upload issue

2012-11-26 Thread Swaroop Shankar V
Any help please..thanks On Nov 25, 2012 3:34 PM, "Swaroop Shankar V" wrote: > > Hello All, > I am trying to create a classifieds for my sites using django calssifieds. When ever I try to upload files from the user side, am getting the error > > OSError at

Re: Help Required with Image Upload

2011-10-27 Thread Tom Evans
On Wed, Oct 26, 2011 at 9:06 PM, Swaroop Shankar V wrote: > Hello All, > Am pretty new to Django. I am trying to create a form which will upload an > image and then enable the user to crop visually (using JCrop plugin). Am > not completely sure on how to implement this in

Help Required with Image Upload

2011-10-26 Thread Swaroop Shankar V
Hello All, Am pretty new to Django. I am trying to create a form which will upload an image and then enable the user to crop visually (using JCrop plugin). Am not completely sure on how to implement this in Django. I am thinking of first saving the uploaded image into the disk as a jpeg file and

Re: Django image upload

2011-10-06 Thread Ian
So should I put it in a try/catch block to verify it's an image? Also, how do I go about saving it as a different name (as the ID of the model, for example)? On Oct 6, 7:26 pm, Kurtis Mullins wrote: > ImageField uses PIL (Python Imaging Library) to verify if it's a

Re: Django image upload

2011-10-06 Thread Ian
So should I put it in a try/catch block to verify it's an image? Also, how do I go about saving it as a different name (as the ID of the model, for example)? On Oct 6, 7:26 pm, Kurtis Mullins wrote: > ImageField uses PIL (Python Imaging Library) to verify if it's a

Re: Django image upload

2011-10-06 Thread Kurtis Mullins
ImageField uses PIL (Python Imaging Library) to verify if it's a valid image, if I understand it correctly. On Thu, Oct 6, 2011 at 6:21 PM, Ian wrote: > Ah! Got it working! How do I make sure the files are only images? Is > there a way to check the extension? Also, how

Re: Django image upload

2011-10-06 Thread Ian
Ah! Got it working! How do I make sure the files are only images? Is there a way to check the extension? Also, how would I rename the file? Thanks! On Oct 6, 3:46 pm, bazaarsoft wrote: > Noticed a couple of typos in my reply: > > > I have "MEDIA_ROOT = '/Users/storefiles/'

Re: Django image upload

2011-10-06 Thread bazaarsoft
Noticed a couple of typos in my reply: > I have "MEDIA_ROOT = '/Users/storefiles/' in my settings.py folder, file, not folder > and the upload_to param in my model set to 'pluginFiles/%Y/%m/%H/%M/'. is actually 'pluginFiles/%Y/%m/%d/%H/%M/' jay On Oct 6, 2:41 pm, bazaarsoft

Re: Django image upload

2011-10-06 Thread bazaarsoft
> Also, I'm confused whether upload_to should be set in settings.py or > models.py It's actually a mix - if you have MEDIA_ROOT defined in settings.py, then it will use that as the first part of the path. Then, what you pass in the upload_to field will be appended to that. So, in my case, I have

Re: Django image upload

2011-10-06 Thread Ian
I can't seem to get it working. It won't let my sync the database with this code: image = ImageField(upload_to=None[, max_length=100, **options]) Also, I'm confused whether upload_to should be set in settings.py or models.py Thanks! On Oct 6, 6:11 am, BILLION Sébastien

Re: Django image upload

2011-10-06 Thread BILLION Sébastien
Hi, http://www.nitinh.com/2009/02/django-example-filefield-and-imagefield/ It the same for ImageField BILLION Sébastien the Answer to the ultimate question of life, the universe and everything is 42 http://www.sebastienbillion.com/ Le 06/10/2011 05:22,

Django image upload

2011-10-05 Thread Ian
Hey Everyone, I'm new to django, but I love it so far! I'm trying to figure out how to upload an image (restrict it to images only) and resave it as a different name. Eventually, I'll want to upload it to S3, but for now, I'm just testing it on my computer with runserver (so I'm not sure where

Image upload / embedding

2011-09-14 Thread Petey
I have an application which is designed for publishing blog posts etc. I upload images but normally they are at the end of the text because they are uploaded after I save the entry, that means I cant embedd them directly inside the text. Is there any way I can add new images directly inside

Re: Image upload from another website using image url

2011-05-09 Thread nederhoed
Hi Esam, first of all: form = Addpic(request.POST) Secondly, could you respond to my 3 suggestions, are they clear? Why would start processing the form before checking if it is valid? See also: http://docs.djangoproject.com/en/dev/topics/forms/ Good luck! RR On May 9, 8:45 pm, esam al deen

Re: Image upload from another website using image url

2011-05-09 Thread esam al deen
@nederhoed: what i need to to do is allow user to store files from anywhere include another web site , when user give me a file "browse button " i get it and store it, another method that user can give me file url >>www.example.com/main.jpg ,, i wrote the code that got the file and stored it

Re: Image upload from another website using image url

2011-05-09 Thread esam al deen
@nederhoed: what i need to to do is allow user to store files from anywhere include another web site , when user give me a file "browse button " i get it and store it, another method that user can give me file url >>www.example.com/main.jpg ,, i wrote the code that got the file and stored it

Re: Image upload from another website using image url

2011-05-09 Thread nederhoed
Hi Esam, If I understand you correctly, you want to preserve the image data even if the user used an invalid value in another form field, rendering the form invalid? You could: 1. add the image to the user's session, without saving it to the DB. 2. add the image URL to the user's session,

Image upload from another website using image url

2011-05-09 Thread esam al deen
i want to make an image uploader using images links on the internet (eq: .example.com/image.jpg). The user writes the previous url and then my model upload it. This my code: form>> view.py def Post_date(): if request.method == 'POST': form = Addpic()#simple form to capture data

Re: Image upload in Django

2010-11-25 Thread Sithembewena Lloyd Dube
:) Thanks Venkatraman, I noted with embarrassment that it's painless via the model, somewhere in the docs. Thanks. On Thu, Nov 25, 2010 at 3:02 PM, Venkatraman S wrote: > > On Thu, Nov 25, 2010 at 6:10 PM, Sithembewena Lloyd Dube < > zebr...@gmail.com> wrote: > >> >> I have

Re: Image upload in Django

2010-11-25 Thread Venkatraman S
On Thu, Nov 25, 2010 at 6:10 PM, Sithembewena Lloyd Dube wrote: > > I have a Member model representing a site user. I wish to add functionality > to allow users to upload images to their profiles, and I need a pointer to a > *simple* file upload solution for Django. > I am not

Image upload in Django

2010-11-25 Thread Sithembewena Lloyd Dube
Hi folks, I have a Member model representing a site user. I wish to add functionality to allow users to upload images to their profiles, and I need a pointer to a *simple* file upload solution for Django. Any ideas? -- Regards, Sithembewena Lloyd Dube http://www.lloyddube.com -- You received

Re: Image Upload question

2010-09-23 Thread Joel Klabo
The problem was no PIL and libjpeg... On Sep 23, 2:43 pm, Joel Klabo wrote: > from the django docs: > > inherits all attributes and methods from FileField, but also validates > that the uploaded object is a VALID IMAGE. > > what does valid image mean? > > On Sep 23, 2:40 pm,

Re: Image Upload question

2010-09-23 Thread Joel Klabo
from the django docs: inherits all attributes and methods from FileField, but also validates that the uploaded object is a VALID IMAGE. what does valid image mean? On Sep 23, 2:40 pm, Joel Klabo wrote: > Thanks, upload is now working. But, only for smallish .png files,

Re: Image Upload question

2010-09-23 Thread Joel Klabo
Thanks, upload is now working. But, only for smallish .png files, what are the constraints on file type and size django sets? I can't find the information anywhere? Beyond that, can I set them myself? On Sep 23, 1:41 pm, Peter Bengtsson wrote: > By being bound it means that

Re: Image Upload question

2010-09-23 Thread Peter Bengtsson
By being bound it means that you will have run the .is_valid() method of the form instance once you've instanciated it with your POST and FILES data. E.g. form = BrewImageFrom(data=request.POST, files=request.FILES) if form.is_valid(): brewimage = form.save() On Sep 23, 3:00 pm, Joel Klabo

Image Upload question

2010-09-23 Thread Joel Klabo
I have a form trying to upload an image. In the docs it says that the form must be bound to save a file. This is an issue for me because I wan't to save the file with other data such as the User object that saved it. I can't put a User object in a form so I put the username in a hidden form field

Re: Error in image upload while copying file

2010-03-31 Thread pjmorse
On Mar 30, 10:53 am, bruno desthuilliers wrote: > Uh. Oh, well - then you indeed have a problem :( > Hum... Is that legacy code ? Looks pretty ugly to me - wouldn't pass a > code review here. > Well, assuming you're using at least Django 1.0, I suggest you get rid

Re: Error in image upload while copying file

2010-03-30 Thread bruno desthuilliers
well - then you indeed have a problem :( > Here's a wider chunk of the code. I've reformatted the comments to > make things a bit more compact. > >         if request.method == 'POST': >                 file = request.FILES.copy() # Handle profile image upload > >                 if 'image' in file: #

Re: Error in image upload while copying file

2010-03-29 Thread pjmorse
directly on request.FILES results in the error, "'InMemoryUploadedFile' object is unsubscriptable". Here's a wider chunk of the code. I've reformatted the comments to make things a bit more compact. if request.method == 'POST': file = request.FILES.copy() # Handle pr

Re: Error in image upload while copying file

2010-03-29 Thread bruno desthuilliers
On 19 mar, 20:05, pjmorse wrote: > In my application's admin console, there's a tiny form for updating > the image associated with a specific model. > > When a file is uploaded, the application reaches this code: > >         if request.method == 'POST': >                

Re: Error in image upload while copying file

2010-03-29 Thread pjmorse
Continued research (I kept asking people) suggests that this is a consequence of moving from Python2.4 to Python2.5. The options appear to be: * Downgrade Python to 2.4 * Find a "more compatible" copy method. I'd really rather not downgrade Python, but I don't know how to find a "more

Error in image upload while copying file

2010-03-19 Thread pjmorse
In my application's admin console, there's a tiny form for updating the image associated with a specific model. When a file is uploaded, the application reaches this code: if request.method == 'POST': file = request.FILES.copy() ...and fails with this error:

Re: Admin Image upload control disabled?

2009-08-07 Thread Danielb
The app of mine that is having this issue was creating using Django 1.0 and I've since upgraded to 1.1. Could that be the issue? If it is how do I upgrade an app to the new version? Daniel On Aug 6, 8:35 am, Daniel Brown wrote: > Good morning list, > > I've been

Admin Image upload control disabled?

2009-08-06 Thread Daniel Brown
Good morning list, I've been working on a simple Django blog as a learning exercise and today I've been following this blog post about a simple way to add images to blog posts. My changes run fine on Django's test server without errors, however the image related part of the BlogPost's admin page

image upload

2009-06-09 Thread Dhruv Adhia
Hello, I am new to django, any help would be appreciated. I got admin backend part working class Thing(models.Model): poll = models.ForeignKey(Poll) # assigning specific image for each question name = models.CharField(blank=False, null=False, max_length=30) photo =

Re: image upload

2009-06-07 Thread Dhruv Adhia
e: > >> >> 2009/6/5 Dhruv Adhia <druf...@gmail.com>: >> > >> > I am new to django and was searching for thorough tutorial for image >> > upload. >> > >> > What I want to do is add image upload field in backend and after >> > uplo

Re: image upload

2009-06-05 Thread Dhruv Adhia
Yep Ill try and see if it works. Thank you! On Fri, Jun 5, 2009 at 3:32 PM, Antoni Aloy <antoni.a...@gmail.com> wrote: > > 2009/6/5 Dhruv Adhia <druf...@gmail.com>: > > > > I am new to django and was searching for thorough tutorial for image > > upload. &g

Re: image upload

2009-06-05 Thread Antoni Aloy
2009/6/5 Dhruv Adhia <druf...@gmail.com>: > > I am new to django and was searching for thorough tutorial for image > upload. > > What I want to do is add image upload field in backend and after > uploading image from admin section it shows in frontend > like thi

image upload

2009-06-05 Thread Dhruv Adhia
I am new to django and was searching for thorough tutorial for image upload. What I want to do is add image upload field in backend and after uploading image from admin section it shows in frontend Thank you, Dhruv Adhia --~--~-~--~~~---~--~~ You received

Re: WYSIWYG Image upload challenge

2009-02-19 Thread Colin Bean
On Thu, Feb 19, 2009 at 7:18 AM, phoebebright wrote: > > Where do I do the compare though as the headers are not being returned > - the file is being downloaded so I don't get to see what might be > different. (Using Firefox Firebug NET option - very helpful >

Re: WYSIWYG Image upload challenge

2009-02-19 Thread phoebebright
Where do I do the compare though as the headers are not being returned - the file is being downloaded so I don't get to see what might be different. (Using Firefox Firebug NET option - very helpful otherwise). It's the browser making the decision about how to handle the request (Isn't it?). On

Re: WYSIWYG Image upload challenge

2009-02-18 Thread Colin Bean
On Wed, Feb 18, 2009 at 10:50 AM, phoebebright wrote: > > The javascript makes a call to this view on submitting the form that > uploads the image. > > def uploadimage(request): >try: >upload_full_path = settings.CONTENT_IMAGES > >

Re: WYSIWYG Image upload challenge

2009-02-18 Thread phoebebright
That certainly looks like another option! Thanks. On Feb 18, 3:00 pm, Brandon Taylor wrote: > FWIW, I have been able to successfully integrate Django Admin > Uploadshttp://code.google.com/p/django-admin-uploads/with jQuery. I'm not > certain as to how difficult this

Re: WYSIWYG Image upload challenge

2009-02-18 Thread phoebebright
The javascript makes a call to this view on submitting the form that uploads the image. def uploadimage(request): try: upload_full_path = settings.CONTENT_IMAGES upload = request.FILES['image'] dest = open(os.path.join(upload_full_path,

Re: WYSIWYG Image upload challenge

2009-02-18 Thread Brandon Taylor
FWIW, I have been able to successfully integrate Django Admin Uploads http://code.google.com/p/django-admin-uploads/ with jQuery. I'm not certain as to how difficult this would be to port to YUI. There are a couple of JS issues that I've had to fix with this, but otherwise, it works very well.

Re: WYSIWYG Image upload challenge

2009-02-18 Thread Almost George
On Feb 18, 5:36 am, phoebebright wrote: > There is something different about the way django is handling to response to > php I think. I use the YUI Rich Editor in admin, and have no problems. I know debugging isn't as easy in IE as others, but do your best to find

Re: WYSIWYG Image upload challenge

2009-02-18 Thread phoebebright
wrote: > 2009/2/18 phoebebright <phoebebright...@gmail.com>: > > > > > I have now spend 5 solid days trying to get any WYSIWYG editor with an > > image upload working in django with no success.  Current status: > > This must be solveable!!! > > > Any su

Re: WYSIWYG Image upload challenge

2009-02-18 Thread Lee Braiden
2009/2/18 phoebebright <phoebebright...@gmail.com>: > > I have now spend 5 solid days trying to get any WYSIWYG editor with an > image upload working in django with no success. Current status: > This must be solveable!!! > > Any suggestions very welcome at this st

WYSIWYG Image upload challenge

2009-02-18 Thread phoebebright
I have now spend 5 solid days trying to get any WYSIWYG editor with an image upload working in django with no success. Current status: YUI - works in Firefox/Mac not in IE. The image upload is happening but the response is being interpretted by IE as a download so control does not return

Re: image upload problems (sorry for yet another one)

2009-01-26 Thread Brian Neal
On Jan 26, 11:51 am, PeteDK wrote: [...] > The thing is. Now it still doesn't work through my website, however it > now works through admin. > Well it only works with .bmp pictures. Maybe my PIL is broken? could > that be the reason for my problem from before? As I

Re: image upload problems (sorry for yet another one)

2009-01-26 Thread PeteDK
Now i have tried some different things, just for testing. I have changed my forms til ModelForm instead of normal forms. forms: class ProfileForm(ModelForm): class Meta: model = Profile model is the same views is now: formP = ProfileForm

Re: image upload problems (sorry for yet another one)

2009-01-26 Thread PeteDK
#Daniel Yep, but still no luck :( do I have to do anything else in my template? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: image upload problems (sorry for yet another one)

2009-01-26 Thread Daniel Roseman
On Jan 26, 3:16 pm, PeteDK wrote: > Hi there :) > > first the code: > > forms: > class ProfileForm(forms.Form): >         ... >         image = forms.ImageField(required = False) > > models: > class Profile(models.Model): >         user = models.ForeignKey(User,

Re: image upload problems (sorry for yet another one)

2009-01-26 Thread PeteDK
Hi. this is what it looks like. On 26 Jan., 16:29, Brian Neal wrote: > On Jan 26, 9:16 am, PeteDK wrote: > > > > > Hi there :) > > > first the code: > > > forms: > > class ProfileForm(forms.Form): > >         ... > >         image =

Re: image upload problems (sorry for yet another one)

2009-01-26 Thread Brian Neal
On Jan 26, 9:16 am, PeteDK wrote: > Hi there :) > > first the code: > > forms: > class ProfileForm(forms.Form): >         ... >         image = forms.ImageField(required = False) > > models: > class Profile(models.Model): >         user = models.ForeignKey(User,

image upload problems (sorry for yet another one)

2009-01-26 Thread PeteDK
Hi there :) first the code: forms: class ProfileForm(forms.Form): ... image = forms.ImageField(required = False) models: class Profile(models.Model): user = models.ForeignKey(User, unique=True) image = models.ImageField(upload_to="images/",

Re: ImageField image upload problems

2009-01-23 Thread Malcolm Tredinnick
On Fri, 2009-01-23 at 15:47 -0800, Foxpl wrote: > Hi, i have errors while i am trying to upload image by an admin panel. > > Here is my image model: > > class Photo(models.Model): > Title = models.CharField(max_length=256) > Description = models.TextField(max_length=1024, blank=True) >

ImageField image upload problems

2009-01-23 Thread Foxpl
Hi, i have errors while i am trying to upload image by an admin panel. Here is my image model: class Photo(models.Model): Title = models.CharField(max_length=256) Description = models.TextField(max_length=1024, blank=True) User = models.ForeignKey(User) File =

  1   2   >