Django Tutorials for Drop Down

2017-02-02 Thread Michelle
Hello! Does anyone know of any Django tutorials for creating a drop down? The one's I found thus far are subpar. Many thanks! -- 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, se

Django custom Model.Fields

2017-02-02 Thread Fabien Millerand
Hi all, down votefavorite I am trying to create a Model Fields that is basically a AutoField, but in base 36. Here my definition: class AutoBase36Field(models.AutoField): description = _("AutoField on base3

set_language language switcher with 3 languages

2017-02-02 Thread Reto Steffen
Hi, I have a website with 2 languages and am using the standard {% load i18n %} {% csrf_token %} {% get_current_language as LANGUAGE_CODE %} {% get_available_languages as LANGUAGES %} {% get_language_info_list for LANGUAGES as languages %} {% for language in languages %} {{ language.name_lo

Re: Channels - query_string

2017-02-02 Thread Andrew Godwin
Ah, yes, sorry, the default serializer in Django cannot serialise model instances as it's JSON-based: https://docs.djangoproject.com/en/1.10/topics/serialization/ You can try switching to an alternate serialiser like pickle which does (but I don't recommend this), or just put the ID of the user in

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: ImportError while starting django server

2017-02-02 Thread Tim Graham
It seems like your Python install might be broken. Does this import work in a Python shell: >>> from logging.config import dictConfig On Thursday, February 2, 2017 at 7:12:38 AM UTC-5, Parth Shah wrote: > > *Folks,* > > *I was following the tutorial here >

Re: Email attachments in Django1.10 failing

2017-02-02 Thread Tim Graham
Could you include a complete traceback that shows which line is causing the error? On Wednesday, February 1, 2017 at 8:10:53 PM UTC-5, E kamande wrote: > > Hi Kindly need help to be able attaching a logo and a pdf when emailing, I > have been following this great articles 1 >

Re: sqlmigrate does not quote default string values

2017-02-02 Thread Tim Graham
It looks like a bug at first glance. I encourage you to look at Django's source code and try to confirm and fix it. On Wednesday, February 1, 2017 at 8:11:21 PM UTC-5, Michael Grijalva wrote: > > Not sure if this is considered a bug, but the SQL output from sqlmigrate > contains a small syntax e

Re: Link to urls containing slug

2017-02-02 Thread 'David Turner' via Django users
Hi Matthew Yes the error was in the view. Many thanks for all you help. On 2 February 2017 at 14:14, David Turner wrote: > Hi Matthew > I understand what you are saying but I think the issue rests with my view > as the link does not resolve but effectively creates the following: > /jobs/1/slu

Re: Link to urls containing slug

2017-02-02 Thread 'David Turner' via Django users
Hi Matthew I understand what you are saying but I think the issue rests with my view as the link does not resolve but effectively creates the following: /jobs/1/slug-name/%E2%80%9D/jobs/1/slug-name/job_application/%E2%80%9D Best On 1 February 2017 at 19:04, Matthew Pava wrote: > Hi David, > >

Re: ImportError while starting django server

2017-02-02 Thread Antonis Christofides
Hi, the --version option of the "python" command shows you the version of Python, not of Django. The -m option doesn't merely import the module you specify, it imports it and executes it, and Django isn't designed to do this. So the way to check its version the one you showed first. If you want to

ImportError while starting django server

2017-02-02 Thread Parth Shah
*Folks,* *I was following the tutorial here and was successfully able to install django.* *I am using python 2.7.13 on OS X.* *I can verify the version number as below:* *Macitosh:project user$ python* *Python 2.7.12 (v2.7.12:d33e0c

Re: good doc and example on how to use bootstrap with DJango

2017-02-02 Thread Thames Khi
Thanks I will take a look. So much to learn too much fun. On Thursday, February 2, 2017 at 2:40:15 AM UTC, Melvyn Sopacua wrote: > > On Wednesday 01 February 2017 02:40:48 Thames Khi wrote: > > > > > I tried to use locally installed bootstrap. My render HTML function is > > > calling my page. Ho

Re: Channels - query_string

2017-02-02 Thread Sgiath
Thanks for explaining. I have one problem: when I try to save User object to the channel_session I get exception: TypeError: Object of type 'User' is not JSON serializable. What am I doing wrong? Should I somehow define how to JSON serialize the User object? On Wednesday, February 1, 2017 at 7:0