Hey You can use AVTAR package for images upload On Thu, Sep 15, 2016 at 11:04 AM, Constantine Covtushenko < constantine.covtushe...@gmail.com> wrote:
> Hi Juliana, > > Did check this django doc > <https://docs.djangoproject.com/en/1.10/topics/http/file-uploads/> page? > It describes basics of how to work with files. The same stands for images. > > Also you can check one of the available extensions. > I was using django-filer. <https://github.com/divio/django-filer> It has > a great integration options for the admin site. And it allows to organise > your photos to folders/subfolders structure. > > I hope that helps. > > > On Tue, Sep 13, 2016 at 6:13 PM, juliana kofi <kofijuli...@gmail.com> > wrote: > >> hello am trying to upload photos on my blog how do i do that using django >> and python >> >> On Tue, Sep 13, 2016 at 3:10 PM, <django-users@googlegroups.com> wrote: >> >>> django-users@googlegroups.com >>> <https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!forum/django-users/topics> >>> Google >>> Groups >>> <https://groups.google.com/forum/?utm_source=digest&utm_medium=email/#!overview> >>> <https://groups.google.com/forum/?utm_source=digest&utm_medium=email/#!overview> >>> Today's topic summary >>> View all topics >>> <https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!forum/django-users/topics> >>> >>> - Creation of default site not triggering post_save signal >>> >>> <#m_8633480200516075464_m_3915860844311027746_m_-517278597662460273_group_thread_0> >>> - 2 Updates >>> - Problem with migration to Django 1.8 >>> >>> <#m_8633480200516075464_m_3915860844311027746_m_-517278597662460273_group_thread_1> >>> - 1 Update >>> - how to display models in templates >>> >>> <#m_8633480200516075464_m_3915860844311027746_m_-517278597662460273_group_thread_2> >>> - 7 Updates >>> - Django with digital certificates >>> >>> <#m_8633480200516075464_m_3915860844311027746_m_-517278597662460273_group_thread_3> >>> - 2 Updates >>> - Can't create editable foreign key field in Django admin: going to >>> give up on django >>> >>> <#m_8633480200516075464_m_3915860844311027746_m_-517278597662460273_group_thread_4> >>> - 6 Updates >>> - Unexpected poor template performance >>> >>> <#m_8633480200516075464_m_3915860844311027746_m_-517278597662460273_group_thread_5> >>> - 1 Update >>> - Database is not reset after StaticLiveServerTestCase (Django 1.9.5) >>> >>> <#m_8633480200516075464_m_3915860844311027746_m_-517278597662460273_group_thread_6> >>> - 2 Updates >>> - Extracting the username:password from the host >>> >>> <#m_8633480200516075464_m_3915860844311027746_m_-517278597662460273_group_thread_7> >>> - 3 Updates >>> - Import css in Django >>> >>> <#m_8633480200516075464_m_3915860844311027746_m_-517278597662460273_group_thread_8> >>> - 4 Updates >>> - create connection error >>> >>> <#m_8633480200516075464_m_3915860844311027746_m_-517278597662460273_group_thread_9> >>> - 2 Updates >>> - Django Ticketing Application >>> >>> <#m_8633480200516075464_m_3915860844311027746_m_-517278597662460273_group_thread_10> >>> - 3 Updates >>> - Regex Validators doesn't validate while working in a shell >>> >>> <#m_8633480200516075464_m_3915860844311027746_m_-517278597662460273_group_thread_11> >>> - 2 Updates >>> >>> Creation of default site not triggering post_save signal >>> <http://groups.google.com/group/django-users/t/3fc9f406bc3b7057?utm_source=digest&utm_medium=email> >>> Matt Thompson <watering...@gmail.com>: Sep 12 07:59PM -0700 >>> >>> Hi Simon, >>> >>> Thank you very much for your prompt reply! I've added the following to >>> my >>> app, which seems to work just fine: >>> >>> @receiver(models.signals.post_migrate) ...more >>> <http://groups.google.com/group/django-users/msg/1a80619028585?utm_source=digest&utm_medium=email> >>> Simon Charette <charett...@gmail.com>: Sep 13 05:58AM -0700 >>> >>> Hi Matt, >>> >>> The recommended pattern is to register signal receivers in your app >>> config's >>> ready() method[1]. From the Django documentation: >>> >>> > Where should this code live? >>> >>> > Strictly speaking, ...more >>> <http://groups.google.com/group/django-users/msg/1c8bae2788f78?utm_source=digest&utm_medium=email> >>> Back to top >>> <#m_8633480200516075464_m_3915860844311027746_m_-517278597662460273_digest_top> >>> Problem with migration to Django 1.8 >>> <http://groups.google.com/group/django-users/t/2a6c4b0621298d4d?utm_source=digest&utm_medium=email> >>> alessandro.henri...@labcodes.com.br: Sep 12 09:31AM -0700 >>> >>> Hello, >>> >>> I'm currently trying to migrate a project from django 1.5.1 to the >>> newest >>> version. I got stuck in the version 1.7. The only test that is not >>> passing >>> was made to try to get the e-mail ...more >>> <http://groups.google.com/group/django-users/msg/1c2f2b436bb55?utm_source=digest&utm_medium=email> >>> Back to top >>> <#m_8633480200516075464_m_3915860844311027746_m_-517278597662460273_digest_top> >>> how to display models in templates >>> <http://groups.google.com/group/django-users/t/42c2ae0bd029cba1?utm_source=digest&utm_medium=email> >>> Timothy Steele <steeletimothy2...@gmail.com>: Sep 13 12:33AM -0700 >>> >>> please i try my best but i can display my models in a templates i have >>> just >>> created. >>> >>> *Please have a look at the codes in the models.py file* >>> >>> from django.db import models >>> from ...more >>> <http://groups.google.com/group/django-users/msg/1b6fe34e5a4c1?utm_source=digest&utm_medium=email> >>> ludovic coues <cou...@gmail.com>: Sep 13 09:44AM +0200 >>> >>> Can you try this in your template ? >>> >>> {{ bookmarks|pprint }} >>> {% for bookmark in bookmaks %} >>> <br>{{ bookmark|pprint }} >>> {% endfor %} >>> >>> Also, in your for loop, you use bookmarks.title, notice the ...more >>> <http://groups.google.com/group/django-users/msg/1b7a149b0f1c0?utm_source=digest&utm_medium=email> >>> Timothy Steele <steeletimothy2...@gmail.com>: Sep 13 01:00AM -0700 >>> >>> <https://lh3.googleusercontent.com/-AiF038nKeBk/V9exW5xi3gI/ >>> AAAAAAAAAE8/QHZ6B-WTzWspm9f0iFdOMaxGROHR33XDwCLcB/s1600/hap.png> >>> please i like your help but it now return in the database, but in can >>> see ...more >>> <http://groups.google.com/group/django-users/msg/1b86dce106460?utm_source=digest&utm_medium=email> >>> ludovic coues <cou...@gmail.com>: Sep 13 10:14AM +0200 >>> >>> Sorry, I should have double checked instead of copy/pasting. >>> {% for bookmark in bookmaks %} < you forgot a r in bookmarks. >>> >>> >>> -- >>> >>> Cordialement, Coues Ludovic >>> +336 148 743 42 >>> ...more >>> <http://groups.google.com/group/django-users/msg/1b9491dbb2604?utm_source=digest&utm_medium=email> >>> Timothy Steele <steeletimothy2...@gmail.com>: Sep 13 01:30AM -0700 >>> >>> thanks i have seen it, but i need to only display *Packt Publishing* but >>> it give this *<Bookmark: Packt Publishing>* in addition >>> >>> On Tuesday, September 13, 2016 at 8:33:53 AM UTC+1, Timothy ...more >>> <http://groups.google.com/group/django-users/msg/1ba186ef7c7bc?utm_source=digest&utm_medium=email> >>> ludovic coues <cou...@gmail.com>: Sep 13 10:48AM +0200 >>> >>> Yeah, it's because of |pprint. It is a debug tools. It can help with a >>> few >>> issue like model not having a __str__ method (not your case). It also >>> show >>> how many item are in the queryset (one in your ...more >>> <http://groups.google.com/group/django-users/msg/1bb1c922e6235?utm_source=digest&utm_medium=email> >>> Timothy Steele <steeletimothy2...@gmail.com>: Sep 13 02:00AM -0700 >>> >>> thank you very mach it has work. i am most grateful, any way this did >>> not >>> let me sleep the hole night >>> >>> On Tuesday, September 13, 2016 at 8:33:53 AM UTC+1, Timothy Steele wrote: >>> ...more >>> <http://groups.google.com/group/django-users/msg/1bbbf2d7d1b32?utm_source=digest&utm_medium=email> >>> Back to top >>> <#m_8633480200516075464_m_3915860844311027746_m_-517278597662460273_digest_top> >>> Django with digital certificates >>> <http://groups.google.com/group/django-users/t/62ce990054de076c?utm_source=digest&utm_medium=email> >>> Dimitris Kougioumtzis <dimk...@gmail.com>: Sep 12 06:24AM -0700 >>> >>> I have an application with django framework. The users have in their usb >>> sticks their certificates. How to access their certificates from the >>> django >>> application to the client computer ; >>> ...more >>> <http://groups.google.com/group/django-users/msg/17b8c493e8785?utm_source=digest&utm_medium=email> >>> Erik Cederstrand <erik+li...@cederstrand.dk>: Sep 13 09:58AM +0200 >>> >>> > Den 12. sep. 2016 kl. 15.24 skrev Dimitris Kougioumtzis < >>> dimk...@gmail.com>: >>> >>> > I have an application with django framework. The users have in their >>> usb sticks their certificates. ...more >>> <http://groups.google.com/group/django-users/msg/1b860fad23f88?utm_source=digest&utm_medium=email> >>> Back to top >>> <#m_8633480200516075464_m_3915860844311027746_m_-517278597662460273_digest_top> >>> Can't create editable foreign key field in Django admin: going to give >>> up on django >>> <http://groups.google.com/group/django-users/t/94eaccc01e62473e?utm_source=digest&utm_medium=email> >>> Hanh Kieu <hhk...@gmail.com>: Sep 12 10:02PM -0700 >>> >>> Hey guys, I'm creating a translation app that allows you to translate >>> from >>> one object to the other. My translation model has two foreign keys that >>> links to two words, and on the admin site I want ...more >>> <http://groups.google.com/group/django-users/msg/1aebece105623?utm_source=digest&utm_medium=email> >>> "Luis Zárate" <luisz...@gmail.com>: Sep 12 11:29PM -0600 >>> >>> See https://github.com/django-parler/django-parler >>> >>> >>> -- >>> "La utopía sirve para caminar" Fernando Birri >>> ...more >>> <http://groups.google.com/group/django-users/msg/1b03e7e351433?utm_source=digest&utm_medium=email> >>> ludovic coues <cou...@gmail.com>: Sep 13 07:38AM +0200 >>> >>> Have you looked at >>> https://docs.djangoproject.com/en/1.10/ref/contrib/admin/#in >>> linemodeladmin-objects >>> ? >>> It's still early morning here so I haven't to it with your specific use >>> case but the django ...more >>> <http://groups.google.com/group/django-users/msg/1b0c0377d87a3?utm_source=digest&utm_medium=email> >>> Mike Dewhirst <mi...@dewhirst.com.au>: Sep 13 03:41PM +1000 >>> >>> On 13/09/2016 3:02 PM, Hanh Kieu wrote: >>> >>> > class Translation(models.Model): >>> > #word1 belongs to one word word1 = ...more >>> <http://groups.google.com/group/django-users/msg/1b0e5a95444d6?utm_source=digest&utm_medium=email> >>> Hanh Kieu <hhk...@gmail.com>: Sep 12 11:06PM -0700 >>> >>> "So your Translation needs a FK to each of two different words. " >>> What would this look like? >>> >>> On Monday, September 12, 2016 at 10:42:10 PM UTC-7, Mike Dewhirst wrote: >>> ...more >>> <http://groups.google.com/group/django-users/msg/1b23c4c33407d?utm_source=digest&utm_medium=email> >>> Mike Dewhirst <mi...@dewhirst.com.au>: Sep 13 05:53PM +1000 >>> >>> On 13/09/2016 4:06 PM, Hanh Kieu wrote: >>> > "So your Translation needs a FK to each of two different words. " >>> > What would this look like? >>> >>> class Translation(models.Model): >>> #word1 belongs to ...more >>> <http://groups.google.com/group/django-users/msg/1b8154f1e5fe5?utm_source=digest&utm_medium=email> >>> Back to top >>> <#m_8633480200516075464_m_3915860844311027746_m_-517278597662460273_digest_top> >>> Unexpected poor template performance >>> <http://groups.google.com/group/django-users/t/4854e68236ff757c?utm_source=digest&utm_medium=email> >>> Rich Rauenzahn <rraue...@gmail.com>: Sep 12 04:05PM -0700 >>> >>> I'm working on a project that needs to occasionally render very large >>> tables -- I'm picking hundreds of thousands of cells as a test point for >>> trying out back end implementation scalability. >>> ...more >>> <http://groups.google.com/group/django-users/msg/19b43dae252db?utm_source=digest&utm_medium=email> >>> Back to top >>> <#m_8633480200516075464_m_3915860844311027746_m_-517278597662460273_digest_top> >>> Database is not reset after StaticLiveServerTestCase (Django 1.9.5) >>> <http://groups.google.com/group/django-users/t/81fac174a1761d8c?utm_source=digest&utm_medium=email> >>> ankitjaval...@gmail.com: Sep 12 03:28AM -0700 >>> >>> Hello, >>> >>> I have a Python project that is using a Selenium script to emulate a >>> user. >>> I am running this script within a Django TestCase and I use the >>> StaticLiveServerTestCase subclass to run a live ...more >>> <http://groups.google.com/group/django-users/msg/17c31b7d4df08?utm_source=digest&utm_medium=email> >>> Tim Graham <timogra...@gmail.com>: Sep 12 01:38PM -0700 >>> >>> Yes, a minimal example project that demonstrates the issue would be >>> helpful. My guess is that you have a mistake in your tests that's >>> causing >>> some state to leak between them. >>> >>> ...more >>> <http://groups.google.com/group/django-users/msg/1933cca4733cf?utm_source=digest&utm_medium=email> >>> Back to top >>> <#m_8633480200516075464_m_3915860844311027746_m_-517278597662460273_digest_top> >>> Extracting the username:password from the host >>> <http://groups.google.com/group/django-users/t/8a8c2c1a7251fd7e?utm_source=digest&utm_medium=email> >>> Christophe Pettus <x...@thebuild.com>: Sep 12 12:35PM -0700 >>> >>> I've encountered a service that does postbacks as part of its API. The >>> only authentication mechanism is putting the username and password in the >>> POST URL in the form: >>> ...more >>> <http://groups.google.com/group/django-users/msg/18fcd2a9d6e85?utm_source=digest&utm_medium=email> >>> Carl Meyer <c...@oddbird.net>: Sep 12 03:40PM -0400 >>> >>> Hi Christophe, >>> >>> On 09/12/2016 03:35 PM, Christophe Pettus wrote: >>> >>> > https://user:p...@example.com/api/endpoint >>> >>> > Is there a portable way of extracting that information from the >>> ...more >>> <http://groups.google.com/group/django-users/msg/190109d1f1015?utm_source=digest&utm_medium=email> >>> Christophe Pettus <x...@thebuild.com>: Sep 12 01:14PM -0700 >>> >>> >>> > Yes, it should be in `request.META['HTTP_AUTHORIZATION']`; see >>> > https://www.djangosnippets.org/snippets/243/ for an example. >>> >>> ... and now it works. OK, clearly, either me or the server need ...more >>> <http://groups.google.com/group/django-users/msg/191ff7daa434a?utm_source=digest&utm_medium=email> >>> Back to top >>> <#m_8633480200516075464_m_3915860844311027746_m_-517278597662460273_digest_top> >>> Import css in Django >>> <http://groups.google.com/group/django-users/t/876beb9a225f71b6?utm_source=digest&utm_medium=email> >>> Jonathan Cheng <jonathan950...@gmail.com>: Sep 12 07:34AM -0700 >>> >>> i use href="{% static '/assets/css/main.css' %}" >>> and it worked >>> but if i want to use the all files in static >>> is there any way to do? >>> >>> ludovic coues於 2016年9月12日星期一 ...more >>> <http://groups.google.com/group/django-users/msg/17f5db83d61e6?utm_source=digest&utm_medium=email> >>> Jonathan Cheng <jonathan950...@gmail.com>: Sep 12 07:36AM -0700 >>> >>> i change into href="{% static '/assets/css/main.css' %} >>> and it worked >>> but if i want to use the all files in static >>> is there any way to do it? >>> >>> ludovic coues於 2016年9月12日星期一 ...more >>> <http://groups.google.com/group/django-users/msg/17f73f0bc7812?utm_source=digest&utm_medium=email> >>> Jonathan Cheng <jonathan950...@gmail.com>: Sep 12 07:57AM -0700 >>> >>> i use href="{% static '/assets/css/main.css' %} >>> and the css worked >>> but i want to use the all files in assets >>> is there any other way to do it? >>> >>> ludovic coues於 2016年9月12日星期一 ...more >>> <http://groups.google.com/group/django-users/msg/180a05488a247?utm_source=digest&utm_medium=email> >>> ludovic coues <cou...@gmail.com>: Sep 12 08:13PM +0200 >>> >>> manage.py collectstatic is made for that. It will copy every static file >>> in >>> your project into a single directory. Even those included in django like >>> the css of django admin. >>> >>> >>> >>> -- >>> ...more >>> <http://groups.google.com/group/django-users/msg/18b5a64eca8da?utm_source=digest&utm_medium=email> >>> Back to top >>> <#m_8633480200516075464_m_3915860844311027746_m_-517278597662460273_digest_top> >>> create connection error >>> <http://groups.google.com/group/django-users/t/3d732a54def3d727?utm_source=digest&utm_medium=email> >>> miaoxu99...@gmail.com: Sep 11 06:46PM -0700 >>> >>> def contact(request): >>> error = [] >>> if request.method == 'POST': >>> if not request.POST.get('subject', ''): >>> error.append("please enter a subject") >>> if not request.POST.get('message',''): ...more >>> <http://groups.google.com/group/django-users/msg/17c31cc4c3284?utm_source=digest&utm_medium=email> >>> ludovic coues <cou...@gmail.com>: Sep 12 07:42PM +0200 >>> >>> Is there anything in the console ? >>> >>> >>> -- >>> >>> Cordialement, Coues Ludovic >>> +336 148 743 42 >>> ...more >>> <http://groups.google.com/group/django-users/msg/189add0c009ea?utm_source=digest&utm_medium=email> >>> Back to top >>> <#m_8633480200516075464_m_3915860844311027746_m_-517278597662460273_digest_top> >>> Django Ticketing Application >>> <http://groups.google.com/group/django-users/t/dfbc1a99619ba60d?utm_source=digest&utm_medium=email> >>> M Hashmi <mhashmi1...@gmail.com>: Sep 12 06:45AM -0700 >>> >>> Hello Alexandra, >>> >>> You are at the right forum. But chatting as ticket needs some workout. >>> Each >>> message needs to be contain with all ticketing properties and upon >>> selection of a message it should ...more >>> <http://groups.google.com/group/django-users/msg/17cbb1b14320e?utm_source=digest&utm_medium=email> >>> Jonathan Adcock <jonny.adc...@gmail.com>: Sep 12 06:42AM -0700 >>> >>> You could try https://djangopackages.org/ >>> >>> On Monday, September 12, 2016 at 12:18:38 PM UTC+1, Alexandra wrote: >>> ...more >>> <http://groups.google.com/group/django-users/msg/17f2c0b18fc3a?utm_source=digest&utm_medium=email> >>> Sergiy Khohlov <skhoh...@gmail.com>: Sep 12 05:14PM +0300 >>> >>> Hello Alexandra, >>> Have have no answer due to no question. You have decided to do >>> application. It is good , but you have not informed us about steps which >>> are done. In tho case nobody can help you. ...more >>> <http://groups.google.com/group/django-users/msg/17f2c472b8362?utm_source=digest&utm_medium=email> >>> Back to top >>> <#m_8633480200516075464_m_3915860844311027746_m_-517278597662460273_digest_top> >>> Regex Validators doesn't validate while working in a shell >>> <http://groups.google.com/group/django-users/t/ad0dbc1f829d32dc?utm_source=digest&utm_medium=email> >>> ashish.go...@finoit.co.in: Sep 11 11:24PM -0700 >>> >>> I've configured user's username field in following way >>> >>> username = models.CharField( >>> _('username'), >>> max_length=30, >>> unique=True, >>> help_text=_('Required. ...more >>> <http://groups.google.com/group/django-users/msg/17c31de79feff?utm_source=digest&utm_medium=email> >>> Daniel Roseman <dan...@roseman.org.uk>: Sep 12 06:45AM -0700 >>> >>> >>> > Though django raises an error for maximum length in shell. >>> >>> > Is it a bug? Or am I missing something. >>> >>> This has nothing to do with being in the shell. >>> >>> Validators aren't run on save, and ...more >>> <http://groups.google.com/group/django-users/msg/17cb0fb262b37?utm_source=digest&utm_medium=email> >>> Back to top >>> <#m_8633480200516075464_m_3915860844311027746_m_-517278597662460273_digest_top> >>> You received this digest because you're subscribed to updates for this >>> group. You can change your settings on the group membership page >>> <https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!forum/django-users/join> >>> . >>> To unsubscribe from this group and stop receiving emails from it send an >>> email to django-users+unsubscr...@googlegroups.com. >>> >> >> -- >> 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/ms >> gid/django-users/CAF-G%2B0DZnVJ4QixeK-g-pHLdxM-z6nSz1vxcxWas >> VW_OwJkvAw%40mail.gmail.com >> <https://groups.google.com/d/msgid/django-users/CAF-G%2B0DZnVJ4QixeK-g-pHLdxM-z6nSz1vxcxWasVW_OwJkvAw%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > -- > 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/CAK52boUR7EdOt0MGgqL0nEisrUfNXbJzFh-pMWGfctHg_m%2BPJg% > 40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAK52boUR7EdOt0MGgqL0nEisrUfNXbJzFh-pMWGfctHg_m%2BPJg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- *Warm Regard:-* *Mandeep Kumar* <http://www.linkedin.com/in/mandeep444> <http://www.techgig.com/mandeep444> -- 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/CAJri7SRc7fXG5yX6sewKEQpg0-KhRL0ECA7gnqq3wfE3xeCbCw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.