Omar,

To upload images from the Admin panel, you will have to configure your 
apps' admin.py file. I use the django-imagekit package to manipulate user 
uploaded images. This package also provides the ability to upload images 
via the Admin panel with a couple lines of code. Here is my Admin.py code. 

from django.contrib import admin
from imagekit.admin import AdminThumbnail
from .models import MapData


class PhotoAdmin(admin.ModelAdmin):

 list_display = ('__str__', 'admin_thumbnail')
 admin_thumbnail = AdminThumbnail(image_field='image')


admin.site.register(MapData, PhotoAdmin) 



It displays thumbnails of all the images stored in my database and presents 
them in a list view in the Admin panel alongside the other model data.

On Tuesday, June 11, 2019 at 4:16:43 PM UTC-5, omar ahmed wrote:
>
> yes James you are right.... i need to upload images using the Django 
> admin, ... how can i use Dropbox for this issue ? 
> i need a good tutorial
>
> On Tuesday, June 11, 2019 at 6:14:10 PM UTC+2, James Farris wrote:
>>
>> He is saying these aren’t static files. It sounds like he uploads them 
>> using the Django admin, which of course is like an end user on a client 
>> uploading files to the media directory. 
>>
>> Since that is the case it sounds like the Dropbox option is the best. 
>> Documentation was provided earlier. So being that it seems like he read 
>> through the documentation, my question is where is he stuck in the Dropbox 
>> implementation?
>
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7e689c03-572f-46e5-ae4d-247141653a55%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to