Re: issue with django's example version 1.10 in windows 7 ultimate

2017-02-03 Thread Ryan Castner
You need to post some source code for us to see what is going on, you are likely missing some lines of code On Friday, February 3, 2017 at 8:26:41 PM UTC-5, Dário Carvalho wrote: > > Hi. I'm new in django and in python either and of course as I'm new in > django, I installed 1.10's version and

issue with django's example version 1.10 in windows 7 ultimate

2017-02-03 Thread Dário Carvalho
Hi. I'm new in django and in python either and of course as I'm new in django, I installed 1.10's version and by the way I use windows 7 ultimate x86. So, I was trying to make work the example at https://docs.djangoproject.com/en/1.10/intro/ but in the first tutorial's part I got some error

Re: sqlmigrate does not quote default string values

2017-02-03 Thread Markus Holtermann
I gave it a quick look, but I can't reproduce this issue on the current master branch for SQLite3, PostgreSQL or MySQL. Can you give us more information when you report the issue please, such as Django version, database + version, database driver + version, and anything you think might be

Re: change site_header and site_title and ... dynamically

2017-02-03 Thread Sergiy Khohlov
you can pass this values from view to template using context_data Many thanks, Serge +380 636150445 skype: skhohlov On Fri, Feb 3, 2017 at 8:59 AM, wrote: > hi guys > i wanna to change site_header and site_title and other thing e.g > list_per_page and ,,,

pre-populate new record foreing key in admin django-suit

2017-02-03 Thread Roberto Russi
I need to pre-populate some fields in the form opened when you press the plus button to add a new record for a foreingkey field in the admin interface. I'm using Django-Suit. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Re: sqlmigrate does not quote default string values

2017-02-03 Thread Michael Grijalva
Ok thank you. I will dig into it more. On Thursday, February 2, 2017 at 7:57:16 AM UTC-8, Tim Graham wrote: > > 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

Re: How can I solve the broken home page in the root folder?

2017-02-03 Thread Melvyn Sopacua
On Tuesday 31 January 2017 06:51:35 Thames Khi wrote: > I added the following to main site urls.py: and I assume this also contains: from data import views > url(r'^$', views.home, name='home'), > > and added the following to the /data/views.py file. > > def home(request): > return

Re: Web-based Voting System for our capstone project

2017-02-03 Thread Melvyn Sopacua
On Wednesday 01 February 2017 10:47:14 Avraham Serour wrote: > I recommend instead of tweaking the admin app to just making your own > dashboard template. I don't, unless you want graphs. If you just want a listing of users with vote status, then all you need is a customized list display[1] and

Re: Link to urls containing slug

2017-02-03 Thread Melvyn Sopacua
As a side note: On Tuesday 31 January 2017 06:46:05 'dtdave' via Django users wrote: > url(r'^(?P[-\w]*)/(?P[-\w]*)/$', > views.JobDetail.as_view(), name='job_detail'), Why use this dual structure? Id already identifies the object to retrieve, nothing else is needed. Slug, ideally, is also

Re: formset in form_class

2017-02-03 Thread Melvyn Sopacua
On Tuesday 31 January 2017 08:55:15 schaf...@gmail.com wrote: > class RLFormView(LoginRequiredMixin, StaffuserRequiredMixin, > UpdateView): template_name = 'abc/layout.html' > form_class = LayoutFormSet > fields = '__all__' > The easy fix (and proper way to support the declarative

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: *

Re: set_language language switcher with 3 languages

2017-02-03 Thread Melvyn Sopacua
On Thursday 02 February 2017 11:10:31 Reto Steffen wrote: > But now I'm adding a third language and > > is redirecting to the "next" language Common misconception. This is the URL to redirect to *after the language has been changed*. The redirect_to variable should be set in the view's

Re: Django Channels alongside Django Rest Framework

2017-02-03 Thread adam . oxley
Hi Andrew, Thanks for the reply. I've managed to get it working running Daphne serving both HTTP and WebSocket requests. Your reply prompted me to look into what I was currently doing, and it crossed my mind that I was running via Gunicorn which from now reading the deployment documentation

tinymce: Reverse for 'tinymce.views.spell_check'

2017-02-03 Thread schaf . mh
Hi All, I'm on Django 1.10.5 using django-tinymce 2.6.0. Before upgrading to Django 1.10.5 I did not have any problems, but now I get an error: NoReverseMatch at /registry/preview/4 > > Reverse for 'tinymce.views.spell_check' with arguments '()' and keyword > arguments '{}' not found. 0

change site_header and site_title and ... dynamically

2017-02-03 Thread sjsadeghi . dev
hi guys i wanna to change site_header and site_title and other thing e.g list_per_page and ,,, dynamically. is there any way for do this? thanks ... -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Django tutorial

2017-02-03 Thread GM
If you found a typo or error in django tutorial https://docs.djangoproject.com/en/1.8/intro/tutorial02/ , where should one report, so the tutorial can be updated and so another novice doesn't get stuck due to a typo. -- You received this message because you are subscribed to the Google Groups